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

SPrecRelationMod Class Reference

#include <SPrecRelationMod.h>

Inherits SModifier.

Inherited by SPrecDAGMod.

Inheritance diagram for SPrecRelationMod:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual void jobsAdded (const leda_list< SJob * > &newJobs)=0
virtual void jobsDeleted (const leda_list< SJob * > &jobs)=0
virtual void synchronize ()=0
virtual leda_edge addDependency (SJob &source, SJob &target, bool doCycleCheck=false)=0
virtual bool delDependency (SJob &source, SJob &target)=0
virtual bool load (std::istream &in)=0
virtual void save (std::ostream &out) const=0
virtual void sample ()

Protected Methods

SFlexLexergetLexer (std::istream &in)

Detailed Description

Base class of modifiers for all kind of precedence relations


Member Function Documentation

virtual leda_edge SPrecRelationMod::addDependency SJob   source,
SJob   target,
bool    doCycleCheck = false
[pure virtual]
 

Add relation. "job source must be finished, before job target can be scheduled"

Parameters:
source  source job
target  target job
doCycleCheck  enable/disable check, if edge would create cycles
Returns:
inserted edge if successfull, otherwise nil

Implemented in SPrecDAGMod.

virtual bool SPrecRelationMod::delDependency SJob   source,
SJob   target
[pure virtual]
 

Delete relation.

Parameters:
source  source job
target  target job

Implemented in SPrecDAGMod.

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

virtual void SPrecRelationMod::jobsAdded const leda_list< SJob * > &    newJobs [pure virtual]
 

Information that new jobs have been appended to the task system

Parameters:
newJobs  new jobs, that have been added

Implemented in SPrecDAGMod.

virtual void SPrecRelationMod::jobsDeleted const leda_list< SJob * > &    jobs [pure virtual]
 

Information that jobs have been deleted from the task system

Parameters:
job  old jobs, that will be deleted in future

Implemented in SPrecDAGMod.

virtual bool SModifier::load std::istream &    in [pure virtual, inherited]
 

Load from stream

Parameters:
in  input stream
Returns:
true if successfull, otherwise false

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.

virtual void SModifier::sample   [inline, virtual, inherited]
 

Reimplemented in SBroadcastMod, SIdenticalMod, SOpenShopMod, SUniformMod, SUnrelatedMod, SAtomarJobMod, SBroadcastRequMod, SMalleableJobMod, SParallelJobMod, SShopJobMod, SPrecBrokerMod, SPrecDAGMod, STaskSystemMod, SDimArrayMod, SHypercubeMod, SLineTopologyMod, SMeshNMod, SMeshTopologyMod, SSetTopologyMod, and SSingleTopologyMod.

virtual void SModifier::save std::ostream &    out const [pure virtual, inherited]
 

Save to 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.

virtual void SPrecRelationMod::synchronize   [pure virtual]
 

Synchronizing precedence relation with jobs of tasksystem after deletion of jobs

Implemented in SPrecDAGMod.


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