- Elevators finite state machine Program contains controller for filling the elevators queue with events
Two elevators, each have a SM.
- java 11
- maven
mvn package
Before running the program you need to write an elevators events in the input.txt file in format:
- in one row
(5, 2), ..., (1, 6)
- multiple rows
(5, 2)
...
(1, 6)
- both with any length, it'll compute events by each row
(5, 2), ..., (1, 6)
..., ..., (9, 2)
(1, 6), ...
Program takes three arguments:
- number of floors in the building
- first elevator start floor
- second elevator start floor
java -jar ./target/elevator-state-machine-1.0-SNAPSHOT.jar './input.txt'
Result of a program will be written in output.txt file in the project directory
The sequence of elevator commands and the number of movements between floors for each event performed.