FSMSADF::NetworkInterfaceBinding Class Reference

#include <networkinterface.h>

Inheritance diagram for FSMSADF::NetworkInterfaceBinding:
Collaboration diagram for FSMSADF::NetworkInterfaceBinding:

List of all members.

Public Member Functions

 NetworkInterfaceBinding (GraphComponent c, NetworkInterface *n)
 ~NetworkInterfaceBinding ()
NetworkInterfaceBindingclone (GraphComponent c)
void constructFromXML (Scenario *s, const CNodePtr networkInterfaceNode)
void constructResourceUsageFromXML (const CNodePtr networkInterfaceNode)
void convertToXML (Scenario *s, const CNodePtr networkInterfaceNode)
void convertResourceUsageToXML (const CNodePtr networkInterfaceNode)
NetworkInterfacegetNetworkInterface () const
GraphBindingConstraintsgetGraphBindingConstraints () const
map< Scenario *, Channels > & getInChannelBindings ()
void setInChannelBindings (map< Scenario *, Channels > &ch)
bool addInChannelBinding (Scenario *s, Channel *c)
void removeInChannelBinding (Scenario *s, const Channel *c)
bool hasInChannelBinding (Scenario *s, const Channel *c) const
Size getAvailableNrInConnections (Scenario *s) const
Size getAllocatedNrInConnections (Scenario *s) const
Bandwidth getAvailableBandwidthInConnections (Scenario *s) const
Bandwidth getAllocatedBandwidthInConnections (Scenario *s) const
bool hasResourcesInChannelBinding (Scenario *s, const Channel *c) const
Size getNrInConnectionsUsedForOtherGraphs () const
void setNrInConnectionsUsedForOtherGraphs (const Size n)
Bandwidth getInBandwidthUsedForOtherGraphs () const
void setInBandwidthUsedForOtherGraphs (const Bandwidth b)
map< Scenario *, Channels > & getOutChannelBindings ()
void setOutChannelBindings (map< Scenario *, Channels > &ch)
bool addOutChannelBinding (Scenario *s, Channel *c)
void removeOutChannelBinding (Scenario *s, const Channel *c)
bool hasOutChannelBinding (Scenario *s, const Channel *c) const
Size getAvailableNrOutConnections (Scenario *s) const
Size getAllocatedNrOutConnections (Scenario *s) const
Bandwidth getAvailableBandwidthOutConnections (Scenario *s) const
Bandwidth getAllocatedBandwidthOutConnections (Scenario *s) const
bool hasResourcesOutChannelBinding (Scenario *s, const Channel *c) const
Size getNrInConnectionsUsedForGraph () const
Bandwidth getInBandwidthUsedForGraph () const
Size getNrOutConnectionsUsedForGraph () const
Bandwidth getOutBandwidthUsedForGraph () const
Size getNrOutConnectionsUsedForOtherGraphs () const
void setNrOutConnectionsUsedForOtherGraphs (const Size n)
Bandwidth getOutBandwidthUsedForOtherGraphs () const
void setOutBandwidthUsedForOtherGraphs (const Bandwidth b)
TileBindinggetTileBinding () const

Private Attributes

NetworkInterfacenetworkInterface
map< Scenario *, ChannelsinChannelBindings
map< Scenario *, ChannelsoutChannelBindings
Size nrInConnectionsUsedForOtherGraphs
Size nrOutConnectionsUsedForOtherGraphs
Bandwidth inBandwidthUsedForOtherGraphs
Bandwidth outBandwidthUsedForOtherGraphs

Detailed Description

NetworkInterfaceBinding Container for tile network interface binding.


Constructor & Destructor Documentation

FSMSADF::NetworkInterfaceBinding::NetworkInterfaceBinding ( GraphComponent  c,
NetworkInterface n 
)

NetworkInterfaceBinding() Constructor.

Referenced by clone().

FSMSADF::NetworkInterfaceBinding::~NetworkInterfaceBinding (  ) 

Member Function Documentation

bool FSMSADF::NetworkInterfaceBinding::addInChannelBinding ( Scenario s,
Channel c 
)

addInChannelBinding() The function binds channel c in scenario s to this interface. The function returns true on success. Otherwise it returns false.

References hasInChannelBinding(), hasResourcesInChannelBinding(), and inChannelBindings.

Referenced by FSMSADF::GraphBinding::bindChannelToConnection(), and constructFromXML().

Here is the call graph for this function:

bool FSMSADF::NetworkInterfaceBinding::addOutChannelBinding ( Scenario s,
Channel c 
)

addOutChannelBinding() The function binds channel c in scenario s to this interface. The function returns true on success. Otherwise it returns false.

References hasOutChannelBinding(), hasResourcesOutChannelBinding(), and outChannelBindings.

Referenced by FSMSADF::GraphBinding::bindChannelToConnection(), and constructFromXML().

Here is the call graph for this function:

void FSMSADF::NetworkInterfaceBinding::constructFromXML ( Scenario s,
const CNodePtr  networkInterfaceNode 
)

constructFromXML() This function creates the network interface binding as specified by the connectionNode.

References addInChannelBinding(), addOutChannelBinding(), c, CGetAttribute(), CGetChildNode(), CHasAttribute(), CNextNode(), FSMSADF::ScenarioGraph::getChannel(), and FSMSADF::Scenario::getScenarioGraph().

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

Here is the call graph for this function:

void FSMSADF::NetworkInterfaceBinding::constructResourceUsageFromXML ( const CNodePtr  networkInterfaceNode  ) 
void FSMSADF::NetworkInterfaceBinding::convertResourceUsageToXML ( const CNodePtr  networkInterfaceNode  ) 
void FSMSADF::NetworkInterfaceBinding::convertToXML ( Scenario s,
const CNodePtr  networkInterfaceNode 
)

convertToXML() This function converts the network interface binding to an XML object.

References CAddAttribute(), CAddNode(), FSMSADF::GraphComponent::getName(), inChannelBindings, and outChannelBindings.

Here is the call graph for this function:

Bandwidth FSMSADF::NetworkInterfaceBinding::getAllocatedBandwidthInConnections ( Scenario s  )  const
Bandwidth FSMSADF::NetworkInterfaceBinding::getAllocatedBandwidthOutConnections ( Scenario s  )  const
Size FSMSADF::NetworkInterfaceBinding::getAllocatedNrInConnections ( Scenario s  )  const

getAllocatedNrInConnections() The function returns the number of input connections allocated to the application graph on this network interface in scenario s.

References inChannelBindings.

Referenced by getAvailableNrInConnections(), getNrInConnectionsUsedForGraph(), and FSMSADF::OutputHTML::printPlatformBinding().

Size FSMSADF::NetworkInterfaceBinding::getAllocatedNrOutConnections ( Scenario s  )  const

getAllocatedNrOutConnections() The function returns the number of output connections allocated to the application graph on this network interface in scenario s.

References outChannelBindings.

Referenced by getAvailableNrOutConnections(), getNrOutConnectionsUsedForGraph(), and FSMSADF::OutputHTML::printPlatformBinding().

Bandwidth FSMSADF::NetworkInterfaceBinding::getAvailableBandwidthInConnections ( Scenario s  )  const

getAvailableBandwidthInConnections() The function returns the amount of input bandwidth which is available on this network interface in scenario s.

References getAllocatedBandwidthInConnections(), FSMSADF::NetworkInterface::getInBandwidth(), inBandwidthUsedForOtherGraphs, and networkInterface.

Referenced by hasResourcesInChannelBinding().

Here is the call graph for this function:

Bandwidth FSMSADF::NetworkInterfaceBinding::getAvailableBandwidthOutConnections ( Scenario s  )  const

getAvailableBandwidthOutConnections() The function returns the amount of output bandwidth which is available on this network interface in scenario s.

References getAllocatedBandwidthOutConnections(), FSMSADF::NetworkInterface::getOutBandwidth(), networkInterface, and outBandwidthUsedForOtherGraphs.

Referenced by hasResourcesOutChannelBinding().

Here is the call graph for this function:

Size FSMSADF::NetworkInterfaceBinding::getAvailableNrInConnections ( Scenario s  )  const

getAvailableNrInConnections() The function returns the number of available input connections on this network interface in scenario s.

References getAllocatedNrInConnections(), FSMSADF::NetworkInterface::getMaxNrInConnections(), networkInterface, and nrInConnectionsUsedForOtherGraphs.

Referenced by hasResourcesInChannelBinding().

Here is the call graph for this function:

Size FSMSADF::NetworkInterfaceBinding::getAvailableNrOutConnections ( Scenario s  )  const

getAvailableNrOutConnections() The function returns the number of available output connections on this network interface in scenario s.

References getAllocatedNrOutConnections(), FSMSADF::NetworkInterface::getMaxNrOutConnections(), networkInterface, and nrOutConnectionsUsedForOtherGraphs.

Referenced by hasResourcesOutChannelBinding().

Here is the call graph for this function:

GraphBindingConstraints * FSMSADF::NetworkInterfaceBinding::getGraphBindingConstraints (  )  const
Bandwidth FSMSADF::NetworkInterfaceBinding::getInBandwidthUsedForGraph (  )  const

getInBandwidthUsedForGraph() The function returns the maximal amount of bandwidth which has been allocated to the application in any of its scenarios.

References g, getAllocatedBandwidthInConnections(), FSMSADF::PlatformBinding::getApplicationGraph(), FSMSADF::TileBinding::getPlatformBinding(), FSMSADF::Graph::getScenarios(), getTileBinding(), and MAX.

Referenced by FSMSADF::GraphBinding::computeParetoQuantities(), convertResourceUsageToXML(), and FSMSADF::OutputHTML::printPlatformBinding().

Here is the call graph for this function:

Bandwidth FSMSADF::NetworkInterfaceBinding::getInBandwidthUsedForOtherGraphs (  )  const [inline]
map<Scenario*, Channels>& FSMSADF::NetworkInterfaceBinding::getInChannelBindings (  )  [inline]
Size FSMSADF::NetworkInterfaceBinding::getNrInConnectionsUsedForGraph (  )  const

getNrInConnectionsUsedForGraph() The function returns the maximal amount of connections which has been allocated to the application in any of its scenarios.

References g, getAllocatedNrInConnections(), FSMSADF::PlatformBinding::getApplicationGraph(), FSMSADF::TileBinding::getPlatformBinding(), FSMSADF::Graph::getScenarios(), getTileBinding(), and MAX.

Referenced by convertResourceUsageToXML(), and FSMSADF::OutputHTML::printPlatformBinding().

Here is the call graph for this function:

Size FSMSADF::NetworkInterfaceBinding::getNrInConnectionsUsedForOtherGraphs (  )  const [inline]
Size FSMSADF::NetworkInterfaceBinding::getNrOutConnectionsUsedForGraph (  )  const

getNrOutConnectionsUsedForGraph() The function returns the maximal amount of connections which has been allocated to the application in any of its scenarios.

References g, getAllocatedNrOutConnections(), FSMSADF::PlatformBinding::getApplicationGraph(), FSMSADF::TileBinding::getPlatformBinding(), FSMSADF::Graph::getScenarios(), getTileBinding(), and MAX.

Referenced by convertResourceUsageToXML(), and FSMSADF::OutputHTML::printPlatformBinding().

Here is the call graph for this function:

Size FSMSADF::NetworkInterfaceBinding::getNrOutConnectionsUsedForOtherGraphs (  )  const [inline]
Bandwidth FSMSADF::NetworkInterfaceBinding::getOutBandwidthUsedForGraph (  )  const

getOutBandwidthUsedForGraph() The function returns the maximal amount of bandwidth which has been allocated to the application in any of its scenarios.

References g, getAllocatedBandwidthOutConnections(), FSMSADF::PlatformBinding::getApplicationGraph(), FSMSADF::TileBinding::getPlatformBinding(), FSMSADF::Graph::getScenarios(), getTileBinding(), and MAX.

Referenced by FSMSADF::GraphBinding::computeParetoQuantities(), convertResourceUsageToXML(), and FSMSADF::OutputHTML::printPlatformBinding().

Here is the call graph for this function:

Bandwidth FSMSADF::NetworkInterfaceBinding::getOutBandwidthUsedForOtherGraphs (  )  const [inline]
map<Scenario*, Channels>& FSMSADF::NetworkInterfaceBinding::getOutChannelBindings (  )  [inline]
bool FSMSADF::NetworkInterfaceBinding::hasInChannelBinding ( Scenario s,
const Channel c 
) const

hasInChannelBinding() The function returns true when a binding of channel c in scenario s to this network interface exists. Otherwise it returns false.

References inChannelBindings.

Referenced by addInChannelBinding(), and FSMSADF::OutputHTML::printPlatformBinding().

bool FSMSADF::NetworkInterfaceBinding::hasOutChannelBinding ( Scenario s,
const Channel c 
) const

hasOutChannelBinding() The function returns true when a binding of channel c in scenario s to this network interface exists. Otherwise it returns false.

References outChannelBindings.

Referenced by addOutChannelBinding(), and FSMSADF::OutputHTML::printPlatformBinding().

bool FSMSADF::NetworkInterfaceBinding::hasResourcesInChannelBinding ( Scenario s,
const Channel c 
) const
bool FSMSADF::NetworkInterfaceBinding::hasResourcesOutChannelBinding ( Scenario s,
const Channel c 
) const
void FSMSADF::NetworkInterfaceBinding::removeInChannelBinding ( Scenario s,
const Channel c 
)

removeInChannelBinding() The function removes the binding of channel c in scenario s to this network interface.

References inChannelBindings.

Referenced by FSMSADF::GraphBinding::bindChannelToConnection(), and FSMSADF::GraphBinding::removeChannelBinding().

void FSMSADF::NetworkInterfaceBinding::removeOutChannelBinding ( Scenario s,
const Channel c 
)

removeOutChannelBinding() The function removes the binding of channel c in scenario s to this network interface.

References outChannelBindings.

Referenced by FSMSADF::GraphBinding::bindChannelToConnection().

void FSMSADF::NetworkInterfaceBinding::setInBandwidthUsedForOtherGraphs ( const Bandwidth  b  )  [inline]
void FSMSADF::NetworkInterfaceBinding::setInChannelBindings ( map< Scenario *, Channels > &  ch  )  [inline]

References inChannelBindings.

Referenced by clone().

void FSMSADF::NetworkInterfaceBinding::setNrInConnectionsUsedForOtherGraphs ( const Size  n  )  [inline]
void FSMSADF::NetworkInterfaceBinding::setNrOutConnectionsUsedForOtherGraphs ( const Size  n  )  [inline]
void FSMSADF::NetworkInterfaceBinding::setOutBandwidthUsedForOtherGraphs ( const Bandwidth  b  )  [inline]
void FSMSADF::NetworkInterfaceBinding::setOutChannelBindings ( map< Scenario *, Channels > &  ch  )  [inline]

References outChannelBindings.

Referenced by clone().


Member Data Documentation


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