Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

STaskSystemMod Class Reference

#include <STaskSystemMod.h>

Inherits SModifier.

Inheritance diagram for STaskSystemMod:

Inheritance graph
[legend]
List of all members.

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)

Detailed Description

Modifier for tasksystem , adding and deleting of jobs.
See also:
STaskSystem


Constructor & Destructor Documentation

STaskSystemMod::STaskSystemMod (  STaskSystem &    taskSys )  [inline]
 

Constructor


Member Function Documentation

void STaskSystemMod::addJob (  SJob *    newJob ) 
 

Add a new job

Parameters:
newJob  the new job
See also:
addJobs()

void STaskSystemMod::addJobs (  const leda_list< SJob * > &    newJobs ) 
 

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.

Parameters:
newJobs  list of new jobs

void STaskSystemMod::compressJobArray (    ) 
 

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.

void STaskSystemMod::delJob (  SJob *    oldJob ) 
 

Delete one job.

Parameters:
oldJob  job to be deleted
See also:
delJobs()

void STaskSystemMod::delJobs (  leda_list< SJob * > &    oldJobs ) 
 

Delete a list of jobs of the tasksystem. The precedence relation and the machines are informed. Afterwards compressJobArray() is called.

Parameters:
oldJobs  jobs to be deleted
See also:
addJobs()

SFlexLexer & SModifier::getLexer (  std::istream &    in )  [protected, inherited]
 

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.

Parameters:
in  input stream

STaskSystem& STaskSystemMod::getTaskSystem (    )  [inline]
 

bool STaskSystemMod::load (  std::istream &    in )  [virtual]
 

Load a tasksystem from stream.

Parameters:
in  input-stream
Returns:
true if successful, otherwise false

Implements SModifier.

virtual void STaskSystemMod::sample (    )  [inline, virtual]
 

Reimplemented from SModifier.

void STaskSystemMod::save (  std::ostream &    out )  const [virtual]
 

Save tasksystem to stream

Parameters:
out  output-stream

Implements SModifier.


The documentation for this class was generated from the following files:
Generated on Thu May 22 16:50:55 2003 for Sketch-it! by doxygen1.2.18