#include <SOpenShopMod.h>
Inherits SGeneralShopMod.
Inheritance diagram for SOpenShopMod:
Public Methods | |
SOpenShopMod (SOpenShop &env) | |
virtual | ~SOpenShopMod () |
virtual void | setNumOfMachines (int numMach) |
virtual void | setNumOfJobs (int jobs) |
virtual void | setNumOperations (SShopJob &job, int numOps) |
virtual void | setPartialProcTime (SShopJob &job, int op, int mach, double partTime) |
virtual bool | load (std::istream &in) |
virtual void | save (std::ostream &out) const |
virtual void | sample () |
Protected Methods | |
SFlexLexer & | getLexer (std::istream &in) |
|
Constructor |
|
Destructor |
|
Get a reference to the global lexical-analyzer, in order to parse an input stream. There is only one lexer for all modifiers in the tasksystem to avoid wasting space. When the input stream is switched, the current line number is set to 1.
|
|
Load an open shop from stream
Implements SModifier. |
|
Reimplemented from SModifier. |
|
Save the open shop to stream Implements SModifier. |
|
Inform the machines about the number of jobs in the tasksystem. All partial processing times of all new jobs will be set to 1 / (numberOfMachines). Old jobs will keep their values. Implements SEnvironmentMod. |
|
Set the number of machines in the environment. All partial processing times of operations all jobs will be set to 1 / numMach Implements SEnvironmentMod. |
|
Setting the number of operations will have no effect, because in open shops the number of operations is fixed to the number of machines. Implements SGeneralShopMod. |
|
Set the partial processing time 0 < partTime <= 1 of an operation of a job on a machine
Implements SGeneralShopMod. |