DiaDes  0.1
DIAgnosis of Discrete-Event System
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Diades::Altarica::NodeInstanceData Class Reference

#include <NodeInstance.hh>

Public Types

typedef vector< Variable >::size_type VariableIndex
 
typedef vector< NodeInstanceData * >::size_type SubNodeIndex
 

Public Member Functions

 NodeInstanceData (AltaricaModel *model, NodeInstanceData *parent, Node type, const Identifier &name)
 
 ~NodeInstanceData ()
 
EncVariableFactoryvarFactory ()
 
FormulaFactoryfactory ()
 
bool valid () const
 
AltaricaModelmodel () const
 
NodeInstanceDataparent () const
 
Node nodeType () const
 
const Identifiername () const
 
const string & log () const
 
unsigned numberOfNodeVariables () const
 
unsigned numberOfFlowVariables () const
 
unsigned numberOfStateVariables () const
 
VariableIndex firstStateVariableIndex () const
 
VariableIndex lastStateVariableIndex () const
 
Variable getStateVariable (VariableIndex index) const
 
EncVariable getEncodedStateVariable (VariableIndex index) const
 
EncVariable getEncodedNextStateVariable (VariableIndex index) const
 
VariableIndex firstFlowVariableIndex () const
 
VariableIndex lastFlowVariableIndex () const
 
Variable getFlowVariable (VariableIndex index) const
 
EncVariable getEncodedFlowVariable (VariableIndex index) const
 
EncVariable getEncodedNextFlowVariable (VariableIndex index) const
 
VariableIndex firstNodeVariableIndex () const
 
VariableIndex lastNodeVariableIndex () const
 
Variable getNodeVariable (VariableIndex index) const
 
EncVariable getEncodedEvents () const
 
EncVariable getEncodedNodeVariable (VariableIndex index) const
 
EncVariable getEncodedNextNodeVariable (VariableIndex index) const
 
Variable getVariable (const Identifier &name) const
 
EncVariable getEncodedVariable (const Variable &var) const
 
EncVariable getEncodedNextVariable (const Variable &var) const
 
unsigned numberOfSubNodes () const
 
SubNodeIndex subNodeFirst () const
 
SubNodeIndex subNodeLast () const
 
NodeInstanceDatagetSubNode (SubNodeIndex index) const
 
Formula getEncodedTransition (Event event) const
 

Private Types

typedef unordered_map< Identifier, pair< Variable, pair< EncVariable, EncVariable > > > VarDictionary
 

Private Member Functions

void encodeTransitions (const Event &event)
 

Private Attributes

AltaricaModel_model
 
NodeInstanceData_parent
 
vector< NodeInstanceData * > _children
 
Node _node
 
Identifier _name
 
vector< Variable_localNodeVariables
 
vector< EncVariable_localEncodedNodeVariables
 
vector< EncVariable_localEncodedNextNodeVariables
 
vector< Variable_localStateVariables
 
vector< EncVariable_localEncodedStateVariables
 
vector< EncVariable_localEncodedNextStateVariables
 
vector< Variable_localFlowVariables
 
vector< EncVariable_localEncodedFlowVariables
 
vector< EncVariable_localEncodedNextFlowVariables
 
VarDictionary _localVarDictionary
 
EncVariable _localEvents
 
FormulaFactory_formulaFactory
 
EncVariableFactory_variableFactory
 
map< Event, Formula_encodedTransitionOfEvent
 
bool _valid
 
string _log
 

Detailed Description

This is an internal data structure that stores the data about a NodeInstance object. A NodeInstance object is just a pointer on such NodeInstanceData.

Definition at line 26 of file NodeInstance.hh.

Member Typedef Documentation

Definition at line 144 of file NodeInstance.hh.

Definition at line 32 of file NodeInstance.hh.

Definition at line 29 of file NodeInstance.hh.

Constructor & Destructor Documentation

Diades::Altarica::NodeInstanceData::NodeInstanceData ( AltaricaModel model,
NodeInstanceData parent,
Node  type,
const Identifier name 
)
Diades::Altarica::NodeInstanceData::~NodeInstanceData ( )

Member Function Documentation

void Diades::Altarica::NodeInstanceData::encodeTransitions ( const Event event)
private
FormulaFactory& Diades::Altarica::NodeInstanceData::factory ( )
inline

Definition at line 70 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::factory().

VariableIndex Diades::Altarica::NodeInstanceData::firstFlowVariableIndex ( ) const
inline
VariableIndex Diades::Altarica::NodeInstanceData::firstNodeVariableIndex ( ) const
inline
VariableIndex Diades::Altarica::NodeInstanceData::firstStateVariableIndex ( ) const
inline
EncVariable Diades::Altarica::NodeInstanceData::getEncodedEvents ( ) const
inline

Definition at line 95 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::getEncodedEvents().

EncVariable Diades::Altarica::NodeInstanceData::getEncodedFlowVariable ( VariableIndex  index) const
inline
EncVariable Diades::Altarica::NodeInstanceData::getEncodedNextFlowVariable ( VariableIndex  index) const
inline
EncVariable Diades::Altarica::NodeInstanceData::getEncodedNextNodeVariable ( VariableIndex  index) const
inline
EncVariable Diades::Altarica::NodeInstanceData::getEncodedNextStateVariable ( VariableIndex  index) const
inline
EncVariable Diades::Altarica::NodeInstanceData::getEncodedNextVariable ( const Variable var) const
inline
EncVariable Diades::Altarica::NodeInstanceData::getEncodedNodeVariable ( VariableIndex  index) const
inline
EncVariable Diades::Altarica::NodeInstanceData::getEncodedStateVariable ( VariableIndex  index) const
inline
Formula Diades::Altarica::NodeInstanceData::getEncodedTransition ( Event  event) const
inline
EncVariable Diades::Altarica::NodeInstanceData::getEncodedVariable ( const Variable var) const
inline
Variable Diades::Altarica::NodeInstanceData::getFlowVariable ( VariableIndex  index) const
inline

Definition at line 88 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::getFlowVariable().

Variable Diades::Altarica::NodeInstanceData::getNodeVariable ( VariableIndex  index) const
inline

Definition at line 94 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::getNodeVariable().

Variable Diades::Altarica::NodeInstanceData::getStateVariable ( VariableIndex  index) const
inline

Definition at line 82 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::getStateVariable().

NodeInstanceData* Diades::Altarica::NodeInstanceData::getSubNode ( SubNodeIndex  index) const
inline
Parameters
indexIndex of the sub node
Returns
the corresponding sub node

Definition at line 166 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::getSubNode().

Variable Diades::Altarica::NodeInstanceData::getVariable ( const Identifier name) const
inline

Definition at line 99 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::getVariable().

VariableIndex Diades::Altarica::NodeInstanceData::lastFlowVariableIndex ( ) const
inline
VariableIndex Diades::Altarica::NodeInstanceData::lastNodeVariableIndex ( ) const
inline
VariableIndex Diades::Altarica::NodeInstanceData::lastStateVariableIndex ( ) const
inline
const string& Diades::Altarica::NodeInstanceData::log ( ) const
inline

Definition at line 76 of file NodeInstance.hh.

AltaricaModel* Diades::Altarica::NodeInstanceData::model ( ) const
inline

Definition at line 72 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::model().

const Identifier& Diades::Altarica::NodeInstanceData::name ( ) const
inline

Definition at line 75 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::name().

Node Diades::Altarica::NodeInstanceData::nodeType ( ) const
inline

Definition at line 74 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::nodeType().

unsigned Diades::Altarica::NodeInstanceData::numberOfFlowVariables ( ) const
inline
unsigned Diades::Altarica::NodeInstanceData::numberOfNodeVariables ( ) const
inline
unsigned Diades::Altarica::NodeInstanceData::numberOfStateVariables ( ) const
inline
unsigned Diades::Altarica::NodeInstanceData::numberOfSubNodes ( ) const
inline
Returns
the number of subnodes

Definition at line 138 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::numberOfSubNodes().

NodeInstanceData* Diades::Altarica::NodeInstanceData::parent ( ) const
inline

Definition at line 73 of file NodeInstance.hh.

SubNodeIndex Diades::Altarica::NodeInstanceData::subNodeFirst ( ) const
inline
Returns
the index of the first sub node

Definition at line 149 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::subNodeFirst().

SubNodeIndex Diades::Altarica::NodeInstanceData::subNodeLast ( ) const
inline
Returns
the index of the last sub node

Definition at line 157 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::subNodeLast().

bool Diades::Altarica::NodeInstanceData::valid ( ) const
inline

Definition at line 71 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::valid().

EncVariableFactory& Diades::Altarica::NodeInstanceData::varFactory ( )
inline

Definition at line 69 of file NodeInstance.hh.

Referenced by Diades::Altarica::NodeInstance::varFactory().

Member Data Documentation

vector<NodeInstanceData *> Diades::Altarica::NodeInstanceData::_children
private

Definition at line 35 of file NodeInstance.hh.

map<Event,Formula> Diades::Altarica::NodeInstanceData::_encodedTransitionOfEvent
private

Definition at line 51 of file NodeInstance.hh.

FormulaFactory* Diades::Altarica::NodeInstanceData::_formulaFactory
private

Definition at line 49 of file NodeInstance.hh.

vector<EncVariable> Diades::Altarica::NodeInstanceData::_localEncodedFlowVariables
private

Definition at line 45 of file NodeInstance.hh.

vector<EncVariable> Diades::Altarica::NodeInstanceData::_localEncodedNextFlowVariables
private

Definition at line 46 of file NodeInstance.hh.

vector<EncVariable> Diades::Altarica::NodeInstanceData::_localEncodedNextNodeVariables
private

Definition at line 40 of file NodeInstance.hh.

vector<EncVariable> Diades::Altarica::NodeInstanceData::_localEncodedNextStateVariables
private

Definition at line 43 of file NodeInstance.hh.

vector<EncVariable> Diades::Altarica::NodeInstanceData::_localEncodedNodeVariables
private

Definition at line 39 of file NodeInstance.hh.

vector<EncVariable> Diades::Altarica::NodeInstanceData::_localEncodedStateVariables
private

Definition at line 42 of file NodeInstance.hh.

EncVariable Diades::Altarica::NodeInstanceData::_localEvents
private

Definition at line 48 of file NodeInstance.hh.

vector<Variable> Diades::Altarica::NodeInstanceData::_localFlowVariables
private

Definition at line 44 of file NodeInstance.hh.

vector<Variable> Diades::Altarica::NodeInstanceData::_localNodeVariables
private

Definition at line 38 of file NodeInstance.hh.

vector<Variable> Diades::Altarica::NodeInstanceData::_localStateVariables
private

Definition at line 41 of file NodeInstance.hh.

VarDictionary Diades::Altarica::NodeInstanceData::_localVarDictionary
private

Definition at line 47 of file NodeInstance.hh.

string Diades::Altarica::NodeInstanceData::_log
private

Definition at line 53 of file NodeInstance.hh.

AltaricaModel* Diades::Altarica::NodeInstanceData::_model
private

Definition at line 33 of file NodeInstance.hh.

Identifier Diades::Altarica::NodeInstanceData::_name
private

Definition at line 37 of file NodeInstance.hh.

Node Diades::Altarica::NodeInstanceData::_node
private

Definition at line 36 of file NodeInstance.hh.

NodeInstanceData* Diades::Altarica::NodeInstanceData::_parent
private

Definition at line 34 of file NodeInstance.hh.

bool Diades::Altarica::NodeInstanceData::_valid
private

Definition at line 52 of file NodeInstance.hh.

EncVariableFactory* Diades::Altarica::NodeInstanceData::_variableFactory
private

Definition at line 50 of file NodeInstance.hh.


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