https://github.com/curiousily/taxirush
taxi company simulator
https://github.com/curiousily/taxirush
Last synced: 4 months ago
JSON representation
taxi company simulator
- Host: GitHub
- URL: https://github.com/curiousily/taxirush
- Owner: curiousily
- Created: 2011-09-19T17:53:16.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-09-20T08:21:02.000Z (over 13 years ago)
- Last Synced: 2025-01-08T13:54:16.420Z (5 months ago)
- Language: Erlang
- Homepage:
- Size: 89.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Taxi Rush is a taxi company simulation
The process that is simulated is simple:
1. The client to a dispatcher for a taxi
If taxi is available
the taxi takes the job
Else
client calls to the dispatcher after certain amount of time
2. After a taxi completes his job, he calls to the dispatcher to be considered for next job================ How To Run It ================
On the first node do the following:
erl -name [email protected] -setcookie taxirush
c(taxirush).
taxirush:run_simulation().On the second (and consecutive) node(s):
edit the hosts file to include the host like this
ADDRESS e.g. 192.168.1.1 vini.bg
erl -name [email protected] -setcookie taxirush
net_adm:ping([email protected]).
c(taxi).
taxi:start_working().Enjoy the results!