FSMSADF::PlatformGraph Class Reference

#include <graph.h>

Inheritance diagram for FSMSADF::PlatformGraph:
Collaboration diagram for FSMSADF::PlatformGraph:

List of all members.

Public Member Functions

 PlatformGraph (GraphComponent c)
 PlatformGraph ()
 ~PlatformGraph ()
PlatformGraphcreate (GraphComponent c) const
PlatformGraphcreateCopy (GraphComponent c)
PlatformGraphclone (GraphComponent c)
void constructFromXML (const CNodePtr platformGraphNode)
void convertToXML (const CNodePtr platformGraphNode)
TilesgetTiles ()
TilegetTile (const CId id)
TilegetTile (const CString &name)
TilecreateTile (const CString &name)
void addTile (Tile *t)
void removeTile (Tile *t)
ConnectionsgetConnections ()
ConnectiongetConnection (const CId id)
ConnectiongetConnection (const CString &name)
ConnectioncreateConnection (const CString &name)
void addConnection (Connection *c)
void removeConnection (Connection *c)

Private Attributes

Tiles tiles
Connections connections

Detailed Description

PlatformGraph Container for platform graph.


Constructor & Destructor Documentation

PlatformGraph::PlatformGraph ( GraphComponent  c  ) 

PlatformGraph () Constructor.

PlatformGraph::PlatformGraph (  ) 

PlatformGraph () Constructor.

Referenced by create().

PlatformGraph::~PlatformGraph (  ) 

~PlatformGraph () Destructor.

References connections, and tiles.


Member Function Documentation

void PlatformGraph::addConnection ( Connection c  ) 

addConnection() The function adds the connection c to the graph.

References connections.

Referenced by clone(), createConnection(), and createCopy().

void PlatformGraph::addTile ( Tile t  ) 

addTile() The function adds tile t to the graph.

References tiles.

Referenced by clone(), createCopy(), and createTile().

PlatformGraph * PlatformGraph::clone ( GraphComponent  c  ) 

clone() The function creates a clone of this platfomr graph.

References addConnection(), addTile(), connections, create(), FSMSADF::GraphComponent::getId(), FSMSADF::GraphComponent::getName(), FSMSADF::GraphComponent::setName(), and tiles.

Here is the call graph for this function:

void PlatformGraph::convertToXML ( const CNodePtr  platformGraphNode  ) 

convertToXML() The function adds all elements of this graph to the supplied node.

References CAddAttribute(), CAddNode(), connections, FSMSADF::GraphComponent::getName(), and tiles.

Referenced by FSMSADF::SDF3Flow::convertToXML().

Here is the call graph for this function:

PlatformGraph * PlatformGraph::create ( GraphComponent  c  )  const

create() The function creates a new platform graph object.

References PlatformGraph().

Referenced by clone(), and createCopy().

Here is the call graph for this function:

Connection * PlatformGraph::createConnection ( const CString name  ) 

createConnection() The function creates a new connection and adds it to the graph.

References addConnection(), c, connections, and FSMSADF::GraphComponent::GraphComponent().

Referenced by constructFromXML().

Here is the call graph for this function:

PlatformGraph * PlatformGraph::createCopy ( GraphComponent  c  ) 

createCopy() The function creates a copy of the platform graph. Note that copying does not relocate connections. The clone function should be used for this purpose.

References addConnection(), addTile(), connections, create(), FSMSADF::GraphComponent::getId(), FSMSADF::GraphComponent::getName(), FSMSADF::GraphComponent::setName(), and tiles.

Here is the call graph for this function:

Tile * PlatformGraph::createTile ( const CString name  ) 

createTile() The function creates a new tile and adds it to the graph.

References addTile(), FSMSADF::GraphComponent::GraphComponent(), and tiles.

Referenced by constructFromXML().

Here is the call graph for this function:

Connection * PlatformGraph::getConnection ( const CString name  ) 

getConnection() The function returns a pointer to a connection with the supplied name. When no such connection exists, an exception is thrown.

References connections.

Connection * PlatformGraph::getConnection ( const CId  id  ) 

getConnection() The function returns a pointer to a connection with the supplied id. When no such connection exists, an exception is thrown.

References connections.

Referenced by FSMSADF::PlatformBinding::constructFromXML(), and FSMSADF::PlatformBinding::constructResourceUsageFromXML().

Tile * PlatformGraph::getTile ( const CId  id  ) 

getTile() The function returns a pointer to a tile with the supplied id. When no such tile exists, an exception is thrown.

References tiles.

Referenced by FSMSADF::Connection::clone(), FSMSADF::PlatformBinding::constructFromXML(), FSMSADF::Connection::constructFromXML(), and FSMSADF::PlatformBinding::constructResourceUsageFromXML().

Tile * PlatformGraph::getTile ( const CString name  ) 

getTile() The function returns a pointer to a tile with the supplied name. When no such tile exists, an exception is thrown.

References tiles.

void PlatformGraph::removeConnection ( Connection c  ) 

removeConnection() The function removes connection c from the graph.

References connections, and FSMSADF::GraphComponent::getName().

Here is the call graph for this function:

void PlatformGraph::removeTile ( Tile t  ) 

removeTile() The function removes tile t from the graph.

References FSMSADF::GraphComponent::getName(), and tiles.

Here is the call graph for this function:


Member Data Documentation


The documentation for this class was generated from the following files: