From 9cb044b3fadf1b9e50948bb3ed49fc15d126c16b Mon Sep 17 00:00:00 2001 From: ptaillandier Date: Tue, 29 Oct 2024 11:52:51 +0700 Subject: [PATCH] fixes an infinite loop error and the doc --- gama.core/src/gama/core/kernel/root/PlatformAgent.java | 2 +- .../src/gama/extension/image/ImageOperators.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gama.core/src/gama/core/kernel/root/PlatformAgent.java b/gama.core/src/gama/core/kernel/root/PlatformAgent.java index ce2c1bd095..e74a2420e4 100644 --- a/gama.core/src/gama/core/kernel/root/PlatformAgent.java +++ b/gama.core/src/gama/core/kernel/root/PlatformAgent.java @@ -534,7 +534,7 @@ public Object sendMessageThroughServer(final IScope scope) { * @date 3 nov. 2023 */ public void sendMessage(final IScope scope, final Object message) { - sendMessage(scope,GamaServerMessage.Type.SimulationOutput); + sendMessage(scope, message,GamaServerMessage.Type.SimulationOutput); } public void sendMessage(final IScope scope, final Object message, final gama.core.runtime.server.GamaServerMessage.Type type) { diff --git a/gama.extension.image/src/gama/extension/image/ImageOperators.java b/gama.extension.image/src/gama/extension/image/ImageOperators.java index 6f185ded74..461aaaaf89 100644 --- a/gama.extension.image/src/gama/extension/image/ImageOperators.java +++ b/gama.extension.image/src/gama/extension/image/ImageOperators.java @@ -186,9 +186,7 @@ public static String imgToBase64String(final GamaImage img, final String formatN @operator ( value = "send_image_to_websocket", can_be_const = false) - @doc ("Takes a snapshot of the display whose name is passed in parameter and returns the image. " - + "The search for the display begins in the agent passed in parameter and, if not found, its experiment. A custom size (a point representing width x height) can be given " - + "Returns nil if no display can be found or the snapshot cannot be taken.") + @doc ("Send the given image to the websocket using Base64.") @no_test public static GamaImage sendImageWebsocket(final IScope scope, final GamaImage image) { PlatformAgent pa = GAMA.getPlatformAgent();