Added logger. Not incomplete.
This commit is contained in:
parent
b214b279db
commit
2d8456c975
@ -1,4 +1,8 @@
|
|||||||
|
import sun.rmi.runtime.Log;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
public class MakkahCity {
|
public class MakkahCity {
|
||||||
|
|
||||||
@ -19,9 +23,12 @@ public class MakkahCity {
|
|||||||
);
|
);
|
||||||
|
|
||||||
private static PDate currenttimeManager = firstDayTimeMan;
|
private static PDate currenttimeManager = firstDayTimeMan;
|
||||||
|
private static Logger log = Logger.getLogger("MakkahCity");
|
||||||
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
log.setLevel(Level.FINE);
|
||||||
|
log.info("Starting Hajj-simulation");
|
||||||
//Gen Camp
|
//Gen Camp
|
||||||
campPerDistrict[District.ALMANSOOR.ordinal()] = new ArrayList<>();
|
campPerDistrict[District.ALMANSOOR.ordinal()] = new ArrayList<>();
|
||||||
campPerDistrict[District.ALAZIZIYA.ordinal()] = new ArrayList<>();
|
campPerDistrict[District.ALAZIZIYA.ordinal()] = new ArrayList<>();
|
||||||
@ -30,6 +37,8 @@ public class MakkahCity {
|
|||||||
generateCamps(District.ALMANSOOR, (int)getRandom(1600, 1800));
|
generateCamps(District.ALMANSOOR, (int)getRandom(1600, 1800));
|
||||||
generateCamps(District.ALHIJRA, (int)getRandom(1400, 1600));
|
generateCamps(District.ALHIJRA, (int)getRandom(1400, 1600));
|
||||||
|
|
||||||
|
log.fine(String.format("Generated %d Campaigns", listOfCampaigns.size()));
|
||||||
|
|
||||||
fillBusesToList();
|
fillBusesToList();
|
||||||
|
|
||||||
makeStreets();
|
makeStreets();
|
||||||
|
Loading…
Reference in New Issue
Block a user