Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

model/STSysEditEvent.h

Go to the documentation of this file.
00001 /* #start# ***********************************************************
00002 
00003                              Scheduling Simulator
00004                     Lehrstuhl f"ur Effiziente Algorithmen
00005                        Technische Universit"at M"unchen
00006 
00007  File    : $Id: STSysEditEvent.h,v 1.5 2003/01/08 18:57:12 meierb Exp $
00008 
00009  Purpose : for events like JOBSADDED, JOBSDELETED,...
00010 
00011  RCS-Log:
00012  $Log: STSysEditEvent.h,v $
00013  Revision 1.5  2003/01/08 18:57:12  meierb
00014  added randomized release times
00015 
00016  Revision 1.1.1.1  2002/12/02 22:26:19  meierb
00017  my_schedule
00018 
00019  Revision 1.3  2002/11/11 16:52:52  taeubig
00020  header include changes
00021 
00022  Revision 1.2  2002/11/10 01:42:33  taeubig
00023  Added std:: for standard namespace,
00024  relative path corrections for header includes
00025 
00026  Revision 1.1  2002/08/29 12:59:58  taeubig
00027  Added the sources
00028 
00029  Revision 1.7  2000/01/12 13:50:08  zoidl
00030  added javadoc comments
00031 
00032  Revision 1.6  1999/12/29 10:33:40  hall
00033  new: DEPADDED / -DELETED
00034 
00035  Revision 1.5  1999/12/22 17:05:37  hall
00036  STopology is observable, added SJobArray::resize() + SLineTopMod::setSize()
00037 
00038  Revision 1.4  1999/12/15 10:22:45  hall
00039  STSysEditEvents slightly changed
00040 
00041  Revision 1.3  1999/12/08 23:03:14  zoidl
00042  added write()
00043 
00044  Revision 1.2  1999/12/02 08:06:10  schickin
00045  SEvent-Hierarchie modified (STSysEvent is dead now)
00046 
00047  Revision 1.1  1999/11/29 16:20:53  hall
00048  STSysEditEvent added, it's sent after adding/deleting jobs
00049 
00050 
00051  * #end# ************************************************************* */
00052 
00053 #ifndef STSYSEDITEVENT_H
00054 #define STSYSEDITEVENT_H
00055 
00056 // system header files
00057 
00058 // project header files
00059 #include "../general/SEvent.h"
00060 
00064 class STSysEditEvent : public SEvent {
00065 public:
00072   enum Id {
00073     ADDINGJOB,      // sent after job was assigned a number
00074     DELETINGJOB,    // sent right before a job is deleted
00075 
00076     JOBSADDED,      // ok: adding or deleting is finished, now
00077     JOBSDELETED,    // prec-rel. and env. are up to date
00078 
00079     CHANGEDMACHINETOPO,
00080     DEPADDED,
00081     DEPDELETED
00082   };
00083 
00090   STSysEditEvent(Id id, int jobA = -1, int jobB = -1) : 
00091     _id(id), _jobA(jobA), _jobB(jobB) {};
00092 
00097   virtual Type getType() const { return EDITEVENT; };
00098 
00103   Id getId() const { return _id; };
00104 
00109   int getJob() const { return _jobA; }
00110 
00115   int getJobA() const { return _jobA; }
00116   
00121   int getJobB() const { return _jobB; }
00122   
00127   virtual void write(std::ostream& rOs) const;
00128  private:
00129   Id _id;
00130   int _jobA, _jobB;
00131 };
00132 
00133 #endif //STSYSEDITEVENT_H

Generated on Thu May 22 16:48:09 2003 for Sketch-it! by doxygen1.2.18