This commit is contained in:
Alexander Bachinger
2025-05-16 15:19:08 +02:00
parent 9846a505da
commit 37f7dd75ff
4 changed files with 17 additions and 15 deletions

View File

@@ -1,9 +1,10 @@
package UE21_290425_Bruecke;
public class Variables {
public static final int MAX_WAITING_CARS = 2;
public static final int MAX_CAR_INTERVAL = 5;
public static final int CROSSING_TIME = 30_000;
public static final int MAX_CARS_ON_BRIDGE = 3;
public static final int PRINT_INTERVAL = 2_000;
public static final int MAX_WAITING_CARS = 999_999_999; // Can be used so that the programm doesn't run infinite
public static final int MAX_CAR_INTERVAL = 5; // Maximal Intervall in witch the cars can arrive (1 - X seconds)
public static final int CROSSING_TIME = 30_000; // The time a car needs to cross the bridge
public static final int MAX_CARS_ON_BRIDGE = 3; // Maximal amount of cars on the bridge at the same time
public static final int PRINT_INTERVAL = 2_000; // Amount of seconds between every Statistics output
public static final boolean SHOW_CARS = true; // Decide if you want a graphical visualisation
}