FSMSADF::ScenarioBindingConstraints Class Reference

#include <constraint.h>

Collaboration diagram for FSMSADF::ScenarioBindingConstraints:

List of all members.

Public Member Functions

 ScenarioBindingConstraints (const Scenario *s)
 ~ScenarioBindingConstraints ()
ScenarioBindingConstraintsclone (Scenario *s)
void constructFromXML (const CNodePtr constraintsNode)
void convertToXML (const CNodePtr constraintsNode)
const ScenariogetScenario () const
ChannelBindingConstraintsgetConstraintsOfChannel (const Channel *c)
void setConstraintsOfChannel (const Channel *c, ChannelBindingConstraints *bc)
bool hasChannelBindingConstraints (const Channel *c)

Private Attributes

const Scenarioscenario
map< const Channel
*, ChannelBindingConstraints * > 
channelBindingConstraints

Detailed Description

ScenarioBindingConstraints Container for scenario binding constraints.


Constructor & Destructor Documentation

FSMSADF::ScenarioBindingConstraints::ScenarioBindingConstraints ( const Scenario s  ) 

ScenarioBindingConstraints() Constructor.

Referenced by clone().

FSMSADF::ScenarioBindingConstraints::~ScenarioBindingConstraints (  ) 

~GraphBindingConstraints() Destructor.

References channelBindingConstraints.


Member Function Documentation

ScenarioBindingConstraints * FSMSADF::ScenarioBindingConstraints::clone ( Scenario s  ) 

clone() Create a cloned copy of this scenario binding object. The channel relations are updated to the corresponding channels in the scenario graph of scenario s.

References c, channelBindingConstraints, FSMSADF::Channel::clone(), FSMSADF::ScenarioGraph::getChannel(), FSMSADF::Scenario::getScenarioGraph(), ScenarioBindingConstraints(), and setConstraintsOfChannel().

Here is the call graph for this function:

void FSMSADF::ScenarioBindingConstraints::constructFromXML ( const CNodePtr  constraintsNode  ) 
void FSMSADF::ScenarioBindingConstraints::convertToXML ( const CNodePtr  constraintsNode  ) 

convertToXML() Convert the scenario binding constraints to XML data.

References CAddNode(), and channelBindingConstraints.

Referenced by FSMSADF::GraphBindingConstraints::convertToXML().

Here is the call graph for this function:

const Scenario* FSMSADF::ScenarioBindingConstraints::getScenario (  )  const [inline]

References scenario.

Referenced by constructFromXML().

bool FSMSADF::ScenarioBindingConstraints::hasChannelBindingConstraints ( const Channel c  ) 

hasChannelBindingConstraints() The function returns true when channel c has channel binding constraints. Otherwise the function returns false.

References channelBindingConstraints.

Referenced by getConstraintsOfChannel().

void FSMSADF::ScenarioBindingConstraints::setConstraintsOfChannel ( const Channel c,
ChannelBindingConstraints bc 
)

setConstraintsOfChannel() The function sets the channel binding constraints of channel c.

References channelBindingConstraints.

Referenced by clone(), and getConstraintsOfChannel().


Member Data Documentation


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