DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <BddModel.hh>
Public Types | |
typedef Diades::Utils::Exception< BddModel > | Exception |
typedef Diades::Automata::SynchronisationRules::ComponentVector | ComponentVector |
typedef vector< BddComponent > | BddComponentVector |
typedef Variable::VariableVector | VariableVector |
typedef Formula::FormulaVector | FormulaVector |
Public Member Functions | |
BddModel (const SynchronisationRules &model, const set< Event > &observable, const set< Event > &faults) | |
~BddModel () | |
FormulaFactory & | formulaFactory () |
const BddComponent & | getComponent (BddComponentVector::size_type index) const |
BddComponent & | getComponent (BddComponentVector::size_type index) |
const SlStates & | initialStates () const |
const SlEvents & | events () const |
const SlTransitions & | transitions () const |
const SlStates & | trigger (const SlStates &sources, const SlEvents &events) const |
const SlStates & | synchronousTrigger (const SlStates &sources, const SlEvents &events) |
const VariableVector & | stateVariables () const |
const VariableVector & | nextStateVariables () const |
Static Public Member Functions | |
static string | typeName () |
Private Types | |
typedef BddComponent::SlStates | SlStates |
typedef BddComponent::SlTransitions | SlTransitions |
typedef BddComponent::SlEvents | SlEvents |
Private Member Functions | |
void | encodeStateVariables () |
void | encodeEvents () |
void | setFaults (const set< Event > &faults) |
void | setObservables (const set< Event > &observable) |
const SlStates & | trigger (const SlStates &sources, size_t eventIndex) const |
Private Attributes | |
const SynchronisationRules & | _model |
BddComponentVector | _bddComponents |
VariableFactory * | _varFactory |
FormulaFactory * | _formulas |
VariableVector | _stateVariables |
VariableVector | _nextStateVariables |
Variable & | _event |
VariableVector | _varSet |
FormulaVector | _observables |
FormulaVector | _isObs |
FormulaVector | _faults |
FormulaVector | _isFault |
FormulaVector | _setOfEvents |
FormulaVector | _events |
vector< vector< size_t > > | _supports |
vector< vector< bool > > | _booleanSupports |
FormulaVector | _transitions |
This class implements a discrete event system as a set of BddComponent
Definition at line 32 of file BddModel.hh.
typedef vector<BddComponent> Diades::Sdmdl::BddModel::BddComponentVector |
Definition at line 40 of file BddModel.hh.
typedef Diades::Automata::SynchronisationRules::ComponentVector Diades::Sdmdl::BddModel::ComponentVector |
Definition at line 39 of file BddModel.hh.
Definition at line 38 of file BddModel.hh.
Definition at line 42 of file BddModel.hh.
|
private |
Definition at line 63 of file BddModel.hh.
|
private |
Definition at line 61 of file BddModel.hh.
|
private |
Definition at line 62 of file BddModel.hh.
Definition at line 41 of file BddModel.hh.
Diades::Sdmdl::BddModel::BddModel | ( | const SynchronisationRules & | model, |
const set< Event > & | observable, | ||
const set< Event > & | faults | ||
) |
Constructor
model | the set of components to encode |
observable | the set of observable events |
faults | the set of fault events |
shared | the set of shared events that a |
Diades::Sdmdl::BddModel::~BddModel | ( | ) |
Destructor
|
private |
Encode the events
Referenced by nextStateVariables().
|
private |
Encode the state variables
Referenced by nextStateVariables().
|
inline |
Definition at line 145 of file BddModel.hh.
References synchronousTrigger(), transitions(), and trigger().
|
inline |
Definition at line 92 of file BddModel.hh.
References _formulas.
|
inline |
index |
Definition at line 104 of file BddModel.hh.
References require.
|
inline |
index |
Definition at line 119 of file BddModel.hh.
References initialStates(), and require.
const SlStates& Diades::Sdmdl::BddModel::initialStates | ( | ) | const |
Referenced by getComponent().
|
inline |
Definition at line 207 of file BddModel.hh.
References _nextStateVariables, encodeEvents(), encodeStateVariables(), setFaults(), setObservables(), and trigger().
|
private |
Encode the faults of the system
faults | set of fault events |
Referenced by nextStateVariables().
|
private |
Encode the observability of the system
observable | set of observable events |
Referenced by nextStateVariables().
|
inline |
Definition at line 194 of file BddModel.hh.
References _stateVariables.
const SlStates& Diades::Sdmdl::BddModel::synchronousTrigger | ( | const SlStates & | sources, |
const SlEvents & | events | ||
) |
Trigger one event belonging to the set of events from the set of sources
sources | |
events |
Referenced by events().
const SlTransitions& Diades::Sdmdl::BddModel::transitions | ( | ) | const |
Referenced by events().
const SlStates& Diades::Sdmdl::BddModel::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 events(), and nextStateVariables().
|
private |
Trigger one event belonging to the set of events from the set of sources
sources | the set of sources states |
eventIndex | the index of the encoding of THE event to trigger |
|
inlinestatic |
Definition at line 37 of file BddModel.hh.
|
private |
Definition at line 45 of file BddModel.hh.
|
private |
Definition at line 59 of file BddModel.hh.
|
private |
Definition at line 50 of file BddModel.hh.
|
private |
Definition at line 57 of file BddModel.hh.
|
private |
Definition at line 54 of file BddModel.hh.
|
private |
Definition at line 47 of file BddModel.hh.
Referenced by formulaFactory().
|
private |
Definition at line 55 of file BddModel.hh.
|
private |
Definition at line 53 of file BddModel.hh.
|
private |
Definition at line 44 of file BddModel.hh.
|
private |
Definition at line 49 of file BddModel.hh.
Referenced by nextStateVariables().
|
private |
Definition at line 52 of file BddModel.hh.
|
private |
Definition at line 56 of file BddModel.hh.
|
private |
Definition at line 48 of file BddModel.hh.
Referenced by stateVariables().
|
private |
Definition at line 58 of file BddModel.hh.
|
mutableprivate |
Definition at line 60 of file BddModel.hh.
|
private |
Definition at line 46 of file BddModel.hh.
|
private |
Definition at line 51 of file BddModel.hh.