FSMSADF::Connection Class Reference
#include <connection.h>
Public Member Functions | |
Connection (GraphComponent c) | |
~Connection () | |
Connection * | create (GraphComponent c) const |
Connection * | createCopy (GraphComponent c) |
Connection * | clone (GraphComponent c) |
void | constructFromXML (const CNodePtr connectionNode) |
void | convertToXML (const CNodePtr connectionNode) |
Time | getLatency () const |
void | setLatency (const Time t) |
NetworkInterface * | getSrcNetworkInterface () |
NetworkInterface * | getDstNetworkInterface () |
void | connectSrc (NetworkInterface *ni) |
void | connectDst (NetworkInterface *ni) |
PlatformGraph * | getGraph () const |
Private Attributes | |
Time | latency |
NetworkInterface * | srcNetworkInterface |
NetworkInterface * | dstNetworkInterface |
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().
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().
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().
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().
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.
Connection * Connection::create | ( | GraphComponent | c | ) | const |
create() The function returns a new Connection object.
References Connection().
Referenced by createCopy().
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().
NetworkInterface* FSMSADF::Connection::getDstNetworkInterface | ( | ) | [inline] |
PlatformGraph* FSMSADF::Connection::getGraph | ( | ) | const [inline] |
Referenced by clone(), constructFromXML(), and FSMSADF::OutputHTML::getConnectionURL().
Time FSMSADF::Connection::getLatency | ( | ) | const [inline] |
References latency.
Referenced by convertToXML(), createCopy(), FSMSADF::BindingAwareGraph::createMappedChannelToConnectionNSoC(), and FSMSADF::OutputHTML::printPlatformGraph().
NetworkInterface* FSMSADF::Connection::getSrcNetworkInterface | ( | ) | [inline] |
void FSMSADF::Connection::setLatency | ( | const Time | t | ) | [inline] |
References latency.
Referenced by constructFromXML(), and createCopy().
Member Data Documentation
Referenced by connectDst(), convertToXML(), createCopy(), and getDstNetworkInterface().
Time FSMSADF::Connection::latency [private] |
Referenced by getLatency(), and setLatency().
Referenced by connectSrc(), convertToXML(), createCopy(), and getSrcNetworkInterface().
The documentation for this class was generated from the following files: