FSMSADF::Scenario Class Reference

#include <scenario.h>

Inheritance diagram for FSMSADF::Scenario:
Collaboration diagram for FSMSADF::Scenario:

List of all members.

Public Member Functions

 Scenario (GraphComponent c)
 ~Scenario ()
Scenariocreate (GraphComponent c) const
ScenariocreateCopy (GraphComponent c) const
Scenarioclone (GraphComponent c) const
void constructFromXML (const CNodePtr scenarioNode)
void convertToXML (const CNodePtr scenarioNode)
ScenarioGraphgetScenarioGraph () const
void setScenarioGraph (ScenarioGraph *g)
GraphgetGraph () const
ostream & print (ostream &out)

Private Attributes

ScenarioGraphscenarioGraph

Friends

ostream & operator<< (ostream &out, Scenario &s)

Detailed Description

Scenario Scenario in FSM-based SADF graph


Constructor & Destructor Documentation

FSMSADF::Scenario::Scenario ( GraphComponent  c  ) 

Scenario () Constructor.

Referenced by create(), and createCopy().

FSMSADF::Scenario::~Scenario (  ) 

~Scenario () Destructor.


Member Function Documentation

Scenario * FSMSADF::Scenario::clone ( GraphComponent  c  )  const

clone () The function returns a pointer to a newly allocated scenario object. All properties of the scenario are cloned.

References createCopy(), getGraph(), FSMSADF::GraphComponent::getName(), getScenarioGraph(), FSMSADF::Graph::getScenarioGraph(), and setScenarioGraph().

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

Here is the call graph for this function:

void FSMSADF::Scenario::constructFromXML ( const CNodePtr  scenarioNode  ) 

constructFromXML () The function initializes all actor properties based on the XML data.

References CGetAttribute(), CHasAttribute(), FSMSADF::ScenarioGraph::constructPropertiesFromXML(), getGraph(), FSMSADF::Graph::getScenarioGraph(), FSMSADF::GraphComponent::setName(), and setScenarioGraph().

Here is the call graph for this function:

void FSMSADF::Scenario::convertToXML ( const CNodePtr  scenarioNode  ) 

convertToXML () The function converts all port properties to XML data.

References CAddAttribute(), FSMSADF::ScenarioGraph::convertPropertiesToXML(), FSMSADF::GraphComponent::getName(), and getScenarioGraph().

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

Here is the call graph for this function:

Scenario * FSMSADF::Scenario::create ( GraphComponent  c  )  const

create () The function returns a pointer to a newly allocated scenario object.

References Scenario().

Here is the call graph for this function:

Scenario * FSMSADF::Scenario::createCopy ( GraphComponent  c  )  const

createCopy () The function returns a pointer to a newly allocated scenario object. The name of the new scenario is equal to the this scenario. However, the scenario graph is not copied. To also initialize the scenario graph, you should use the clone function.

References FSMSADF::GraphComponent::getName(), Scenario(), and FSMSADF::GraphComponent::setName().

Referenced by clone().

Here is the call graph for this function:

Graph* FSMSADF::Scenario::getGraph (  )  const [inline]

References FSMSADF::GraphComponent::getParent().

Referenced by clone(), constructFromXML(), and FSMSADF::OutputHTML::getScenarioURL().

Here is the call graph for this function:

ostream & FSMSADF::Scenario::print ( ostream &  out  ) 

print () Print the scenario to the supplied output stream.

References FSMSADF::GraphComponent::getId(), FSMSADF::GraphComponent::getName(), and getScenarioGraph().

Here is the call graph for this function:

void FSMSADF::Scenario::setScenarioGraph ( ScenarioGraph g  )  [inline]

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
Scenario s 
) [friend]

Member Data Documentation


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