ElevatorStateMachine.hh
Go to the documentation of this file.
Elevator state machine frontend. Defines the transition table and initial state of the state machine.
Definition: ElevatorStateMachine.hh:78
transition_table< in< events::EnqueueNewTarget, actions::EnqueueNewTarget< true >, guards::IsInState< IdleState > >, in< events::EnqueueNewTarget, actions::EnqueueNewTarget< false >, guards::IsInState< CloseDoorState > > > internal_transitions
Transition transition table.
Definition: ElevatorStateMachine.hh:106
~ElevatorStateMachineDef()
Destructor.
std::unique_ptr< ElevatorStateMachinePrivate > dataPtr
Public data pointer.
Definition: ElevatorStateMachine.hh:130
transition_table< tr< IdleState, events::NewTarget, OpenDoorState, actions::NewTarget, guards::CabinAtTarget >, tr< IdleState, events::NewTarget, MoveCabinState, actions::NewTarget, not_< guards::CabinAtTarget > >, tr< OpenDoorState, events::DoorOpen, WaitState, none, none >, tr< WaitState, events::Timeout, CloseDoorState, none, none >, tr< CloseDoorState, events::DoorClosed, IdleState, none, guards::NoQueuedTarget >, tr< CloseDoorState, events::DoorClosed, MoveCabinState, none, not_< guards::NoQueuedTarget > >, tr< MoveCabinState, events::CabinAtTarget, OpenDoorState, actions::CabinAtTarget, none > > transitions
Transition table.
Definition: ElevatorStateMachine.hh:127
::afsm::state_machine< ElevatorStateMachineDef > ElevatorStateMachine
Elevator state machine backend.
Definition: ElevatorStateMachine.hh:134
State at which the elevator is closing a door.
Definition: StatesImpl.hh:143
State at which the elevator is idling.
Definition: StatesImpl.hh:40
State at which the elevator is moving the cabin to the target floor.
Definition: StatesImpl.hh:195
State at which the elevator is opening a door.
Definition: StatesImpl.hh:118
State at which the elevator is waiting with a door open.
Definition: StatesImpl.hh:165
Action that cleans up the target queue when the cabin reaches the target floor level.
Definition: ActionsImpl.hh:80
Action that enqueues a new target in the target queue.
Definition: ActionsImpl.hh:40
Action that cleans up the target queue when a new target is processed.
Definition: ActionsImpl.hh:60
Event that signifies the cabin has reached the target floor level.
Definition: EventsImpl.hh:71
Event that signifies the door at the target floor level has been closed.
Definition: EventsImpl.hh:60
Event that signifies the door at the target floor level has been opened.
Definition: EventsImpl.hh:54
Event that signifies there is a new target that needs to be enqueued.
Definition: EventsImpl.hh:35
Event that signifies a new target will be processed.
Definition: EventsImpl.hh:48
Event that signifies the door at the target floor level has remained open for the required amount of ...
Definition: EventsImpl.hh:66
Guard that checks whether the cabin is at the target floor level.
Definition: GuardsImpl.hh:53
Guard that checks whether the state machine is in a given state.
Definition: GuardsImpl.hh:39
Guard that checks whether the target queue is empty.
Definition: GuardsImpl.hh:66