Commit Graph

232 Commits

Author SHA1 Message Date
20cfeb268c Amend prev commit about checks 2021-01-11 02:37:28 +03:00
200c06bfac Skip done vehicles:
Skip done cars improves perf greatly.
    Tested in parallel with previous commit
    and results in faster exc when sim has more/less
    generated cars.
2021-01-11 01:53:31 +03:00
7ffbe689bc Discard special cases for general implementation:
Instead of checking instance of veh,
    use the abstract method getMaxSpeed()
    with a given factor.

    This should reduce redundant checks
    (Wasted CPU cycles). Thus, run is
    a tiny bit faster.
2021-01-10 23:48:22 +03:00
612c00a3f1 Reindent (No Change) 2021-01-10 22:00:25 +03:00
69c1a19ed9 Memory usage improvements:
- Use smaller number types int -> short
    saves in heap size.

    - Save UID of vehicles as int (4 Bytes)
    or short (2 Bytes) and when needed, make
    a String as UID. A string would take up
    (16 Bytes).
2021-01-10 21:57:51 +03:00
5e1ff6451c Exit Button improved:
Exit button behaviour was just setting flags.
    This caused the program to set the exit flag when
    it is paused and wont exit until the unpause. Some other
    Funky stuff when the sim ends are fixed.
2021-01-05 17:11:43 +03:00
5be16de49f
Prevents OutOfMem (Heap) On my potato laptop. 2021-01-01 00:47:36 +03:00
f4bc812f23 After Sub fixes 2020-12-18 21:38:23 +03:00
f137b07c1e Min/Max for history 2020-12-18 14:57:06 +03:00
c07dc8a87c Fixes 2020-12-18 14:01:52 +03:00
Asaad Dadoush
f30a64a5b5 GUI edit report btn 2020-12-18 07:40:04 +03:00
Asaad Dadoush
dc12b51801 customize GUI 2020-12-18 07:23:06 +03:00
IMXHERO
1745db8700
Merge pull request #30 from AsaadDadoush/master
Add Action for Report btn
2020-12-17 23:25:29 +03:00
Asaad Dadoush
8085b5b951 Add Action for Report btn 2020-12-17 23:06:16 +03:00
EngOsamah
b9c0de4470
GUI_History (#29) 2020-12-17 21:20:32 +03:00
Asaad Dadoush
61f3fd63bd lbl arrived time for araft/hotles 2020-12-17 19:09:15 +03:00
d915e04832 Meeting fixes and new TODO 2020-12-17 14:27:11 +03:00
IMXHERO
67b313aabf
Merge pull request #28 from EngOsamah/master
d
2020-12-17 02:01:52 +03:00
EngOsamah
7e50caf26a a few changes 2020-12-17 01:13:14 +03:00
EngOsamah
1db0ce7ca7 Add toString to GUI_ViewBuses 2020-12-17 01:11:45 +03:00
EngOsamah
67c81d22d6 GUI_ViewRoute 2020-12-16 23:51:17 +03:00
HeshamTB
b3847bad78
Hist view size (#27) 2020-12-16 17:56:09 +03:00
HeshamTB
9cbb063af0
Merge pull request #26 from HeshamTB/browse-hist
Browse hist
2020-12-16 17:44:53 +03:00
a795117895 Hist view with states 2020-12-16 17:42:26 +03:00
9cf847ad46 DataManeger working save load 2020-12-16 16:51:45 +03:00
ab3acdec9b DataManeger:
- DataManeger is static global var in Makkah.
    - Save states in data/ dir.
    - Clear all bin files with constructor.
2020-12-16 16:26:40 +03:00
9a610b65e6 Imports block compile and eclipse project files 2020-12-16 15:58:46 +03:00
9280a5b4b3
WIP: Rework DataMan constructors.
Method to get all saved times.
    Not working.
2020-12-14 06:28:18 +03:00
270e89ee5b
Main view updates every Hour instead of min 2020-12-14 04:40:45 +03:00
HeshamTB
5143ae2891
Pause button and flag check in Checkinput() (#23) 2020-12-14 04:29:56 +03:00
EngOsamah
1d509a124f
GUI_ViewStreet done (#25) 2020-12-14 04:15:12 +03:00
EngOsamah
a695ead32d
Start GUI_ViewStreet class (#24)
Co-authored-by: HeshamTB <38921037+HeshamTB@users.noreply.github.com>
2020-12-11 16:40:25 +03:00
Asaad Dadoush
556dc27d9c edit buses table 2020-12-11 08:18:11 +03:00
ec5888cae2
Prevent exit on (x) ViewBuses and del fx test 2020-12-11 06:31:38 +03:00
HeshamTB
75667bfa10
Merge pull request #22 from EngOsamah/master
GUI_ViewBuses
2020-12-11 06:29:03 +03:00
EngOsamah
f517b8ea00 GUI_ViewBuses 2020-12-11 05:35:18 +03:00
Asaad Dadoush
1b137dce3b new Class for show the buses 2020-12-10 22:19:30 +03:00
Asaad Dadoush
f397003d32 Event for btnHistory(undone)! 2020-12-09 23:29:06 +03:00
Asaad Dadoush
938ffa9b69 organize the code 2020-12-09 22:53:08 +03:00
Asaad Dadoush
73ff93b32a Osamah : Added new Frame to btn View Busses and new class GUI_ViewBuses
some rework in the GUI interface
2020-12-09 22:35:24 +03:00
Asaad Dadoush
f1010ff184 TODO Arrival Time For Each Day 2020-12-09 09:13:41 +03:00
Asaad Dadoush
08f19fd60f Edit GUI 2020-12-09 08:51:54 +03:00
Asaad Dadoush
8656da255a GUI Edit 2020-12-09 08:35:06 +03:00
Asaad Dadoush
9988c9d205 TODO avg for all the Dist 2020-12-09 08:26:53 +03:00
Asaad Dadoush
8df3814395 lbl For Average Trip For Last Hour Value 2020-12-09 08:13:46 +03:00
Asaad Dadoush
309c83d582 lbl Maximum Trip + lbl Minimum Trip 2020-12-09 08:01:39 +03:00
Asaad Dadoush
34c06d2fb0 null Solved 2020-12-09 07:41:24 +03:00
Asaad Dadoush
47e6ffb30f Null Exception why ???? check TODO list in line 1142 2020-12-09 04:45:13 +03:00
Asaad Dadoush
36e44ceab6 add lbl for number of buses + edit district table 2020-12-09 04:05:47 +03:00
Asaad Dadoush
6b7f7eee11 Add Action for ViewRoutes 2020-12-09 01:26:32 +03:00