NetworkInterface Class Reference
#include <networkinterface.h>
Public Types | |
enum | { nrConn = 0, inBw, outBw } |
Public Member Functions | |
NetworkInterface (ArchComponent &c) | |
virtual | ~NetworkInterface () |
CSize | getNrConnections () const |
double | getInBandwidth () const |
double | getOutBandwidth () const |
void | setConnections (const CSize nrConnections, const double inBandwidth, const double outBandwidth) |
bool | reserveConnection (TimedSDFchannel *c, const CSize nrConnections, const double inBandwidth, const double outBandwidth) |
bool | releaseConnection (TimedSDFchannel *c) |
CSize | availableNrConnections () const |
double | availableInBandwidth () const |
double | availableOutBandwidth () const |
CompBindings * | getBindings () const |
Private Attributes | |
CompBindings * | connections |
Detailed Description
NetworkInterface Container for tile network interface.
Member Enumeration Documentation
Constructor & Destructor Documentation
NetworkInterface::NetworkInterface | ( | ArchComponent & | c | ) | [inline] |
References connections.
virtual NetworkInterface::~NetworkInterface | ( | ) | [inline, virtual] |
References connections.
Member Function Documentation
double NetworkInterface::availableInBandwidth | ( | ) | const |
References connections, CompBindings::getCurVal(), CompBindings::getMaxVal(), and inBw.
Referenced by LoadBalanceBinding::changeBandwidthAllocation(), SDFconvertToHTML::convertPlatformUsage(), createTileUsageNode(), outputSystemUsage(), reserveConnection(), and LoadBalanceBinding::sortTilesOnLoad().
CSize NetworkInterface::availableNrConnections | ( | ) | const |
References connections, CompBindings::getCurVal(), CompBindings::getMaxVal(), and nrConn.
Referenced by SDFconvertToHTML::convertPlatformUsage(), createTileUsageNode(), outputSystemUsage(), reserveConnection(), and LoadBalanceBinding::sortTilesOnLoad().
double NetworkInterface::availableOutBandwidth | ( | ) | const |
References connections, CompBindings::getCurVal(), CompBindings::getMaxVal(), and outBw.
Referenced by LoadBalanceBinding::changeBandwidthAllocation(), SDFconvertToHTML::convertPlatformUsage(), createTileUsageNode(), outputSystemUsage(), reserveConnection(), and LoadBalanceBinding::sortTilesOnLoad().
CompBindings* NetworkInterface::getBindings | ( | ) | const [inline] |
References connections.
Referenced by LoadBalanceBinding::changeBandwidthAllocation(), SDFconvertToHTML::convertPlatformMapping(), and createMappingNode().
double NetworkInterface::getInBandwidth | ( | ) | const |
References connections, CompBindings::getMaxVal(), and inBw.
Referenced by SDFconvertToHTML::convertPlatformGraph(), SDFconvertToHTML::convertPlatformUsage(), createTileNode(), createTileUsageNode(), outputSystemUsage(), and LoadBalanceBinding::sortTilesOnLoad().
CSize NetworkInterface::getNrConnections | ( | ) | const |
NetworkInterface Container for tile network interface.
References connections, CompBindings::getMaxVal(), and nrConn.
Referenced by SDFconvertToHTML::convertPlatformGraph(), SDFconvertToHTML::convertPlatformUsage(), createTileNode(), createTileUsageNode(), outputSystemUsage(), and LoadBalanceBinding::sortTilesOnLoad().
double NetworkInterface::getOutBandwidth | ( | ) | const |
References connections, CompBindings::getMaxVal(), and outBw.
Referenced by SDFconvertToHTML::convertPlatformGraph(), SDFconvertToHTML::convertPlatformUsage(), createTileNode(), createTileUsageNode(), outputSystemUsage(), and LoadBalanceBinding::sortTilesOnLoad().
bool NetworkInterface::releaseConnection | ( | TimedSDFchannel * | c | ) |
References connections, and CompBindings::unbind().
Referenced by LoadBalanceBinding::changeBandwidthAllocation(), and LoadBalanceBinding::releaseConnectionResources().
bool NetworkInterface::reserveConnection | ( | TimedSDFchannel * | c, | |
const CSize | nrConnections, | |||
const double | inBandwidth, | |||
const double | outBandwidth | |||
) |
References availableInBandwidth(), availableNrConnections(), availableOutBandwidth(), CompBindings::bind(), connections, inBw, nrConn, outBw, and ComponentBinding::setValue().
Referenced by LoadBalanceBinding::allocateConnectionResources(), LoadBalanceBinding::changeBandwidthAllocation(), setMappingNetworkInterface(), and setUsagePlatformGraph().
void NetworkInterface::setConnections | ( | const CSize | nrConnections, | |
const double | inBandwidth, | |||
const double | outBandwidth | |||
) |
References connections.
Referenced by constructPlatformGraph().
Member Data Documentation
CompBindings* NetworkInterface::connections [private] |
The documentation for this class was generated from the following files: