-
Notifications
You must be signed in to change notification settings - Fork 0
Input file specification
JoshBraddon edited this page Feb 3, 2024
·
3 revisions
The FloorInfoReader class takes in .txt input files and parses them in order to create a queue of requests. For the file to be read properly there are a few rules:
- Each line is a new request.
- Each request is made up of 4 pieces of data, a time, a starting floor, the direction of the elevator and the service floor
- Between each data point there must be AT LEAST 2 spaces, any number above 2 will be work the same
time serviceFloor direction floorthis is ok but
time serviceFloor direction flooris not. These are equivalent:
time serviceFloor direction floor vs. time serviceFloor direction floor- There must be AT LEAST 4 data points per line, any extras will be ignored.