PlatformGraph Class Reference

#include <graph.h>

Inheritance diagram for PlatformGraph:
Collaboration diagram for PlatformGraph:

List of all members.

Public Member Functions

 PlatformGraph (ArchComponent &c)
virtual ~PlatformGraph ()
TilesIter tilesBegin ()
TilesCIter tilesBegin () const
TilesIter tilesEnd ()
TilesCIter tilesEnd () const
CSize nrTiles () const
Tiles getTiles () const
Tile * getTile (const CId id)
Tile * getTile (const CString &name)
Tile * createTile (const CString &name)
ConnectionsIter connectionsBegin ()
ConnectionsCIter connectionsBegin () const
ConnectionsIter connectionsEnd ()
ConnectionsCIter connectionsEnd () const
Connections getConnections (Tile *srcTile, Tile *dstTile) const
Connection * getConnection (Tile *srcTile, Tile *dstTile) const
Connection * getConnection (const CId id)
Connection * getConnection (const CString &name)
Connection * createConnection (const CString &name)

Private Attributes

Tiles tiles
Connections connections

Detailed Description

PlatformGraph Container for platform graph.


Constructor & Destructor Documentation

PlatformGraph::PlatformGraph ( ArchComponent &  c  ) 

PlatformGraph () Constructor.

PlatformGraph::~PlatformGraph (  )  [virtual]

~PlatformGraph () Destructor.

References c, connectionsBegin(), connectionsEnd(), tilesBegin(), and tilesEnd().

Here is the call graph for this function:


Member Function Documentation

ConnectionsCIter PlatformGraph::connectionsBegin (  )  const [inline]

References connections.

ConnectionsCIter PlatformGraph::connectionsEnd (  )  const [inline]

References connections.

Connection * PlatformGraph::createConnection ( const CString &  name  ) 

createConnection () The adds a connection to the platform graph and returns a pointer to the newly constructed connection.

References c, component, and connections.

Referenced by constructPlatformGraph().

Tile * PlatformGraph::createTile ( const CString &  name  ) 

createTile () The adds a tile to the platform graph and returns a pointer to the newly constructed tile.

References component, and tiles.

Referenced by constructPlatformGraph().

Connection * PlatformGraph::getConnection ( const CString &  name  ) 

getConnection () The function returns a pointer to a connection with the given name or NULL if the connection does not exist.

References c, connectionsBegin(), connectionsEnd(), and ArchComponent::getName().

Here is the call graph for this function:

Connection * PlatformGraph::getConnection ( const CId  id  ) 

getConnection () The function returns a pointer to a connection with the given id or NULL if the connection does not exist.

References connections.

Connection * PlatformGraph::getConnection ( Tile *  srcTile,
Tile *  dstTile 
) const

getConnection () The function returns the first connection it finds from the source to the destination tile.

References c, Connection::getDstTile(), Tile::outConnectionsBegin(), and Tile::outConnectionsEnd().

Referenced by LoadBalanceBinding::computeLoadOfChannelToConnectionBinding(), BindingAwareSDFG::modelBindingInMPFlow(), BindingAwareSDFG::modelBindingInNSoCFlow(), setMappingPlatformGraph(), and LoadBalanceBinding::sortTilesOnCommunicationOverhead().

Here is the call graph for this function:

Connections PlatformGraph::getConnections ( Tile *  srcTile,
Tile *  dstTile 
) const

getConnections () The function returns a list of all connections from the source to the destination tile.

References c, connections, Connection::getDstTile(), Tile::outConnectionsBegin(), and Tile::outConnectionsEnd().

Referenced by LoadBalanceBinding::allocateConnectionResources(), and LoadBalanceBinding::releaseConnectionResources().

Here is the call graph for this function:

Tile * PlatformGraph::getTile ( const CString &  name  ) 

getTile () The function returns a pointer to a tile with the given name or NULL if the tile does not exist.

References ArchComponent::getName(), tilesBegin(), and tilesEnd().

Here is the call graph for this function:

Tiles PlatformGraph::getTiles (  )  const [inline]
TilesCIter PlatformGraph::tilesBegin (  )  const [inline]

References tiles.

TilesCIter PlatformGraph::tilesEnd (  )  const [inline]

References tiles.


Member Data Documentation


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