DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <Extension.hh>
Public Types | |
typedef Diades::Graph::Node | Event |
Event an Event of a BranchingProcess More... | |
typedef Diades::Graph::Node | Condition |
Condition a Condition of a BranchingProcess More... | |
typedef Diades::Graph::Node | Place |
Place a Place of a Net More... | |
typedef Diades::Graph::Node | Transition |
Transition a Transition of a Net More... | |
Public Member Functions | |
Extension () | |
Extension (const Extension &extension) | |
~Extension () | |
void | setProcess (const BranchingProcess &process) |
const BranchingProcess & | process () const |
void | setProcess (BranchingProcess &process) |
void | setTransition (const Transition &transition) |
const Transition & | transition () const |
const Conditions & | conditions () const |
void | addCondition (const Condition &condition) |
void | removeCondition (const Condition &condition) |
bool | meets (const set< Event > &events) const |
void | clear () |
bool | operator== (const Extension &extension) const |
Private Types | |
typedef std::set< Condition > | Conditions |
Conditions a set of Conditions More... | |
Private Attributes | |
CBox< BranchingProcess > | _process |
@ _process the BranchingProcess that owns this Extension More... | |
Conditions | _conditions |
_conditions the conditions of the Extension More... | |
Transition | _transition |
_transition the Transition associated with this Extension More... | |
An extension of the BranchingProcess
Definition at line 34 of file Extension.hh.
Condition
a Condition of a BranchingProcess
Definition at line 40 of file Extension.hh.
|
private |
Conditions
a set of Conditions
Definition at line 52 of file Extension.hh.
Event
an Event of a BranchingProcess
Definition at line 38 of file Extension.hh.
Place
a Place of a Net
Definition at line 42 of file Extension.hh.
Transition
a Transition of a Net
Definition at line 44 of file Extension.hh.
Diades::Petri::Extension::Extension | ( | ) |
Default constructor
Diades::Petri::Extension::Extension | ( | const Extension & | extension | ) |
Copy constructor
|
inline |
Destructor
Definition at line 78 of file Extension.hh.
void Diades::Petri::Extension::addCondition | ( | const Condition & | condition | ) |
Add a new Condition to the current Extension
condition | the condition to add |
Referenced by conditions().
void Diades::Petri::Extension::clear | ( | ) |
Clear the Extension
Referenced by conditions().
|
inline |
Definition at line 147 of file Extension.hh.
References _conditions, addCondition(), clear(), meets(), operator==(), and removeCondition().
bool Diades::Petri::Extension::meets | ( | const set< Event > & | events | ) | const |
events | a set of events of the underlying BranchingProcess |
Referenced by conditions().
bool Diades::Petri::Extension::operator== | ( | const Extension & | extension | ) | const |
Equality operator (value equality)
extension | the extension to compare with |
Referenced by conditions().
|
inline |
Definition at line 99 of file Extension.hh.
References Diades::Utils::CBox< Object >::obj().
Referenced by setProcess().
void Diades::Petri::Extension::removeCondition | ( | const Condition & | condition | ) |
Remove a Condition of the current Extension
condition | the condition to remove |
Referenced by conditions().
|
inline |
Set the process of this Extension
process | the new BranchingProcess associated with this Extension |
Definition at line 87 of file Extension.hh.
References process().
|
inline |
Set the process of this Extension
process | the new BranchingProcess associated with this Extension |
Definition at line 109 of file Extension.hh.
References process().
|
inline |
Set the transition associated to the current Extension
Transition |
Definition at line 121 of file Extension.hh.
References transition().
|
inline |
Definition at line 134 of file Extension.hh.
References _transition.
Referenced by setTransition().
|
private |
_conditions
the conditions of the Extension
Definition at line 56 of file Extension.hh.
Referenced by conditions().
|
private |
@ _process the BranchingProcess that owns this Extension
Definition at line 48 of file Extension.hh.
|
private |
_transition
the Transition associated with this Extension
Definition at line 59 of file Extension.hh.
Referenced by transition().