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

model/env/SUniformMod.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: SUniformMod.h,v 1.4 2003/01/08 18:57:13 meierb Exp $
00008 
00009  Purpose : 
00010 
00011  RCS-Log:
00012  $Log: SUniformMod.h,v $
00013  Revision 1.4  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.2  2002/11/10 18:05:42  taeubig
00020  namespace and header include changes
00021 
00022  Revision 1.1  2002/08/29 12:59:59  taeubig
00023  Added the sources
00024 
00025  Revision 1.1  2000/05/29 19:44:41  taeubig
00026  Moved environment related files into subdirectory env
00027 
00028  Revision 1.5  2000/01/13 16:44:01  zoidl
00029  added javadoc comments
00030 
00031  Revision 1.4  1999/10/05 13:42:38  zoidl
00032  lots of new load- and save-routines
00033 
00034  Revision 1.3  1999/03/31 11:13:37  hall
00035  added a few output operators and save routines
00036 
00037  Revision 1.2  1999/03/29 12:49:05  schickin
00038  design of modifiers changed (SFooMod is now a member of SFoo). the stuff
00039  compiles and a simple test program runs fine.
00040 
00041  Revision 1.1  1999/02/12 11:55:54  hall
00042  impl. SEnvironment slice
00043 
00044 
00045  * #end# ************************************************************* */
00046 
00047 #ifndef SUNIFORMMOD_H
00048 #define SUNIFORMMOD_H
00049 
00050 // system header files
00051 
00052 // project header files
00053 #include "SEnvironmentMod.h"
00054 
00055 // -----------------------------------------------------------------------
00056 class SUniform;
00057 // -----------------------------------------------------------------------
00061 class SUniformMod : public SEnvironmentMod {
00062 public:
00065   SUniformMod(SUniform& env) : _env(env) {};
00066 
00069   virtual ~SUniformMod();
00070 
00071   // inherited member function
00072 
00076   virtual bool load(std::istream &in);
00079   virtual void save(std::ostream &out) const;
00080   virtual void sample() {};
00081   
00087   virtual void setNumOfMachines(int n);
00088   
00094   virtual void setNumOfJobs(int n);
00095 
00096   // new member functions
00097 
00102   void setSpeed(int machine, double speed); 
00103   
00106   SUniform &getUniform() { return _env; };
00107 
00108 private:
00109   SUniform& _env;
00110 };
00111 // -----------------------------------------------------------------------
00112 
00113 #endif  //SUNIFORMMOD_H

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