3932f8758c
Add Trip time and progress to vehicle output
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 20:32:40 +03:00
f4007d7007
Terminate thread when done
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 19:24:56 +03:00
810820283f
final patch before P1
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 19:22:18 +03:00
c7313cd3df
Improved output
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 19:06:37 +03:00
22ee69be52
Fixed cast error
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 18:29:24 +03:00
b6003cc3e8
Add distance to Vehicle toString()
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 17:43:05 +03:00
HeshamTB
af92fb96e0
Merge pull request #14 from EngOsamah/master
...
Phase 1
2020-12-02 17:37:37 +03:00
EngOsamah
2f14faa2eb
Phase 1
2020-12-02 13:52:11 +03:00
6dbe6a331f
Update menu:
...
- View buses instead of vehicles.
- showVehicle option menu.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 03:01:01 +03:00
afb2b85643
Clean up
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 02:17:07 +03:00
177e22ef13
Merge branch 'menu'
2020-12-02 02:03:29 +03:00
de91dd6cc4
Merge branch 'menu' of https://github.com/HeshamTB/Hajj-simulation into menu
2020-12-02 01:51:00 +03:00
a0d4fdf9f6
Hijri representation (HijriDate):
...
- Override Date toString()
to replace 'Jan' with Dhu'l-Hijja
and other values.
- PDate returns instances of HijriDate
that return Hijri Strings.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 01:46:56 +03:00
d4be36ebf8
Travelable interface
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 00:50:18 +03:00
35ce9ca754
District report evey hour 2-12-2020 meeting
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 00:49:45 +03:00
271395654c
Route used by
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-02 00:02:08 +03:00
19291fbfe1
District report:
...
- Add best time to dist
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-01 22:33:24 +03:00
ba02114562
Print time of finishing for both days
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-01 22:21:50 +03:00
a376d91671
Clean up
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-01 21:10:00 +03:00
4a87e08a74
busses arrived per hour fix
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-01 20:51:12 +03:00
336106c7ed
Street toString()
...
- Print street details and fields.
- Print scaled street density.
2020-12-01 20:22:59 +03:00
Asaad Dadoush
86651b3a91
method for the bus arrived per hour
2020-12-01 19:05:27 +03:00
HeshamTB
83261572fb
Merge branch 'master' into menu
2020-12-01 06:56:31 +03:00
HeshamTB
16195f44cc
Merge pull request #12 from EngOsamah/master
...
CivilVehicleNoise is OK
2020-12-01 06:34:45 +03:00
3e1af27b6d
Print report option in menu
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-01 04:58:26 +03:00
EngOsamah
e8cdb4b51d
CivilVehicleNoise is OK
2020-12-01 00:26:05 +03:00
51bf50ec6d
menu split into methods:
...
- Stack-like menu. Recurse until
Return is selected.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-01 00:24:24 +03:00
0b4e259495
Route toString() Exception fix:
...
- toString() throws exception
when invoked on 'noise' vehicles
The routes made for them dont have
District and Mashier set. Accessing
name() from a null method throws
null ptr ex.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-12-01 00:23:07 +03:00
e28a593280
Print time with menu
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-30 22:42:09 +03:00
fbd39f4081
Street history
...
- Save time of entry for each vehicle
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-30 22:36:37 +03:00
3a91f2f0f1
Vehicle toString():
...
- Print route
- Check if street is null before getting
name.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-30 21:47:33 +03:00
d7e3fd7a68
Vehicle toString()
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-30 21:05:01 +03:00
2edf82b28b
menu:
...
- Added street option in menu
- Street length printed to second
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-30 20:50:23 +03:00
076cb510cf
Merge branch 'master' into menu
2020-11-30 20:28:42 +03:00
680890b864
Street toString()
...
- Print street details and fields.
- Print scaled street density.
2020-11-30 20:11:41 +03:00
c3485f94d1
Merge branch 'master' into menu
2020-11-30 18:48:34 +03:00
521b36a117
Fix output glitch
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-28 05:42:21 +03:00
fc05264a46
Menu functions (Exit, Continue)
2020-11-27 20:04:23 +03:00
4346b9348d
Menu functions:
...
- View Vehicles
- View Routes
2020-11-27 19:18:44 +03:00
b85a4040f2
Simple menu. Does nothing.
2020-11-27 18:42:17 +03:00
6d3d3b5085
Add pause method in InputListener
...
- Pause method and var to stop
Scanner from 'taking' the input
when in menue.
2020-11-27 18:42:17 +03:00
bd68322a75
Start a thread to listen for console input
...
- Listen for 'commands' on stdin
the thread is running alongside
the simulation.
2020-11-27 18:42:16 +03:00
5fde1eee7e
Route override toString()
...
- Print length, names of streets
Estimated time (Best case)
and endpoints.
2020-11-27 06:04:29 +03:00
b214b279db
Add Buses per District in pre run report
2020-11-27 00:39:40 +03:00
9d195a8864
artifact setup
2020-11-27 00:16:43 +03:00
538c4a09a4
Average time for each street in report
2020-11-26 23:50:26 +03:00
51534a5d2b
Keep track of time used on every street on route
2020-11-26 22:41:24 +03:00
ff5c7753ff
Add avg time of trip per district (Hour report)
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-26 21:14:28 +03:00
480d9ccb46
Print dots as prog bar instead of date (minutes)
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-26 21:11:16 +03:00
71c07b5bc1
Remove colored street name in report
2020-11-26 20:27:41 +03:00