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

SSetTopology Class Reference

#include <SSetTopology.h>

Inherits STopology.

Inherited by SSingleTopology.

Inheritance diagram for SSetTopology:

Inheritance graph
[legend]
List of all members.

Public Methods

 SSetTopology (int cardinality)
virtual ~SSetTopology ()
virtual STopologyModgetModifier ()
virtual int getCount () const
virtual int getIDAt (int pos) const
virtual int getPos (int ID) const
virtual bool isPosFree (int pos) const
virtual leda_list< int > getFreePos () const
virtual bool canEmbedAt (const STopology &top, int pos) const
virtual leda_list< int > canEmbedAt (const STopology &top) const
virtual void embed (const STopology &top, int pos, int ID)
virtual void remove (int ID)
virtual bool fitsInto (const STopology *top) const
virtual void embed (const STopology &top, const SComplexPosition *pComplexPos, int ID)
virtual leda_list< int > getEmbeddedIDs () const
virtual void clear ()
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 SSetTopologyMod

Detailed Description

Set topology, its classifier is "set". The SSetTopology basically has no topology. The positions are ignored when embedding. All Jobs are allocated to the leftmost positions in an ordered way. If an ID is removed all IDs to the right of it move left and fill the gap. Access the modifier to set properties.
See also:
SSetTopologyMod


Constructor & Destructor Documentation

SSetTopology::SSetTopology int    cardinality
 

Constructor

Parameters:
cardinality  size of set

virtual SSetTopology::~SSetTopology   [inline, virtual]
 

Destructor


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

leda_list< int > SSetTopology::canEmbedAt const STopology   top const [virtual]
 

Return a list of all position where the topology may be embedded (list contains one zero-entry)

Parameters:
top  topology
Returns:
list of positions

Reimplemented from STopology.

Reimplemented in SSingleTopology.

bool SSetTopology::canEmbedAt const STopology   top,
int    pos
const [virtual]
 

Return whether the topology can be embedded at a certain position

Parameters:
pos  The position is ignored here
Returns:
true if topology can be embedded, otherwise false

Implements STopology.

Reimplemented in SSingleTopology.

void STopology::clear   [virtual, inherited]
 

Remove all embedded objects. Attention: This method has a very inefficient default implementation.

Reimplemented in SHypercube, and SMeshN.

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 void STopology::embed const STopology   top,
const SComplexPosition   pComplexPos,
int    ID
[inline, virtual, inherited]
 

Reimplemented in SHypercube, and SMeshN.

void SSetTopology::embed const STopology   top,
int    pos,
int    ID
[virtual]
 

Embed topology.

Parameters:
top  topology
pos  The position is ignored here
ID  ID of the embedded topology

Implements STopology.

Reimplemented in SSingleTopology.

virtual bool SSetTopology::fitsInto const STopology   top const [inline, virtual]
 

Test whether this Topology is at most as large as another

Parameters:
top  topology to compare with

Implements STopology.

Reimplemented in SSingleTopology.

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 int SSetTopology::getCount   const [inline, virtual]
 

Return the number of positions in the linearized representation. Only positions 0..getCount()-1 are allowed.

Returns:
number of positions (= size of set)

Implements STopology.

Reimplemented in SSingleTopology.

leda_list< int > STopology::getEmbeddedIDs   [virtual, inherited]
 

Get all IDs that are currently embedded in the topology. Attention: This method has a very inefficient default implementation.

Returns:
list of embedded IDs

virtual leda_list<int> SSetTopology::getFreePos   const [inline, virtual]
 

Get a list with as many zero-entries as there are free positions

Returns:
list of free positions

Reimplemented from STopology.

Reimplemented in SSingleTopology.

virtual int SSetTopology::getIDAt int    pos const [inline, virtual]
 

Return ID of the topology which is overlapping position 'pos'

Parameters:
pos  position
Returns:
topology ID (-1 if none)

Implements STopology.

Reimplemented in SSingleTopology.

virtual STopologyMod& SSetTopology::getModifier   [inline, virtual]
 

Get access to the modifier

Implements STopology.

Reimplemented in SSingleTopology.

virtual int SSetTopology::getPos int    ID const [inline, virtual]
 

Return position at which the topology with id 'ID' is currently embedded. This method has no meaning for SSetTopology since the jobs are not embedded at fixed positions.

Parameters:
ID  topology ID
Returns:
position

Implements STopology.

Reimplemented in SSingleTopology.

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

virtual bool SSetTopology::isPosFree int    pos const [inline, virtual]
 

Return whether there is at least one free position left.

Parameters:
pos  The position is ignored here
Returns:
true if no topology overlaps with 'pos', otherise false

Implements STopology.

Reimplemented in SSingleTopology.

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()

void SSetTopology::remove int    ID [virtual]
 

Reverse the embedding

Parameters:
ID  ID of topology

Implements STopology.

Reimplemented in SSingleTopology.


Friends And Related Function Documentation

friend class SSetTopologyMod [friend]
 


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