FSMSADF::ConnectionBinding Class Reference

#include <connection.h>

Inheritance diagram for FSMSADF::ConnectionBinding:
Collaboration diagram for FSMSADF::ConnectionBinding:

List of all members.

Public Member Functions

 ConnectionBinding (GraphComponent c, Connection *co)
 ~ConnectionBinding ()
ConnectionBindingclone (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)
ConnectiongetConnection () 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
PlatformBindinggetPlatformBinding () const

Private Attributes

Connectionconnection
map< Scenario *, ChannelschannelBindings

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

bool FSMSADF::ConnectionBinding::addChannelBinding ( Scenario s,
Channel c 
)

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

void FSMSADF::ConnectionBinding::constructFromXML ( Scenario s,
const CNodePtr  connectionNode 
)

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

void FSMSADF::ConnectionBinding::convertToXML ( Scenario s,
const CNodePtr  connectionNode 
)

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

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

Here is the call graph for this function:

map<Scenario*, Channels>& FSMSADF::ConnectionBinding::getChannelBindings (  )  [inline]
PlatformBinding* FSMSADF::ConnectionBinding::getPlatformBinding (  )  const [inline]
bool FSMSADF::ConnectionBinding::hasChannelBinding ( Scenario s,
const Channel c 
) const

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().

void FSMSADF::ConnectionBinding::removeChannelBinding ( Scenario s,
const Channel c 
)

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().

void FSMSADF::ConnectionBinding::setChannelBindings ( map< Scenario *, Channels > &  ch  )  [inline]

References channelBindings.

Referenced by clone().


Member Data Documentation


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