#include <STaskSystemMod.h>
Inherits SModifier.
Inheritance diagram for STaskSystemMod:
Public Methods | |
STaskSystemMod (STaskSystem &taskSys) | |
virtual bool | load (std::istream &in) |
virtual void | save (std::ostream &out) const |
virtual void | sample () |
STaskSystem & | getTaskSystem () |
void | addJobs (const leda_list< SJob * > &newJobs) |
void | addJob (SJob *newJob) |
void | delJobs (leda_list< SJob * > &oldJobs) |
void | delJob (SJob *oldJob) |
void | compressJobArray () |
Protected Methods | |
SFlexLexer & | getLexer (std::istream &in) |
|
Constructor |
|
Add a new job
|
|
Add new jobs to the task system. They will receive index n if n jobs already exist (with indices 0..n-1). The job is also inserted in the precedence relation (without any dependencies) and the machines are informed of their new customer. Afterwards the jobs are owned by the task system.
|
|
Compress job array. It is recommended to call this method after deletion of jobs, if you do not want to waste memory. But be aware that job indizes are changed by this method and you should make sure that no old indizes are kept by your program. |
|
Delete one job.
|
|
Delete a list of jobs of the tasksystem. The precedence relation and the machines are informed. Afterwards compressJobArray() is called.
|
|
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 tasksystem from stream.
Implements SModifier. |
|
Reimplemented from SModifier. |
|
Save tasksystem to stream
Implements SModifier. |