/liftsim

An Elevator Simulator

Primary LanguageC++GNU General Public License v3.0GPL-3.0

1. LICENSE

You must accept the following licence in order to use the program.

    liftsim is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    liftsim is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with liftsim.  If not, see <http://www.gnu.org/licenses/>.

2. INSTRUCTIONS

From the directory containg this README, run `make`. This would create an executable called `liftsim`
    
To run the suimulator execute the following command:

    ./liftsim <Number of Floors> <Number of Elevators> <Customers to Simulate> [OPTIONAL : <Minimum inter-arrival Time = 0> <Maximum inter-arrival time = 20> <Elevator speed = 5> <Whether users are sane = true> ]
    
The Event Logs and Status Logs will be created under in the same directory under the names "EventLog.log" and "StatusLog.log" respectively.