15 #include <boost/statechart/event.hpp>
16 #include <boost/statechart/state_machine.hpp>
17 #include <boost/statechart/simple_state.hpp>
18 #include <boost/statechart/custom_reaction.hpp>
19 #include <boost/statechart/transition.hpp>
20 #include <boost/mpl/list.hpp>
22 namespace sc = boost::statechart;
23 namespace mpl = boost::mpl;
36 struct GD2ND : sc::event <GD2ND> {};
37 struct ND2PD : sc::event <ND2PD> {};
38 struct ND2GD : sc::event <ND2GD> {};
39 struct PD2ND : sc::event <PD2ND> {};
40 struct PD2GD : sc::event <PD2GD> {};
47 sc:: transition<ND2PD, PLATOONING_DISTANCE> ,
50 struct GAP_DISTANCE : sc::simple_state<GAP_DISTANCE, DistanceStateMachine>
54 typedef sc:: transition<GD2ND, NORMAL_DISTANCE>
reactions;
60 sc:: transition<PD2GD, GAP_DISTANCE> ,
Definition: areaofeffectconverter.h:20
Definition: distanceStateMachine.h:42
Definition: distanceStateMachine.h:51
GAP_DISTANCE()
Definition: distanceStateMachine.h:52
sc::transition< GD2ND, NORMAL_DISTANCE > reactions
Definition: distanceStateMachine.h:54
Definition: distanceStateMachine.h:36
Definition: distanceStateMachine.h:38
Definition: distanceStateMachine.h:37
NORMAL_DISTANCE is defined as an entry state of the state machine
Definition: distanceStateMachine.h:44
NORMAL_DISTANCE()
Definition: distanceStateMachine.h:45
mpl::list< sc::transition< ND2PD, PLATOONING_DISTANCE >, sc::transition< ND2GD, GAP_DISTANCE > > reactions
Definition: distanceStateMachine.h:48
Definition: distanceStateMachine.h:40
Definition: distanceStateMachine.h:39
Definition: distanceStateMachine.h:57
PLATOONING_DISTANCE()
Definition: distanceStateMachine.h:58
mpl::list< sc::transition< PD2GD, GAP_DISTANCE >, sc::transition< PD2ND, NORMAL_DISTANCE > > reactions
Definition: distanceStateMachine.h:61