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

SPrecDAG Class Reference

#include <SPrecDAG.h>

Inherits SPrecDAGInt.

Inheritance diagram for SPrecDAG:

Inheritance graph
[legend]
List of all members.

Public Methods

 SPrecDAG (STaskSystem &ts)
virtual const leda_graph & getGraph () const
virtual SVisPrecDAGgetVisPrecDAG ()
virtual SPrecRelationModgetModifier ()
virtual bool isAvailable (const SJob &job) const
leda_node getNode (const SJob &job) const
SJobgetJob (leda_node v) const
const STaskSystemgetTaskSystem () const
virtual leda_string getClassifier () const=0
virtual bool isInstanceOf (const leda_string &classifier) const=0
virtual void assureInstanceOf (const leda_string &classifier) const=0
void addObserver (SObserver &obs)
void deleteObserver (SObserver &obs)
void notifyObservers (const SEvent &event)

Friends

class SPrecDAGMod

Detailed Description

Representation of a precedence relation as directed, acyclic graph (DAG), its classifier if "Dag". The nodes of the DAG are the jobs in the tasksystem, the edges are dependencies between jobs: job A must be finished, before job B can be scheduled. Access the modifier to set properties.
See also:
SPrecDAGMod


Constructor & Destructor Documentation

SPrecDAG::SPrecDAG STaskSystem   ts [inline]
 

Constructor


Member Function Documentation

void SObservable::addObserver SObserver   obs [inline, inherited]
 

Here another component can register himself as observer of this component

Parameters:
obs  observer that wants to be notified of events created by this class

virtual void STypeInfo::assureInstanceOf const leda_string &    classifier const [pure virtual, inherited]
 

The same as isInstanceOf(), only that the program is stopped with an error in case of failure

Parameters:
classifier  e.g. "P", "Q", "R", etc

void SObservable::deleteObserver SObserver   obs [inline, inherited]
 

Here another component can delete himself from the list of observers of this component

Parameters:
obs  observer that doesn't want to be notified anymore

virtual leda_string STypeInfo::getClassifier   [pure virtual, inherited]
 

Get the classifier of the object, using the classification scheme. E.g. "P" for Identical Processors

Returns:
classifier string

virtual const leda_graph& SPrecDAG::getGraph   const [inline, virtual]
 

Get read-only access to the graph

Implements SPrecDAGInt.

SJob& SPrecDAG::getJob leda_node    v const [inline, virtual]
 

Get job in tasksystem that corresponds to node in DAG

Parameters:
v  node in DAG
Returns:
job in tasksystem

Implements SPrecDAGInt.

virtual SPrecRelationMod& SPrecDAG::getModifier   [inline, virtual]
 

Get access to the modifier

Implements SPrecRelation.

leda_node SPrecDAG::getNode const SJob   job const [inline, virtual]
 

Get node in DAG that corresponds to job in tasksystem

Parameters:
job  job in tasksystem
Returns:
node in DAG

Implements SPrecDAGInt.

const STaskSystem& SPrecDAG::getTaskSystem   const [inline]
 

Get reference to tasksystem

virtual SVisPrecDAG& SPrecDAG::getVisPrecDAG   [inline, virtual]
 

Visualization only: Get access to node positions and edge bends

Implements SPrecDAGInt.

bool SPrecDAG::isAvailable const SJob   job const [virtual]
 

Return whether scheduling the job would violate the precedence relation.

Parameters:
job  job
Returns:
true, if no violation of precedence realation, otherwise false

Implements SPrecRelation.

virtual bool STypeInfo::isInstanceOf const leda_string &    classifier const [pure virtual, inherited]
 

Checks whether the object is an instance of the specified or a specialized class

Parameters:
classifier  e.g. "P", "Q", "R", etc
Returns:
true if the object can be casted to the specified class

void SObservable::notifyObservers const SEvent   event [inline, inherited]
 

Inform all observers of this component about an event. The Observers will receive this event by their SObserver::update()-method.

Parameters:
event  an event that is sent to all observers of this component
See also:
SObserver::update()


Friends And Related Function Documentation

friend class SPrecDAGMod [friend]
 


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