#include <SJobShopMod.h>
Inherits SGeneralShopMod.
Inheritance diagram for SJobShopMod:
Public Methods | |
SJobShopMod (SJobShop &env) | |
virtual | ~SJobShopMod () |
virtual void | setNumOfMachines (int mach) |
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 a job shop from stream
Implements SModifier. |
|
|
Save the job shop to stream Implements SModifier. |
|
Inform the machines about the number of jobs in the tasksystem. If you increase the number of jobs, the number of operations of new jobs will be set to numberOfMachines and the partial processing times of these are set to 1 / numberOfMachines and the workplan of all operations ist set to machine 0. All old jobs will keep their operations, partial processing times of operations and workplan of operations. Implements SEnvironmentMod. |
|
Set the number of machines in the environment. If you decrease the number of machines, workplan entries that refer to an old machine are set to machine 0. All other workplan entries are preserved, likely as all partial processing times. Implements SEnvironmentMod. |
|
Set the number of operations of a job. All operations of this job will get equal partial processing times ( 1 / numOps ). If you increase the number of operations, the workplan of new operations will be set to machine 0, old operations will keep their workplan. Implements SGeneralShopMod. |
|
Set the partial processing time of an operation of a job. Also the workplan is adjusted in the way that the operation 'op' must be processed on machine 'mach'
Implements SGeneralShopMod. |