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

model/env/SSingle.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: SSingle.h,v 1.4 2003/01/24 10:04:59 hall Exp $
00008 
00009  Purpose : 
00010 
00011  RCS-Log:
00012  $Log: SSingle.h,v $
00013  Revision 1.4  2003/01/24 10:04:59  hall
00014  brdCast stuff
00015 
00016  Revision 1.3  2003/01/08 18:57:13  meierb
00017  added randomized release times
00018 
00019  Revision 1.2  2002/12/12 19:08:56  meierb
00020  *** empty log message ***
00021 
00022  Revision 1.1.1.1  2002/12/02 22:26:19  meierb
00023  my_schedule
00024 
00025  Revision 1.1  2002/08/29 12:59:59  taeubig
00026  Added the sources
00027 
00028  Revision 1.2  2001/05/16 13:20:00  taeubig
00029  QT headers are included last because of "slots" conflict
00030 
00031  Revision 1.1  2000/05/29 19:44:38  taeubig
00032  Moved environment related files into subdirectory env
00033 
00034  Revision 1.7  2000/05/24 12:46:25  taeubig
00035  New compiler (gcc-2.95) and new Qt (2.1)
00036  Replaced "list" by "leda_list" etc.
00037 
00038  Revision 1.6  2000/01/19 13:59:20  schickin
00039  BUGLIST updated, new g++-version tested (revealed a bug in SSingle)
00040 
00041  Revision 1.5  2000/01/17 17:38:05  zoidl
00042  added javadoc comments
00043 
00044  Revision 1.4  1999/12/02 02:26:20  taeubig
00045  Project now compiles with gcc 2.95.2
00046  (inheritance of class SSingle corrected)
00047 
00048  Revision 1.3  1999/03/19 16:45:16  hall
00049  nc
00050 
00051  Revision 1.2  1999/01/29 10:03:54  schickin
00052  Project-Headers added.
00053 
00054 
00055  * #end# ************************************************************* */
00056 
00057 #ifndef SSINGLE_H
00058 #define SSINGLE_H
00059 #include "SIdentical.h"
00060 #include "SFlowShop.h"
00061 #include "SOpenShop.h"
00062 
00068 class SSingle : public virtual SFlowShop, public virtual SIdentical, public virtual SOpenShop {
00069   TYPEINFO3(SSingle, "1", SFlowShop, SIdentical, SOpenShop);
00070  public:
00073   virtual leda_list<int> getMachinesFor(const SShopJob& job, int op) const {
00074     leda_list<int> ret;
00075     ret.append(op);
00076     return ret;
00077   };
00078 
00081   virtual SEnvironmentMod& getModifier()
00082     { return _mod; };
00083 
00084   // The following methods are just dummy implementations! The new compiler 
00085   // gcc-2.95.2 found the missing virtual methods (smart guy...)! (TS)
00086 
00087   virtual double getRemProcTimeOn(SJob& j, const SMachines& m) const
00088     { return SIdentical::getRemProcTimeOn(j, m); };
00089   virtual int getNumOfMachines() const
00090     { return SIdentical::getNumOfMachines(); };
00091   virtual leda_list<int> getAvailOperations(const SShopJob& j) const
00092     { return SFlowShop::getAvailOperations(j); };
00093   virtual double getPartialProcTime(const SShopJob & j, int op,
00094             const SMachines & m) const
00095     { return SFlowShop::getPartialProcTime(j, op, m); };
00096   virtual int getNumOperations(const SShopJob & j) const
00097     { return SFlowShop::getNumOperations(j); };
00098   virtual int getNextOperation(const SShopJob &j) const
00099     { return SFlowShop::getNextOperation(j); };
00100 
00101  private:
00103   SFlowShopMod _mod;
00104 };
00105 
00106 #endif //SSINGLE_H

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