#include <SFlowShopMod.h>
Inherits SGeneralShopMod.
Inheritance diagram for SFlowShopMod:
Public Methods | |
SFlowShopMod (SFlowShop &env) | |
virtual | ~SFlowShopMod () |
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 |
|
|
|
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 a flow shop environment from stream
Implements SModifier. |
|
|
Save the flow 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 flow 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. |