#include <SMachinesMod.h>
Inherits SPassiveMachinesMod.
Inheritance diagram for SMachinesMod:
Public Methods | |
SMachinesMod (SMachines &machines) | |
virtual bool | load (std::istream &in) |
virtual void | save (std::ostream &out) const |
void | setEnv (SEnvironment *pEnv) |
void | setNumOfMachines (int num) |
void | setTaskSys (STaskSystem &ts) |
void | setTopology (STopology &top) |
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 machines from stream
Reimplemented from SPassiveMachinesMod. |
|
|
Save machines to stream Reimplemented from SPassiveMachinesMod. |
|
Set environment of the machines. After the assignment the environment is owned by the machines |
|
Set the number of machines |
|
Set the tasksystem |
|
Set the topology |