package bridgeconstructor;

/**
 * La classe n'a pas besoin d'être instancié car unique
 * Elle sera remplie par l'utilisateur
 * en fonction de sa base de faits
 */
public class Environment {
	// Traffic
	private static boolean naval_traffic = true;
	private static boolean railway_traffic = true;
	private static boolean pedestrian_traffic = true;
	private static boolean road_traffic = true;
	
	// Risques Météorologiques
	private static boolean storm = false;
	private static boolean fire = false;
	private static boolean flood = false;
	
	// private Materials Sol;
	
	//	SETTERS
	//		SETTERS Traffic
	public static void setNaval_traffic(boolean naval_traffic) {
		Environment.naval_traffic = naval_traffic;
	}
	
	public static void setRailway_traffic(boolean railway_traffic) {
		Environment.railway_traffic = railway_traffic;
	}
	
	public static void setPedestrian_traffic(boolean pedestrian_traffic) {
		Environment.pedestrian_traffic = pedestrian_traffic;
	}
	
	public static void setRoad_traffic(boolean road_traffic) {
		Environment.road_traffic = road_traffic;
	}
	
	//		SETTERS Risques Météorologiques
	public static void setStorm(boolean storm) {
		Environment.storm = storm;
	}
	
	public static void setFire(boolean fire) {
		Environment.fire = fire;
	}
	
	public static void setFlood(boolean flood) {
		Environment.flood = flood;
	}
	
	// GETTERS
	//		GETTERS Traffic
	public static boolean isNaval_traffic() {
		return naval_traffic;
	}
	
	public static boolean isRailway_traffic() {
		return railway_traffic;
	}
	
	public static boolean isPedestrian_traffic() {
		return pedestrian_traffic;
	}
	
	public static boolean isRoad_traffic() {
		return road_traffic;
	}
	
	//		GETTERS Risques Météorologiques
	public static boolean isStorm() {
		return storm;
	}
	
	public static boolean isFire() {
		return fire;
	}
	
	public static boolean isFlood() {
		return flood;
	}
	
	@Override
	public String toString() {
		return "ENVIRONMENT :\n" +
				"\tNaval Traffic = " + naval_traffic +
				",\tRailway Traffic = " + railway_traffic +
				",\tPedestrian Traffic = " + pedestrian_traffic +
				",\tRoad Traffic = " + road_traffic +
				",\tStorm = " + storm +
				",\tFire = " + fire +
				",\tFlood = " + flood;
	}
}

@@ -230,35 +230,36 @@
 naval_traffic = 
-tru
+fals
 e;%0A%09private stat
@@ -279,35 +279,36 @@
 ilway_traffic = 
-tru
+fals
 e;%0A%09private stat
@@ -335,27 +335,28 @@
 n_traffic = 
-tru
+fals
 e;%0A%09private 
@@ -385,19 +385,20 @@
 affic = 
-tru
+fals
 e;%0A%09%0A%09//
@@ -577,24 +577,24 @@
 %09//%09SETTERS%0A
-
 %09//%09%09SETTERS
@@ -594,32 +594,99 @@
 SETTERS Traffic%0A
+%09public static void addNavalTraffic()%7B%0A%09%09naval_traffic= true;%0A%09%7D%0A%09%0A
 %09public static v

branche pour teste environment en static