DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <EventInserter.hh>
Public Types | |
using | EventId = typename Fsm::EventPropertyId |
using | EventMap = std::unordered_map< EventId, EventId > |
using | SourcePtr = typename Diades::Utils::Ptr< Fsm >::ConstP |
using | TargetPtr = typename Diades::Utils::Ptr< Fsm >::P |
Public Member Functions | |
EventInserter ()=default | |
EventInserter (EventInserter const &other)=default | |
EventInserter & | operator= (EventInserter const &other)=default |
EventInserter (EventInserter &&other)=default | |
EventInserter & | operator= (EventInserter &&other)=default |
~EventInserter ()=default | |
EventInserter (const Fsm &source, Fsm &target) | |
EventId | insertEvent (EventId evt) |
Protected Member Functions | |
virtual EventMap::iterator | generateEvent (EventId evt) |
Protected Attributes | |
SourcePtr | _source |
TargetPtr | _target |
EventMap | _eventOf |
This class provides a way to insert an Event into a target Fsm from a source Fsm. The way the inserted Event is generated only depends on the generateEvent method. By default, the generateEvent method simply copy the source Event as a target Event. But by deriving EventInserter it is possible to implement other generation policy.
Definition at line 31 of file EventInserter.hh.
using Diades::Automata::Experimental::EventInserter< Fsm >::EventId = typename Fsm::EventPropertyId |
Definition at line 35 of file EventInserter.hh.
using Diades::Automata::Experimental::EventInserter< Fsm >::EventMap = std::unordered_map<EventId, EventId> |
Definition at line 36 of file EventInserter.hh.
using Diades::Automata::Experimental::EventInserter< Fsm >::SourcePtr = typename Diades::Utils::Ptr<Fsm>::ConstP |
Definition at line 37 of file EventInserter.hh.
using Diades::Automata::Experimental::EventInserter< Fsm >::TargetPtr = typename Diades::Utils::Ptr<Fsm>::P |
Definition at line 38 of file EventInserter.hh.
|
default |
Default constructor
|
default |
Copy constructor (default)
other |
|
default |
Move constructor (default)
other |
|
default |
Destructor
|
inline |
Build an EventInserter that will be used to insert EventId in target based/associated with EventId from source
source | the source StateMachine |
target | the target StateMachine |
Definition at line 86 of file EventInserter.hh.
|
inlineprotectedvirtual |
evt | an EventId from the source machine generate an EventId associated with evt that will be inserted in the target StateMachine This method should be derived to get other generation policy By default in the root class (EventInserter) the generated event is simply a copy of the EventId evt. |
Definition at line 123 of file EventInserter.hh.
Referenced by Diades::Automata::Experimental::EventInserter< _Fsm >::insertEvent().
|
inline |
evt | an EventId from the source machine |
Definition at line 100 of file EventInserter.hh.
|
default |
|
default |
Move assignement (default)
other |
|
protected |
Definition at line 43 of file EventInserter.hh.
|
protected |
Definition at line 41 of file EventInserter.hh.
|
protected |
Definition at line 42 of file EventInserter.hh.