Tasks
This commit is contained in:
parent
4d736bc21c
commit
ee1cb4852c
@ -57,6 +57,9 @@ public class MakkahCity {
|
|||||||
}
|
}
|
||||||
else System.out.print(".");
|
else System.out.print(".");
|
||||||
|
|
||||||
|
//TODO: setRout rework
|
||||||
|
//TODO: find Best Rout method
|
||||||
|
|
||||||
clearDoneCivilVehicles();
|
clearDoneCivilVehicles();
|
||||||
addCivilVehicleNoise();
|
addCivilVehicleNoise();
|
||||||
for (Vehicle vehicle : listOfVehicles) {
|
for (Vehicle vehicle : listOfVehicles) {
|
||||||
@ -86,7 +89,7 @@ public class MakkahCity {
|
|||||||
if (isAllArrived()) allArrivedToArafatTime = (Date)currenttimeManager.getCurrentTime().clone();
|
if (isAllArrived()) allArrivedToArafatTime = (Date)currenttimeManager.getCurrentTime().clone();
|
||||||
firstDayTimeMan.step(Calendar.MINUTE, 1);
|
firstDayTimeMan.step(Calendar.MINUTE, 1);
|
||||||
}
|
}
|
||||||
//TODO make report
|
|
||||||
currenttimeManager = lastDayTimeMan;
|
currenttimeManager = lastDayTimeMan;
|
||||||
System.out.println("\n***************FINSHIED ARAFAT DAY***************");
|
System.out.println("\n***************FINSHIED ARAFAT DAY***************");
|
||||||
setRoutesForCampaigns(Mashier.MINA);
|
setRoutesForCampaigns(Mashier.MINA);
|
||||||
@ -578,7 +581,7 @@ public class MakkahCity {
|
|||||||
//Redundant loops slow down execution. find better sol.
|
//Redundant loops slow down execution. find better sol.
|
||||||
for (Campaign campaign : listOfCampaigns) {
|
for (Campaign campaign : listOfCampaigns) {
|
||||||
numberOfBusses += campaign.getNumberOfBusses();
|
numberOfBusses += campaign.getNumberOfBusses();
|
||||||
} //TODO Add max min time.
|
}
|
||||||
String fFormat = "All arrived to %s at: %s";
|
String fFormat = "All arrived to %s at: %s";
|
||||||
boolean arr = isAllArrived();//since it has looping. use once.
|
boolean arr = isAllArrived();//since it has looping. use once.
|
||||||
if (arr && allArrivedToArafatTime != null)
|
if (arr && allArrivedToArafatTime != null)
|
||||||
@ -704,7 +707,7 @@ public class MakkahCity {
|
|||||||
report.append(String.format(" %-20s|", getShortestRoute(campPerDistrict[i].get(0), Mashier.ARAFAT).getFastestTimeOfTravel(new Bus())));
|
report.append(String.format(" %-20s|", getShortestRoute(campPerDistrict[i].get(0), Mashier.ARAFAT).getFastestTimeOfTravel(new Bus())));
|
||||||
report.append(String.format(" %-22s|", getShortestRoute(campPerDistrict[i].get(0), Mashier.MINA).getFastestTimeOfTravel(new Bus())));
|
report.append(String.format(" %-22s|", getShortestRoute(campPerDistrict[i].get(0), Mashier.MINA).getFastestTimeOfTravel(new Bus())));
|
||||||
//Calc values per dist here.
|
//Calc values per dist here.
|
||||||
|
//TODO: add arrived buses colum
|
||||||
report.append("\n");
|
report.append("\n");
|
||||||
}
|
}
|
||||||
return report.toString();
|
return report.toString();
|
||||||
|
Loading…
Reference in New Issue
Block a user