FSMSADF::ConnectionBinding Class Reference
#include <connection.h>
Public Member Functions | |
ConnectionBinding (GraphComponent c, Connection *co) | |
~ConnectionBinding () | |
ConnectionBinding * | clone (GraphComponent c) |
void | constructFromXML (Scenario *s, const CNodePtr connectionNode) |
void | constructResourceUsageFromXML (const CNodePtr connectionNode) |
void | convertToXML (Scenario *s, const CNodePtr connectionNode) |
void | convertResourceUsageToXML (const CNodePtr connectionNode) |
Connection * | getConnection () const |
map< Scenario *, Channels > & | getChannelBindings () |
void | setChannelBindings (map< Scenario *, Channels > &ch) |
bool | addChannelBinding (Scenario *s, Channel *c) |
void | removeChannelBinding (Scenario *s, const Channel *c) |
bool | hasChannelBinding (Scenario *s, const Channel *c) const |
bool | hasResourcesChannelBinding (Scenario *s, const Channel *c) const |
PlatformBinding * | getPlatformBinding () const |
Private Attributes | |
Connection * | connection |
map< Scenario *, Channels > | channelBindings |
Detailed Description
ConnectionBinding Container for connection binding.
Constructor & Destructor Documentation
FSMSADF::ConnectionBinding::ConnectionBinding | ( | GraphComponent | c, | |
Connection * | co | |||
) |
ConnectionBinding () Constructor.
Referenced by clone().
FSMSADF::ConnectionBinding::~ConnectionBinding | ( | ) |
~ConnectionBinding () Destructor.
Member Function Documentation
addChannelBinding() The function binds channel c in scenario s to this connection. The function returns true on success. Otherwise it returns false.
References channelBindings, hasChannelBinding(), and hasResourcesChannelBinding().
Referenced by FSMSADF::GraphBinding::bindChannelToConnection(), and constructFromXML().
ConnectionBinding * FSMSADF::ConnectionBinding::clone | ( | GraphComponent | c | ) |
clone() Create a cloned copy of this connection binding.
References ConnectionBinding(), getChannelBindings(), getConnection(), and setChannelBindings().
Referenced by FSMSADF::PlatformBinding::clone().
constructFromXML() This function creates the connection binding as specified by the connectionNode.
References addChannelBinding(), c, CGetAttribute(), CGetChildNode(), CHasAttribute(), CNextNode(), FSMSADF::ScenarioGraph::getChannel(), and FSMSADF::Scenario::getScenarioGraph().
Referenced by FSMSADF::PlatformBinding::constructFromXML().
void FSMSADF::ConnectionBinding::constructResourceUsageFromXML | ( | const CNodePtr | connectionNode | ) |
constructResourceUsageFromXML() This function sets the resource usgae of the connection.
Referenced by FSMSADF::PlatformBinding::constructResourceUsageFromXML().
void FSMSADF::ConnectionBinding::convertResourceUsageToXML | ( | const CNodePtr | connectionNode | ) |
convertResourceUsageToXML() This function converts the resource usage of this connection binding to an XML object.
References CAddAttribute(), and FSMSADF::GraphComponent::getName().
convertToXML() This function converts the connection binding to an XML object.
References CAddAttribute(), CAddNode(), channelBindings, and FSMSADF::GraphComponent::getName().
References channelBindings.
Referenced by clone(), FSMSADF::GraphBinding::extractApplicationBindingFromPlatformBinding(), and FSMSADF::BindingAwareGraph::extractChannelMapping().
Connection* FSMSADF::ConnectionBinding::getConnection | ( | ) | const [inline] |
PlatformBinding* FSMSADF::ConnectionBinding::getPlatformBinding | ( | ) | const [inline] |
hasChannelBinding() The function returns true when a binding of channel c in scenario s to this connection exists. Otherwise it returns false.
References channelBindings.
Referenced by addChannelBinding(), and FSMSADF::OutputHTML::printPlatformBinding().
bool FSMSADF::ConnectionBinding::hasResourcesChannelBinding | ( | Scenario * | s, | |
const Channel * | c | |||
) | const |
hasResourcesChannelBinding() The function checks wether there are sufficient resource available to bind the channel c to the connection in scenario s.
Referenced by addChannelBinding().
removeChannelBinding() The function removes the binding of channel c in scenario s to this connection.
References channelBindings.
Referenced by FSMSADF::GraphBinding::bindChannelToConnection(), and FSMSADF::GraphBinding::removeChannelBinding().
References channelBindings.
Referenced by clone().
Member Data Documentation
map<Scenario*, Channels> FSMSADF::ConnectionBinding::channelBindings [private] |
Referenced by addChannelBinding(), convertToXML(), getChannelBindings(), hasChannelBinding(), removeChannelBinding(), and setChannelBindings().
Connection* FSMSADF::ConnectionBinding::connection [private] |
Referenced by getConnection().
The documentation for this class was generated from the following files: