Internal structure for an Altarica Transition.
More...
#include <Transition.hh>
Internal structure for an Altarica Transition.
A Transition stores an altarica transition. (It is not an encoded version, just an raw internal storage of a Transition with of a set of Expression objects and EventDecl).
Definition at line 36 of file Transition.hh.
◆ ConstPointer
◆ ConstReference
◆ Exception
◆ Pointer
◆ Reference
◆ Transition() [1/2]
Diades::Altarica::Transition::Transition |
( |
NodeDecl & |
owner, |
|
|
const Expression & |
precondition |
|
) |
| |
◆ Transition() [2/2]
Diades::Altarica::Transition::Transition |
( |
const Transition & |
transition | ) |
|
Copy constructor
- Parameters
-
◆ ~Transition()
Diades::Altarica::Transition::~Transition |
( |
| ) |
|
◆ addTarget()
Add new targets of the given precondition
- Parameters
-
triggerEventDecls | the set of eventDecl that can be triggered |
assignments | the common postcondition if one of the event is triggered |
A target is a triple (precondition,{event1,...,eventn},postcondition). It also means that a target contains n effective transitions, namely:
(precondition,event1,postcondition) ... (precondition,eventn,postcondition).
Referenced by typeName().
◆ firstTargetIndex()
unsigned Diades::Altarica::Transition::firstTargetIndex |
( |
| ) |
const |
|
inline |
◆ getEventDeclsOfTargetAtIndex()
- Parameters
-
- Returns
- the set of events belonging to the target of index 'index'
Definition at line 174 of file Transition.hh.
◆ getPostConditionOfTargetAtIndex()
◆ lastTargetIndex()
unsigned Diades::Altarica::Transition::lastTargetIndex |
( |
| ) |
const |
|
inline |
◆ numberOfTargets()
unsigned Diades::Altarica::Transition::numberOfTargets |
( |
| ) |
const |
|
inline |
- Returns
- the underlying number of targets that the current Transition stores. A target is a triple (precondition,{event1,...,eventn},postcondition). It also means that a target contains n effective transitions, namely:
(precondition,event1,postcondition) ... (precondition,eventn,postcondition).
Definition at line 146 of file Transition.hh.
◆ owner()
const NodeDecl& Diades::Altarica::Transition::owner |
( |
| ) |
const |
◆ precondition()
const Expression& Diades::Altarica::Transition::precondition |
( |
| ) |
const |
|
inline |
◆ setPrecondition()
void Diades::Altarica::Transition::setPrecondition |
( |
const Expression & |
expr | ) |
|
◆ typeName()
static string Diades::Altarica::Transition::typeName |
( |
| ) |
|
|
inlinestatic |
◆ valid()
bool Diades::Altarica::Transition::valid |
( |
| ) |
const |
- Returns
- true if the Transition is valid (i.e. a proper owner, precondition and a non-empty set of Events with the postcondition)
Referenced by typeName().
◆ operator<<
ostream& operator<< |
( |
ostream & |
os, |
|
|
const Transition & |
transition |
|
) |
| |
|
friend |
◆ _assignments
◆ _owner
NodeDecl& Diades::Altarica::Transition::_owner |
|
private |
◆ _precondition
◆ _triggerEventDecls
The documentation for this class was generated from the following file: