}
public void executeMessage() {
- //System.out.println("Executing message of type "+type);
+ System.out.println("Executing message of type "+type);
//static messages
if (type.compareTo("SET_MAP_SIZE")==0) {
- //System.out.println("Setting the map size...");
+ System.out.println("Setting the map size...");
d2.getStatic().setMapSize(parameters);
}
else if (type.compareTo("SET_ITERATION_STEP")==0) {
- //System.out.println("Setting the iteration step...");
+ System.out.println("Setting the iteration step...");
d2.getStatic().setIterationStep(parameters);
}
else if (type.compareTo("SET_NO_OF_ITERATIONS")==0) {
- //System.out.println("Setting the no. of iterations...");
+ System.out.println("Setting the no. of iterations...");
d2.getStatic().setNumberOfIterations(parameters);
}
else if (type.compareTo("SET_CYLINDER")==0) {
- //System.out.println("Setting the cylinder of safety/unsafety...");
+ System.out.println("Setting the cylinder of safety/unsafety...");
d2.getStatic().setCylinder(parameters);
}
else if (type.compareTo("ADD_FIX")==0) {
- //System.out.println("Adding a new fix...");
+ System.out.println("Adding a new fix...");
d2.getFixList().addFix(parameters);
}
else if (type.compareTo("REMOVE_FIX")==0) {
- //System.out.println("Removing a fix...");
+ System.out.println("Removing a fix...");
d2.getFixList().removeFix(parameters);
}
else if (type.compareTo("ADD_AIRCRAFT")==0) {
- //System.out.println("Adding an aircraft...");
+ System.out.println("Adding an aircraft...");
d2.getAircraftList().addAircraft(parameters);
}
else if (type.compareTo("REMOVE_AIRCRAFT")==0) {
- //System.out.println("Removing an aircraft...");
+ System.out.println("Removing an aircraft...");
d2.getAircraftList().removeAircraft(parameters);
}
d2.getAlgorithm().setInitialTime(time);
if (type.compareTo("ADD_FLIGHT_PLAN")==0) {
- //System.out.println("Adding flight plan...");
+ System.out.println("Adding flight plan...");
d2.getFlightList().addFlightPlan(time,parameters);
}
else if (type.compareTo("REMOVE_FLIGHT_PLAN")==0) {
- //System.out.println("Removing flight plan...");
+ System.out.println("Removing flight plan...");
d2.getFlightList().removeFlightPlan(time,parameters);
}
else if (type.compareTo("AMEND_FLIGHT_INFO")==0) {
- //System.out.println("Amending flight info...");
+ System.out.println("Amending flight info...");
d2.getFlightList().amendFlightInfo(time,parameters);
}
else if (type.compareTo("AMEND_FLIGHT_PLAN")==0) {
- //System.out.println("Amending flight plan...");
+ System.out.println("Amending flight plan...");
d2.getFlightList().amendFlightPlan(time,parameters);
}
else if (type.compareTo("SENDING_AIRCRAFT")==0) {
- //System.out.println("Sending aircraft data...");
+ System.out.println("Sending aircraft data...");
d2.getFlightList().sendingAircraft(time,parameters);
}
}