FSMSADF::Connection Class Reference

#include <connection.h>

Inheritance diagram for FSMSADF::Connection:
Collaboration diagram for FSMSADF::Connection:

List of all members.

Public Member Functions

 Connection (GraphComponent c)
 ~Connection ()
Connectioncreate (GraphComponent c) const
ConnectioncreateCopy (GraphComponent c)
Connectionclone (GraphComponent c)
void constructFromXML (const CNodePtr connectionNode)
void convertToXML (const CNodePtr connectionNode)
Time getLatency () const
void setLatency (const Time t)
NetworkInterfacegetSrcNetworkInterface ()
NetworkInterfacegetDstNetworkInterface ()
void connectSrc (NetworkInterface *ni)
void connectDst (NetworkInterface *ni)
PlatformGraphgetGraph () const

Private Attributes

Time latency
NetworkInterfacesrcNetworkInterface
NetworkInterfacedstNetworkInterface

Detailed Description

Connection Container for connection.


Constructor & Destructor Documentation

Connection::Connection ( GraphComponent  c  ) 

Connection () Constructor.

Referenced by create().

Connection::~Connection (  ) 

~Connection () Destructor.


Member Function Documentation

Connection * Connection::clone ( GraphComponent  c  ) 

clone() Create a cloned copy of this connection. Cloning will create a new connection between the source and destination network interface.

References connectDst(), connectSrc(), createCopy(), getDstNetworkInterface(), getGraph(), FSMSADF::GraphComponent::getName(), FSMSADF::Tile::getNetworkInterface(), getSrcNetworkInterface(), and FSMSADF::PlatformGraph::getTile().

Here is the call graph for this function:

void Connection::connectDst ( NetworkInterface ni  ) 

connectDst() The function connects the destination of this connection to the supplied network interface.

References FSMSADF::NetworkInterface::addConnectionAsInput(), and dstNetworkInterface.

Referenced by clone(), and constructFromXML().

Here is the call graph for this function:

void Connection::connectSrc ( NetworkInterface ni  ) 

connectSrc() The function connects the source of this connection to the supplied network interface.

References FSMSADF::NetworkInterface::addConnectionAsOutput(), and srcNetworkInterface.

Referenced by clone(), and constructFromXML().

Here is the call graph for this function:

void Connection::constructFromXML ( const CNodePtr  connectionNode  ) 

constructFromXML() The function sets the properties of this connection using the supplied XML node.

References CGetAttribute(), CHasAttribute(), connectDst(), connectSrc(), getGraph(), FSMSADF::Tile::getNetworkInterface(), FSMSADF::PlatformGraph::getTile(), setLatency(), and FSMSADF::GraphComponent::setName().

Referenced by FSMSADF::PlatformGraph::constructFromXML().

Here is the call graph for this function:

void Connection::convertToXML ( const CNodePtr  connectionNode  ) 

convertToXML() The function adds the properties of this connection object to the supplied node.

References CAddAttribute(), dstNetworkInterface, getLatency(), FSMSADF::GraphComponent::getName(), FSMSADF::NetworkInterface::getTile(), and srcNetworkInterface.

Here is the call graph for this function:

Connection * Connection::create ( GraphComponent  c  )  const

create() The function returns a new Connection object.

References Connection().

Referenced by createCopy().

Here is the call graph for this function:

Connection * Connection::createCopy ( GraphComponent  c  ) 

createCopy() The function returns a copy of this connection object. Note that the network interfaces are not relocated. Use the clone function to enforce relocation.

References create(), dstNetworkInterface, getDstNetworkInterface(), getLatency(), FSMSADF::GraphComponent::getName(), getSrcNetworkInterface(), setLatency(), FSMSADF::GraphComponent::setName(), and srcNetworkInterface.

Referenced by clone().

Here is the call graph for this function:

PlatformGraph* FSMSADF::Connection::getGraph (  )  const [inline]
Time FSMSADF::Connection::getLatency (  )  const [inline]
void FSMSADF::Connection::setLatency ( const Time  t  )  [inline]

References latency.

Referenced by constructFromXML(), and createCopy().


Member Data Documentation


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