Added a couple of log events as info
This commit is contained in:
parent
1fa3e4f5f1
commit
aa5cc9b68b
@ -97,6 +97,7 @@ public class MakkahCity {
|
||||
if (!vehicle.isArrivedToDest()) {
|
||||
double factor = 1-(vehicle.getCurrentStreet().capcityPoint(vehicle.getCurrentLocation(),
|
||||
vehicle.getCurrentLocation()+1000,vehicle)) ;
|
||||
log.info(String.format("Vehicle %s moving with factor %f on street %s",vehicle, factor, vehicle.getCurrentStreet()));
|
||||
if (vehicle instanceof Bus) vehicle.move(Bus.MAX_FORWARD * factor );
|
||||
else if (vehicle instanceof Sedan) vehicle.move(Sedan.MAX_FORWARD * factor );
|
||||
else if (vehicle instanceof SUV) vehicle.move(SUV.MAX_FORWARD * factor );
|
||||
@ -442,6 +443,7 @@ public class MakkahCity {
|
||||
if (r.getTotalLength() < min) {
|
||||
min = r.getTotalLength();
|
||||
route = r;
|
||||
log.info(String.format("Set Route %s for campaign %s",r , campaign));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user