From ab40eb1c2e550c8d9a2dea52398dbecbaa2e0a14 Mon Sep 17 00:00:00 2001 From: benoitgaudou Date: Wed, 21 Feb 2024 21:34:55 +0700 Subject: [PATCH 1/2] update of the MQTT model --- .../MQTT protocol/Example_MQTT_Receive_Agent.gaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ummisco.gama.network/models/Network/2 Available protocols/MQTT protocol/Example_MQTT_Receive_Agent.gaml b/ummisco.gama.network/models/Network/2 Available protocols/MQTT protocol/Example_MQTT_Receive_Agent.gaml index 38facae1db..a90867cb25 100644 --- a/ummisco.gama.network/models/Network/2 Available protocols/MQTT protocol/Example_MQTT_Receive_Agent.gaml +++ b/ummisco.gama.network/models/Network/2 Available protocols/MQTT protocol/Example_MQTT_Receive_Agent.gaml @@ -25,11 +25,14 @@ global skills:[network] { reflex receiveAgent when:has_more_message(){ // write "fetch agent on the network"; message mess <- fetch_message(); - // write name + " fecth this message: " + mess.contents; - loop agt over: mess.contents as list{ - create NetworkingAgent with: [shape::agt["shape"], color::agt["color"]]; - } + // Accessing the content of a message unserialised the received object + // In the case of an agent, it is recreated. + write name + " fecth this message: " + mess.contents; + + //loop agt over: mess.contents as list{ + // create NetworkingAgent with: [shape::agt["shape"], color::agt["color"]]; + //} } } From 97eb69bf42f39452c75a05fad34f479e4b43a9be Mon Sep 17 00:00:00 2001 From: Baptiste Lesquoy Date: Wed, 21 Feb 2024 22:31:30 +0700 Subject: [PATCH 2/2] Adds back the controls for DEM generator model --- .../Visualization/DEM Generator.gaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msi.gama.models/models/Visualization and User Interaction/Visualization/DEM Generator.gaml b/msi.gama.models/models/Visualization and User Interaction/Visualization/DEM Generator.gaml index ef0eaa67e7..321dc53bc8 100644 --- a/msi.gama.models/models/Visualization and User Interaction/Visualization/DEM Generator.gaml +++ b/msi.gama.models/models/Visualization and User Interaction/Visualization/DEM Generator.gaml @@ -86,7 +86,7 @@ experiment Terrain type: gui { list land_and_sea <- palette(reverse([#darkgreen, #darkgreen, #green, rgb(32, 176, 0), rgb(224, 224, 0), rgb(128, 128, 255), #blue, #blue])); list field_and_forest <- palette(reverse([#sienna, #olive, #darkgreen, #green, #forestgreen, #lightgreen])); output { - layout #split consoles: false controls: false toolbars: false; + layout #split consoles: false toolbars: false; display "Terrain" type: 3d axes: false camera: #from_up_front { mesh terrain color: palette_name = "Seaside" ? land_and_sea : field_and_forest triangulation: true; }