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

model/SPrecBrokerMod.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: SPrecBrokerMod.h,v 1.5 2003/03/13 19:24:03 taeubig Exp $
00008 
00009  Purpose : 
00010 
00011  RCS-Log:
00012  $Log: SPrecBrokerMod.h,v $
00013  Revision 1.5  2003/03/13 19:24:03  taeubig
00014  prob.dists in new dir, other changes, removed log messages
00015 
00016  Revision 1.4  2003/01/08 18:57:12  meierb
00017  added randomized release times
00018 
00019  Revision 1.1.1.1  2002/12/02 22:26:19  meierb
00020  my_schedule
00021 
00022  Revision 1.2  2002/11/09 17:59:49  taeubig
00023  <iostream> inclusion, added std::
00024 
00025  Revision 1.1  2002/08/29 12:59:58  taeubig
00026  Added the sources
00027 
00028  Revision 1.9  2001/05/16 13:19:57  taeubig
00029  QT headers are included last because of "slots" conflict
00030 
00031  Revision 1.8  2000/01/25 00:15:23  taeubig
00032  Cloning..
00033 
00034  Revision 1.7  2000/01/17 13:17:36  zoidl
00035  added javadoc comments
00036 
00037  Revision 1.6  2000/01/08 19:05:33  taeubig
00038  Definition of getPrecBroker()
00039 
00040  Revision 1.5  1999/10/05 13:42:22  zoidl
00041  lots of new load- and save-routines
00042 
00043  Revision 1.4  1999/06/17 16:34:41  hall
00044  STopology changed, tuned STSysSchedEvent-stuff and lost more!
00045 
00046  Revision 1.3  1999/03/31 11:13:30  hall
00047  added a few output operators and save routines
00048 
00049  Revision 1.2  1999/03/29 12:48:57  schickin
00050  design of modifiers changed (SFooMod is now a member of SFoo). the stuff
00051  compiles and a simple test program runs fine.
00052 
00053  Revision 1.1  1999/03/25 14:12:51  schickin
00054  several changes in /model (no real executable yet)
00055 
00056 
00057  * #end# ************************************************************* */
00058 
00059 #ifndef SPRECBROKERMOD_H
00060 #define SPRECBROKERMOD_H
00061 
00062 // system header files
00063 #include <iostream>
00064 
00065 // project header files
00066 #include "SModifier.h"
00067 #include "SPrecBroker.h"
00068 #include "SPrecRelation.h"
00069 
00073 class SPrecBrokerMod : public SModifier {
00074 public:
00077   SPrecBrokerMod(SPrecBroker& broker) : _broker(broker) {};
00078 
00079   // inherited member functions:
00080 
00085   virtual bool load(std::istream &in);   
00086 
00089   virtual void save(std::ostream &out) const;
00090   virtual void sample() {};
00091 
00092   //virtual SPrecBroker* clone_for(STaskSystem& rTS);
00093 
00094   SPrecBroker& getPrecBroker()
00095     { return _broker; };
00096 
00097   // new stuff:
00098   
00104   void setMaster(SPrecRelation* pMaster,
00105      SPrecBroker::PrecType typeOfMaster);
00106   
00110   void removePrecRelations();
00111   
00112 private:
00113   SPrecBroker& _broker;
00114 };
00115 
00116 #endif /* SPRECBROKERMOD_H */

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