Elma
An event loop manager for embedded systems
Public Member Functions | List of all members
microwave_example::DoorClosedOn Class Reference

The state in which the oven's door is closed and the oven is on. See examples/microwave.cc. More...

+ Inheritance diagram for microwave_example::DoorClosedOn:
+ Collaboration diagram for microwave_example::DoorClosedOn:

Public Member Functions

 DoorClosedOn ()
 Make a new state.
 
void entry (const Event &e)
 Nothing to do upon entry.
 
void during ()
 Nothing to do in during.
 
void exit (const Event &e)
 
- Public Member Functions inherited from elma::State
 State ()
 Construct an unnamed State.
 
 State (std::string name)
 Construct a state with the given name.
 
std::string name ()
 
int id ()
 
void emit (const Event &e)
 
StateMachinestate_machine ()
 

Detailed Description

The state in which the oven's door is closed and the oven is on. See examples/microwave.cc.

Definition at line 87 of file microwave.cc.

Member Function Documentation

◆ exit()

void microwave_example::DoorClosedOn::exit ( const Event e)
inlinevirtual

As this state is left, turn off the oven.

Parameters
eAn event with no value

Implements elma::State.

Definition at line 100 of file microwave.cc.


The documentation for this class was generated from the following file: