Commit Graph

107 Commits

Author SHA1 Message Date
6cc0bb434b
Unstable test (multiple exceptions) 2020-11-27 09:11:48 +03:00
d1061221e8
Unstable test (multiple exceptions) 2020-11-27 09:07:17 +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
bba5441aee Pre-simulation report:
- Make report with details per District
	(Still incomplete)
	- Use String builder for all reports.
2020-11-26 03:30:36 +03:00
946e4004ae Print msg for no arrival (avg)
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-26 03:29:08 +03:00
4ab5b750b8
Remove printing of '\b'
- Causes problems in some consoles.
2020-11-23 01:29:23 +03:00
ee94355f42
Method in route getFastestTimeOfTravel(Vehicle):
- Every subclass of Vehicle needs to return
    the max of it self.

    - Calculate best case (empty streets) for
    a given vehcile using a Route.
2020-11-23 01:20:48 +03:00
6367b48746
Notes form 21-11-2020 meeting 2020-11-21 17:27:23 +03:00
dfbd961eca addCivilVehileNoise():
- Found possible fix for the method. Not yet done
	The 'numOfSedan', 'numOfSUV' ... get smaller for
	every loop iteration.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-21 02:49:00 +03:00
35cda81a46 Output:
- Add label for current minute output
	- Use "\b" instead of " " when clearing line

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-21 02:43:55 +03:00
da001dc5cd Output Color with respect to capacity
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-21 00:25:43 +03:00
1efd3e2dec Added new output and fixed street overflow
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-21 00:05:55 +03:00
4b0e8800be
Reset num of arrived busses after setting new route 2020-11-20 20:15:13 +03:00
012c8170f9 Two day simulation (buggy)?
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-19 17:06:12 +03:00
d2eeac04ec Setup for new time managment
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-18 19:35:49 +03:00
11a9269cb4 Street capacity used instead of remaining.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-18 19:28:38 +03:00
9ecbfe15ed updated todo tasks
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-18 19:28:17 +03:00
HeshamTB
e5c92c07b7
Merge pull request #11 from AsaadDadoush/master
Edit Routes and Add Streets
2020-11-18 18:38:26 +03:00
Asaad Dadoush
5030e7e5ac Edit Routes and Add Streets 2020-11-18 18:22:07 +03:00
86a4ac509a Move counting methods to street
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-17 20:44:10 +03:00
b06a15e303 rename counting methods
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-17 20:25:40 +03:00
200acf9a98 Improved output
Added Breakdown of car types on each street.

	Calculate avg trip time in last 10 min

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-17 20:18:17 +03:00
HeshamTB
14272a6834
Merge pull request #10 from AsaadDadoush/master
Edit
2020-11-17 18:02:17 +03:00
Asaad Dadoush
5e612c2995 Edit 2020-11-17 17:45:21 +03:00
d5891ad2d1 Add ref to Camp in Bus ...
- Ref to Camp in Bus.
	- Override arrive() in bus to
	notify camp.
	- isAllArrived() changed to implement camp.isDone().
	Should be a bit faster

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-15 17:02:56 +03:00
f6209c669d
Remove camp field and better output 2020-11-15 11:48:48 +03:00
124920787c
Better street report 2020-11-15 01:42:17 +03:00
HeshamTB
92bbb0c099
Merge pull request #9 from EngOsamah/master 2020-11-15 01:31:34 +03:00
EngOsamah
0458ff143e maybe this is going to be phase one 2020-11-15 01:21:15 +03:00
Asaad Dadoush
bb46419ed3 Report 2020-11-14 21:27:32 +03:00
Asaad Dadoush
3e1b1f162c Add UID for Sedan / SUV / Truck 2020-11-14 16:31:43 +03:00
52ac0c702a
Merge branch 'movement2' 2020-11-14 02:43:43 +03:00
2eb6a96a23
Better movement.
- Move Vehicles from list
   in Makkah.
2020-11-14 02:37:57 +03:00
fe781f43b6
Better movement.
- Move Vehicles from list
   in Makkah.
2020-11-14 01:30:20 +03:00
392993a008
Cars move on top of each other 2020-11-13 22:35:52 +03:00
fac5ed0089 Major update
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-12 00:13:05 +03:00
62c8fb22fa Major update
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-12 00:12:59 +03:00
HeshamTB
cc64faf912
Merge pull request #6 from AsaadDadoush/master
add enum
2020-11-11 21:42:09 +03:00
Asaad Dadoush
6aabadd1f0 add enum 2020-11-11 21:35:18 +03:00
16ff81a44c update Vehicle and Campaign
- Added movment in vehicle.
   - Now Campaign sets Routes for
   it's Vehicles.
   - Fixed Array size of stdRoutes
   - Added getShortestRoute(Campaign)
   and getRoutesToDistrict(District)
   in MakkahCity

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-11 21:02:59 +03:00
f4bb5e6099
Prevent IndexOutOFBoundEx:
In genCivilVehicles(), the
    casting might step over
    the number of cars size
    of the array. So, use try
    catch blocks and skip in that
    case.
2020-11-11 14:26:41 +03:00
9fb653397f Make PDate refrence type rather then static members 2020-11-11 12:04:50 +03:00
be05e7f848
Method to make noise cars 2020-11-10 20:48:32 +03:00
b491eaf4ab Vehicle: calc distance to next
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2020-11-10 20:16:36 +03:00