|
| FaultyEventStateMachine () |
|
| FaultyEventStateMachine (const FaultyEventStateMachine &machine) |
|
virtual FaultyEventStateMachine & | operator= (const FaultyEventStateMachine &machine) |
|
virtual | ~FaultyEventStateMachine () |
|
virtual void | clear () |
|
void | copyEventPropertyId (const FaultyEventStateMachine &m, const EventPropertyId &event) |
|
void | copyEventPropertyIds (const FaultyEventStateMachine &m) |
|
virtual void | insertEventPropertyId (const EventPropertyId &event) |
|
void | setFaulty (const EventPropertyId &e) |
|
bool | isFaulty (const EventPropertyId &e) const |
|
const std::unordered_set< EventPropertyId > & | faultyEvents () const |
|
FaultyEventPropertyIdIterator | faultyEventBegin () const |
|
FaultyEventPropertyIdIterator | faultyEventEnd () const |
|
void | setNormal (const EventPropertyId &e) |
|
bool | isNormal (const EventPropertyId &e) const |
|
const unordered_set< EventPropertyId > & | normalEvents () const |
|
NormalEventPropertyIdIterator | normalEventBegin () const |
|
NormalEventPropertyIdIterator | normalEventEnd () const |
|
| StateMachine () |
|
| StateMachine (const StateMachine &machine) |
|
StateMachine & | operator= (const StateMachine &machine) |
|
virtual | ~StateMachine () |
|
bool | operator== (const StateMachine &machine) const |
|
bool | operator!= (const StateMachine &machine) const |
|
Id | id () const |
|
Id | setId (Id identifier) |
|
Graph::Graph & | behaviour () |
|
const Graph::Graph & | behaviour () const |
|
bool | isEmpty () const |
|
bool | isValid () const |
|
const string & | setName (const string &name) |
|
const string & | name () const |
|
EventPropertyId | nullEvent () const |
|
bool | isNullEvent (EventPropertyId evt) const |
|
void | copyEventPropertyId (const StateMachine &m, const EventPropertyId &event) |
|
void | copyEventPropertyIds (const StateMachine &m) |
|
unsigned | numberOfEvents () const |
|
template<typename EventIter > |
void | insertEvent (EventIter start, EventIter end) |
|
const EventPropertyId & | getEvent (Transition t) const |
|
const vector< EventPropertyId > & | events () const |
|
EventPropertyIdIterator | eventBegin () const |
|
EventPropertyIdIterator | eventEnd () const |
|
bool | containsEvent (const EventPropertyId &e) const |
|
void | replaceEvent (const EventPropertyId &e1, const EventPropertyId &e2) |
|
void | removeEvent (const EventPropertyId &e) |
|
State | newState () |
|
std::pair< State, bool > | newState (const StatePropertyId &sProperty) |
|
const StatePropertyId & | getStatePropertyId (State state) const |
|
bool | setStatePropertyId (State state, const StatePropertyId &sProperty) |
|
State | getState (const StatePropertyId &sProperty) const |
|
virtual void | deleteState (State state) |
|
void | deleteState (StateIterator start, StateIterator end) |
|
unsigned | numberOfStates () const |
|
StateIterator | stateBegin () const |
|
StateIterator | stateEnd () const |
|
StatePropertyIdIterator | statePropertyIdBegin () const |
|
StatePropertyIdIterator | statePropertyIdEnd () const |
|
template<typename StateIterator > |
StatePropertyIdRangeIterator< StateIterator > | statePropertyIdRangeIterator (StateIterator iterator) const |
|
void | setInitial (State state) |
|
void | unsetInitial (State state) |
|
void | setAllInitialStates () |
|
void | clearAllInitialStates () |
|
void | swapInitialState (State state) |
| swap the status of the state as initial/non-initial More...
|
|
InitialStateIterator | initialStateBegin () const |
|
InitialStateIterator | initialStateEnd () const |
|
unsigned | numberOfInitialStates () const |
|
bool | isInitial (State state) const |
|
bool | isNullState (State state) const |
|
Transition | newTransition (State source, State target, const EventPropertyId &event) |
|
Transition | newTransition (const StatePropertyId &source, const StatePropertyId &target, const EventPropertyId &event) |
|
void | deleteTransition (Transition t) |
|
void | deleteTransition (TransitionIterator start, TransitionIterator end) |
|
void | deleteTransition (EventTransitionIterator start, EventTransitionIterator end) |
|
LabelledStateIterator | beginOfSourceStateOfEvent (const EventPropertyId &e) const |
|
LabelledStateIterator | endOfSourceStateOfEvent (const EventPropertyId &e) const |
|
LabelledStateIterator | beginOfTargetStateOfEvent (const EventPropertyId &e) const |
|
LabelledStateIterator | endOfTargetStateOfEvent (const EventPropertyId &e) const |
|
EventTransitionIterator | eventTransitionBegin (const EventPropertyId &e) const |
|
EventTransitionIterator | eventTransitionEnd (const EventPropertyId &e) const |
|
OutputEventTransitionIterator | outputEventTransitionBegin (State s, const EventPropertyId &e) const |
|
OutputEventTransitionIterator | outputEventTransitionEnd (State s, const EventPropertyId &e) const |
|
InputEventTransitionIterator | inputEventTransitionBegin (State s, const EventPropertyId &e) const |
|
InputEventTransitionIterator | inputEventTransitionEnd (State s, const EventPropertyId &e) const |
|
TransitionIterator | transitionBegin () const |
|
TransitionIterator | transitionEnd () const |
|
OutputTransitionIterator | outputTransitionBegin (State s) const |
|
OutputTransitionIterator | outputTransitionEnd (State s) const |
|
InputTransitionIterator | inputTransitionBegin (State s) const |
|
InputTransitionIterator | inputTransitionEnd (State s) const |
|
unsigned | numberOfTransitions () const |
|
template<typename _StatePropertyId, typename _EventPropertyId, typename _NullStatePropertyId = NullValue<_StatePropertyId>, typename _NullEventPropertyId = NullValue<_EventPropertyId>>
class Diades::Automata::Experimental::FaultyEventStateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >
The template class FaultyEventStateMachine aims at defining a generic StateMachine that contains faulty events.
Definition at line 34 of file FaultyEventStateMachine.hh.
template<typename _StatePropertyId, typename _EventPropertyId, typename _NullStatePropertyId = NullValue<_StatePropertyId>, typename _NullEventPropertyId = NullValue<_EventPropertyId>>
Copy the EventPropertyId of a machine into the current one
- Parameters
-
m | a StateMachine |
event | an EventPropertyId this method is used especially in Determine, Abstract, ... As it is virtual, it ensures that events and their properties are properly copied whatever the derived class calls it. |
Definition at line 130 of file FaultyEventStateMachine.hh.
References Diades::Automata::Experimental::FaultyEventStateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::insertEventPropertyId(), Diades::Automata::Experimental::FaultyEventStateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::isFaulty(), and Diades::Automata::Experimental::FaultyEventStateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::setFaulty().
Referenced by Diades::Automata::Experimental::FaultyEventStateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::copyEventPropertyIds().
template<typename _StatePropertyId, typename _EventPropertyId, typename _NullStatePropertyId = NullValue<_StatePropertyId>, typename _NullEventPropertyId = NullValue<_EventPropertyId>>
Copy all the EventPropertyIds of a machine into the current one
- Parameters
-
m | a StateMachine this method is used especially in Determine, Abstract, ... As it is virtual, it ensures that events and their properties are properly copied whatever the derived class calls it. |
Definition at line 145 of file FaultyEventStateMachine.hh.
References Diades::Automata::Experimental::FaultyEventStateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::copyEventPropertyId(), Diades::Automata::Experimental::StateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::eventBegin(), and Diades::Automata::Experimental::StateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::eventEnd().
template<typename _StatePropertyId, typename _EventPropertyId, typename _NullStatePropertyId = NullValue<_StatePropertyId>, typename _NullEventPropertyId = NullValue<_EventPropertyId>>
Clean up the EventProperty associated to thie index
- Parameters
-
EventIndex | the index of an EventProperty |
- Precondition
- no Transition should be labeled with the given EventProperty (no check here)
- Postcondition
- The vector of event properties remains tidy (no holes)
Reimplemented from Diades::Automata::Experimental::StateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >.
Definition at line 301 of file FaultyEventStateMachine.hh.
References Diades::Automata::Experimental::StateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::eraseEventPropertyId(), and Diades::Automata::Experimental::StateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::getEventFromIndex().
template<typename _StatePropertyId, typename _EventPropertyId, typename _NullStatePropertyId = NullValue<_StatePropertyId>, typename _NullEventPropertyId = NullValue<_EventPropertyId>>
Copy the EventPropertyId of a machine into the current one
- Parameters
-
m | a StateMachine |
event | an EventPropertyId this method is used especially in Determine, Abstract, ... As it is virtual, it ensures that events and their properties are properly copied whatever the derived class calls it. Insert the Event if not already inserted. If not already inserted the inserted Event is considered as normal. To change it as faulty use setFaulty(event) turned to be normal |
event | an Event |
Reimplemented from Diades::Automata::Experimental::StateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >.
Definition at line 178 of file FaultyEventStateMachine.hh.
References Diades::Automata::Experimental::StateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::containsEvent(), and Diades::Automata::Experimental::StateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::insertEventPropertyId().
Referenced by Diades::Automata::Experimental::FaultyEventStateMachine< _StatePropertyId, _EventPropertyId, _NullStatePropertyId, _NullEventPropertyId >::copyEventPropertyId().