#include <graph.h>

Inheritance diagram for FSMSADF::Graph:
Collaboration diagram for FSMSADF::Graph:

List of all members.

Public Member Functions

 Graph (GraphComponent c)
 Graph ()
 ~Graph ()
Graphcreate (GraphComponent c) const
GraphcreateCopy (GraphComponent c) const
Graphclone (GraphComponent c) const
void constructFromXML (const CNodePtr applicationGraphNode)
void convertToXML (const CNodePtr applicationGraphNode)
TimedSDFgraphextractSDFgraph (Scenario *s) const
void isolateScenarios ()
bool hasIsolatedScenarios () const
ScenariogetScenario (const CString &name) const
ScenariosgetScenarios ()
void addScenario (Scenario *s)
ScenariogetDefaultScenario () const
ScenarioGraphgetScenarioGraph (const CString &name) const
ScenarioGraphsgetScenarioGraphs ()
void addScenarioGraph (ScenarioGraph *g)
FSMgetFSM () const
void setFSM (FSM *f)
const CStrings getPersistentTokens () const
Throughput getThroughputConstraint () const
void setThroughputConstraint (const Throughput &t)
ostream & print (ostream &out)

Private Member Functions

void createDefaultScenario ()

Private Attributes

Scenarios scenarios
ScenarioGraphs scenarioGraphs
Throughput throughputConstraint
CStrings persistentTokens


ostream & operator<< (ostream &out, Graph &g)

Detailed Description

Graph Container for FSM-based SADF graph.

Constructor & Destructor Documentation

Graph::Graph ( GraphComponent  c  ) 

Graph () Constructor.

References createDefaultScenario().

Here is the call graph for this function:

Graph::Graph (  ) 

Graph () Constructor.

References createDefaultScenario().

Referenced by create().

Here is the call graph for this function:

Graph::~Graph (  ) 

~Graph () Destructor.

References defaultScenario, fsm, and scenarioGraphs.

Member Function Documentation

void FSMSADF::Graph::addScenario ( Scenario s  )  [inline]
void FSMSADF::Graph::addScenarioGraph ( ScenarioGraph g  )  [inline]
Graph * Graph::create ( GraphComponent  c  )  const

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

References Graph().

Referenced by createCopy().

Here is the call graph for this function:

Graph * Graph::createCopy ( GraphComponent  c  )  const

createCopy () The function returns a pointer to a newly allocated graph object. All properties of the graph are copied.

References create(), g, FSMSADF::GraphComponent::getName(), getThroughputConstraint(), FSMSADF::GraphComponent::setName(), and setThroughputConstraint().

Referenced by clone().

Here is the call graph for this function:

void Graph::createDefaultScenario (  )  [private]

createDefaultScenario() Create a default scenario. This scenario is not part of the set of scenarios. It is just used as a NULL object to store default properties.

References component, defaultScenario, and FSMSADF::GraphComponent::GraphComponent().

Referenced by Graph().

Here is the call graph for this function:

TimedSDFgraph * Graph::extractSDFgraph ( Scenario s  )  const

extractSDFgraph() The function converts the scenario graph of scenario s to a timed SDF graph.

References FSMSADF::ScenarioGraph::extractSDFgraph(), and FSMSADF::Scenario::getScenarioGraph().

Referenced by FSMSADF::ToolAnalyze::analyzeGraph(), FSMSADF::GraphConversion::computeMaxPlusMatricesFromScenarios(), and FSMSADF::ToolTransform::transformGraph().

Here is the call graph for this function:

const CStrings FSMSADF::Graph::getPersistentTokens (  )  const [inline]
ScenarioGraph * Graph::getScenarioGraph ( const CString name  )  const

getScenarioGraph() The function returns a pointer to the scenario graph with the supplied name.

References scenarioGraphs.

Referenced by FSMSADF::Scenario::clone(), clone(), FSMSADF::Scenario::constructFromXML(), and constructFromXML().

Throughput FSMSADF::Graph::getThroughputConstraint (  )  const [inline]

References throughputConstraint.

Referenced by convertToXML(), and createCopy().

bool Graph::hasIsolatedScenarios (  )  const

hasIsolatedScenarios() The function returns true when the scenarios in the graph are isolated (i.e. each scenario graph is used in exactly one scenario). Otherwise the function returns false.

References FSMSADF::Scenario::getScenarioGraph(), and scenarios.

Referenced by FSMSADF::MemoryDimAlgo::computeStorageDist(), FSMSADF::BindingAwareGraph::constructBindingAwareGraph(), and FSMSADF::MemoryDimAlgo::init().

Here is the call graph for this function:

ostream & Graph::print ( ostream &  out  ) 

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

References fsm, FSMSADF::GraphComponent::getId(), FSMSADF::GraphComponent::getName(), FSMSADF::FSM::print(), scenarioGraphs, and scenarios.

Referenced by FSMSADF::ToolAnalyze::analyzeGraph().

Here is the call graph for this function:

void FSMSADF::Graph::setFSM ( FSM f  )  [inline]

References fsm.

Referenced by clone(), and FSMSADF::RandomGraph::createFSM().

void FSMSADF::Graph::setThroughputConstraint ( const Throughput t  )  [inline]

References throughputConstraint.

Referenced by constructFromXML(), and createCopy().

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
Graph g 
) [friend]

Member Data Documentation

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