DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <BddComponent.hh>
Public Types | |
typedef Diades::Utils::Exception< BddComponent > | Exception |
typedef Variable::VariableVector | VariableVector |
typedef Formula::FormulaVector | FormulaVector |
typedef Formula | SlStates |
typedef Formula | SlTransitions |
typedef Formula | SlEvents |
Public Member Functions | |
BddComponent () | |
~BddComponent () | |
void | encodeComponent (FormulaFactory &factory, const SynchronisationRules &model, const Component &component, Variable &stateVar, Variable &nextStateVar, Variable &event) |
void | encodeComponent (FormulaFactory &factory, const Component &component, Variable &stateVar, Variable &nextStateVar, Variable &event) |
const SlStates & | initialStates () const |
const SlTransitions & | transitions () const |
const SlTransitions & | transitions (const SlEvents &evt) const |
const SlTransitions & | noTransitions () const |
const SlTransitions & | transitions (const SlStates &sources, const SlEvents &events) const |
const SlEvents & | events (std::set< Event > &events) |
const SlEvents & | event (const Event &event) |
const SlStates & | trigger (const SlStates &sources, const SlEvents &events) const |
const SlStates & | synchronousTrigger (const SlStates &sources, const SlEvents &events) const |
const SlStates & | reach (const SlStates &sources, const SlEvents &nonObservables, const SlEvents &observations) |
Static Public Member Functions | |
static string | typeName () |
Private Member Functions | |
FormulaFactory & | factory () |
void | clear () |
void | encodeEventLabels (const SynchronisationRules &model, const Component &component) |
void | encodeEventLabels (const Component &component) |
void | encodeInitialStates (const Component &component) |
void | encodeTransitions (const Component &component) |
const Formula & | encodeTransition (const Component &component, const Transition &transition) |
Private Attributes | |
FormulaVector | _behaviour |
FormulaVector | _initialState |
FormulaVector | _noTransitions |
unordered_map< string, size_t > | _eventLabels |
FormulaVector | _events |
FormulaVector | _setOfEvents |
VariableVector | _stateVariable |
VariableVector | _nextStateVariable |
VariableVector | _eventVariable |
vector< reference_wrapper< FormulaFactory > > | _factory |
This class implements a automaton component with help of Bdds (Formula)
Definition at line 35 of file BddComponent.hh.
Definition at line 39 of file BddComponent.hh.
Definition at line 41 of file BddComponent.hh.
Definition at line 44 of file BddComponent.hh.
Definition at line 42 of file BddComponent.hh.
Definition at line 43 of file BddComponent.hh.
Definition at line 40 of file BddComponent.hh.
|
inline |
Constructor
Definition at line 65 of file BddComponent.hh.
|
inline |
Destructor
Definition at line 75 of file BddComponent.hh.
References encodeComponent(), event(), and factory().
|
private |
Clear the component
Referenced by factory().
void Diades::Sdmdl::BddComponent::encodeComponent | ( | FormulaFactory & | factory, |
const SynchronisationRules & | model, | ||
const Component & | component, | ||
Variable & | stateVar, | ||
Variable & | nextStateVar, | ||
Variable & | event | ||
) |
Encode a component (part of a system through a SynchronisationRules's model)
factory | the formula factory |
model | the component-based model |
component | the component to encode |
stateVar | the state variable associated to the component to encode |
nextStateVar | the next-state variable associated to the component to encode |
event | the event variable |
Referenced by ~BddComponent().
void Diades::Sdmdl::BddComponent::encodeComponent | ( | FormulaFactory & | factory, |
const Component & | component, | ||
Variable & | stateVar, | ||
Variable & | nextStateVar, | ||
Variable & | event | ||
) |
Encode a component (standalone)
factory | the formula factory |
component | the component to encode |
stateVar | the state variable associated to the component to encode |
nextStateVar | the next-state variable associated to the component to encode |
event | the event variable |
|
private |
component | the component to encode |
Referenced by factory().
|
private |
component | the component to encode |
|
private |
component | the component to encode |
Referenced by factory().
|
private |
component | the component to encode |
Referenced by factory().
|
private |
component | the component to encode |
Referenced by factory().
Referenced by transitions(), and ~BddComponent().
Referenced by transitions().
|
inlineprivate |
Definition at line 212 of file BddComponent.hh.
References clear(), encodeEventLabels(), encodeInitialStates(), encodeTransition(), encodeTransitions(), and require.
Referenced by ~BddComponent().
|
inline |
Definition at line 120 of file BddComponent.hh.
References require.
const SlTransitions& Diades::Sdmdl::BddComponent::noTransitions | ( | ) | const |
Referenced by transitions().
const SlStates& Diades::Sdmdl::BddComponent::reach | ( | const SlStates & | sources, |
const SlEvents & | nonObservables, | ||
const SlEvents & | observations | ||
) |
sources | |
nonObservables | |
observations |
Referenced by transitions().
const SlStates& Diades::Sdmdl::BddComponent::synchronousTrigger | ( | const SlStates & | sources, |
const SlEvents & | events | ||
) | const |
Trigger one event belonging to the set of events from the set of sources
sources | |
events |
Referenced by transitions().
|
inline |
Definition at line 128 of file BddComponent.hh.
References require.
|
inline |
Definition at line 135 of file BddComponent.hh.
References noTransitions(), and require.
|
inline |
Definition at line 151 of file BddComponent.hh.
References event(), events(), reach(), require, synchronousTrigger(), and trigger().
const SlStates& Diades::Sdmdl::BddComponent::trigger | ( | const SlStates & | sources, |
const SlEvents & | events | ||
) | const |
Trigger one event belonging to the set of events from the set of sources
sources | |
events |
Referenced by transitions().
|
inlinestatic |
Definition at line 38 of file BddComponent.hh.
|
private |
Definition at line 48 of file BddComponent.hh.
|
private |
Definition at line 51 of file BddComponent.hh.
|
private |
Definition at line 52 of file BddComponent.hh.
|
private |
Definition at line 56 of file BddComponent.hh.
|
mutableprivate |
Definition at line 58 of file BddComponent.hh.
|
private |
Definition at line 49 of file BddComponent.hh.
|
private |
Definition at line 55 of file BddComponent.hh.
|
mutableprivate |
Definition at line 50 of file BddComponent.hh.
|
private |
Definition at line 53 of file BddComponent.hh.
|
private |
Definition at line 54 of file BddComponent.hh.