#include <SEnvironmentMod.h>
Inherits SModifier.
Inherited by SBroadcastMod, SGeneralShopMod, SIdenticalMod, SUniformMod, and SUnrelatedMod.
Inheritance diagram for SEnvironmentMod:
Public Methods | |
virtual void | setNumOfMachines (int n)=0 |
virtual void | setNumOfJobs (int n)=0 |
virtual bool | load (std::istream &in)=0 |
virtual void | save (std::ostream &out) const=0 |
virtual void | sample () |
Protected Methods | |
SFlexLexer & | getLexer (std::istream &in) |
|
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 from stream
Implemented in SBroadcastMod, SFlowShopMod, SIdenticalMod, SJobShopMod, SOpenShopMod, SUniformMod, SUnrelatedMod, SAtomarJobMod, SBroadcastRequMod, SJobMod, SMalleableJobMod, SParallelJobMod, SShopJobMod, SMachinesMod, SPassiveMachinesMod, SPrecBrokerMod, SPrecDAGMod, STaskSystemMod, SVisPrecDAGMod, SDimArrayMod, SHypercubeMod, SLineTopologyMod, SMeshNMod, SMeshTopologyMod, SSetTopologyMod, and SSingleTopologyMod. |
|
|
|
Inform the machines about the number of jobs in the tasksystem Implemented in SBroadcastMod, SFlowShopMod, SIdenticalMod, SJobShopMod, SOpenShopMod, SUniformMod, and SUnrelatedMod. |
|
Set the number of machines in the environment Implemented in SBroadcastMod, SFlowShopMod, SIdenticalMod, SJobShopMod, SOpenShopMod, SUniformMod, and SUnrelatedMod. |