Implementing finite state machines and collaborative programming
Elevator Simulation is a group project that was given in the course A.D.E.N. (Advanced Data Structures, Embedded Systems, and Networking) This is a time-driven and event-driven simulation. The elevators functionality will be modelled using a finite state machine, and passengers will arrive at specified times with intended destinations – just like they would in a real building.
As mentioned in the introduction, an elevator is a finite state machine meaning it has no randomness and a fixed number of states. Definition of a Finite State Machine :
Finite-state machine (FSM) or finite-state automaton or simply a state machine, is a mathematical model of computation. It is an abstract machine that can be in exactly one of a finite number of states at any given time. -wikipedia.comHere is the FSM diagram for the elevator simulation