Removed the check on date of accidnet due
to incomplete information. The start date of
the simulation will be a static object in the
future. Implement checks when added. TODO is
there to reminde.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
The gender enum was made to be used with the removed
Pilgrim class. The previous class and simulation vision
has changed to be more targeted toward Vehicle flow and
ignore dead-weight information like Pilgrims.
Priority enum is still avialable to be used with campaigns
to give preset priority for expermintation.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
- Abstract class CivilVehicle that implements Breakable and
contains all common fields of vehicles. Now for example,
Sedan <- CivilVehicle <- Vehicle
^
Breakable
The breakable methods are mostly implemented in CivilVehicle
Except getTimeToFix() which is defined in subclasses of
CivilVehicle.
- Breakable interface:
The method collide() now returns instance of Accident instead of
void
Signed-off-by: HeshamTB <hishaminv@gmail.com>
some of the changes proposed in 18-10-2020 meeting:
- GovtCar marker interface (CanBeGovtCar)
- Remove isGovt from vehicle and Sedan constructors
- Remove Pilgrim.java class
- Remove PermitedForHaj.java interface
- Add static count of object. Increment in constructor and decrement in overidden 'finalize' method
- Throw IllegalArgumentException instead of Exception for passport and age