diff --git a/models/main.gaml b/models/main.gaml index 54db383..7454b91 100644 --- a/models/main.gaml +++ b/models/main.gaml @@ -21,7 +21,8 @@ global { // UDP connection /*int port <- 9877; - string url <- "localhost";*/ + string url <- "localhost";*/ + bool useArduino<-false; // ---------------------------------------Agent Creation---------------------------------------------- init{ @@ -90,10 +91,13 @@ global { }*/ // Arduino connection - create NetworkingAgent number: 1 { - do connect protocol: "arduino" to:"COM3"; + if(useArduino){ + create NetworkingAgent number: 1 { + do connect protocol: "arduino" to:"COM3"; + } } + write "FINISH INITIALIZATION"; initial_hour <- current_date.hour; initial_minute <- current_date.minute; @@ -161,7 +165,7 @@ global { } } -experiment generalScenario type: gui benchmark: false keep_simulations: false { +experiment generalScenario type: gui benchmark: false {//keep_simulations: false { int fontSize <- 5; int x_val <- 100; int x_step <- 300; @@ -174,7 +178,7 @@ experiment generalScenario type: gui benchmark: false keep_simulations: false { output { layout #split background: #black consoles: false controls: false editors: false navigator: false parameters: false toolbars: false tray: false tabs: true; - display dashboard antialias: false type: java2D fullscreen: 0 background: #black{ + display dashboard antialias: false type: java2D fullscreen: false background: #black{ graphics Strings{ draw "AUTONOMOUS MICRO-MOBILITY FOR FOOD DELIVERIES" at: {200,125} color: #white font: font("Helvetica", 23, #bold); //draw "FOR FOOD DELIVERIES" at: {1050,200} color: #white font: font("Helvetica", 25, #bold);