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

model/env/SUnrelatedMod.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: SUnrelatedMod.h,v 1.5 2003/01/08 18:57:13 meierb Exp $
00008 
00009  Purpose : 
00010 
00011  RCS-Log:
00012  $Log: SUnrelatedMod.h,v $
00013  Revision 1.5  2003/01/08 18:57:13  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/10 18:05:42  taeubig
00020  namespace and header include changes
00021 
00022  Revision 1.2  2002/11/09 02:51:17  taeubig
00023  Replaced <iostream.h> header inclusion by <iostream>, cerr by std::cerr...
00024 
00025  Revision 1.1  2002/08/29 12:59:59  taeubig
00026  Added the sources
00027 
00028  Revision 1.1  2000/05/29 19:44:44  taeubig
00029  Moved environment related files into subdirectory env
00030 
00031  Revision 1.5  2000/01/13 16:43:59  zoidl
00032  added javadoc comments
00033 
00034  Revision 1.4  1999/10/05 13:42:40  zoidl
00035  lots of new load- and save-routines
00036 
00037  Revision 1.3  1999/03/31 11:13:39  hall
00038  added a few output operators and save routines
00039 
00040  Revision 1.2  1999/03/29 12:49:07  schickin
00041  design of modifiers changed (SFooMod is now a member of SFoo). the stuff
00042  compiles and a simple test program runs fine.
00043 
00044  Revision 1.1  1999/02/12 11:55:57  hall
00045  impl. SEnvironment slice
00046 
00047 
00048  * #end# ************************************************************* */
00049 
00050 #ifndef SUNRELATEDMOD_H
00051 #define SUNRELATEDMOD_H
00052 
00053 // system header files
00054 
00055 // project header files
00056 #include "SEnvironmentMod.h"
00057 #include "../jobs/SJob.h"
00058 
00059 class SUnrelated;
00060 
00061 // -----------------------------------------------------------------------
00065 class SUnrelatedMod : public SEnvironmentMod {
00066 public:
00069   SUnrelatedMod(SUnrelated& env) : _env(env) {};
00072   virtual ~SUnrelatedMod();
00073 
00074   // inherited member function
00075 
00079   virtual bool load(std::istream &in);
00080   
00083   virtual void save(std::ostream &out) const;
00084   virtual void sample() {};
00085 
00091   virtual void setNumOfMachines(int n);
00092  
00098   virtual void setNumOfJobs(int n);
00099 
00100   // new member functions
00101 
00107   void setSpeed(int machine, const SJob &job, double speed);
00108 
00111   SUnrelated &getUnrelated() { return _env; };
00112 
00113 private:
00114   SUnrelated& _env;
00115 };
00116 // -----------------------------------------------------------------------
00117 
00118 #endif  //SUNRELATEDMOD_H

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