#include <SUnrelatedMod.h>
Inherits SEnvironmentMod.
Inheritance diagram for SUnrelatedMod:
Public Methods | |
SUnrelatedMod (SUnrelated &env) | |
virtual | ~SUnrelatedMod () |
virtual bool | load (std::istream &in) |
virtual void | save (std::ostream &out) const |
virtual void | sample () |
virtual void | setNumOfMachines (int n) |
virtual void | setNumOfJobs (int n) |
void | setSpeed (int machine, const SJob &job, double speed) |
SUnrelated & | getUnrelated () |
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.
|
|
Return the unrelated processor environment |
|
Load an unrelated processor environment from stream
Implements SModifier. |
|
Reimplemented from SModifier. |
|
Save the unrelated processor environment to stream Implements SModifier. |
|
Inform the machines about the number of jobs in the tasksystem If the number of jobs is reduced, the ones with the lower indices are kept, if new jobs are added, their job/machine-speed is set to 1
Implements SEnvironmentMod. |
|
Set a new number of machines. If the number of machines is reduced, the ones with the lower indices are kept, if new machines are added, their speed-factor is set to 1
Implements SEnvironmentMod. |
|
Set the speed-factor of a machine-job combination
|