From 3cc8aeba8ceda9a8bf476a50e4ef5c303487ec62 Mon Sep 17 00:00:00 2001 From: schwepmo <39306374+schwepmo@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:32:01 +0200 Subject: [PATCH] cleanup: minor cleanup tasks (#402) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Moritz Schweppenhäuser --- .../mosaic/rti/api/parameters/FederateDescriptor.java | 10 +++++----- .../org/eclipse/mosaic/starter/MosaicSimulation.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rti/mosaic-rti-api/src/main/java/org/eclipse/mosaic/rti/api/parameters/FederateDescriptor.java b/rti/mosaic-rti-api/src/main/java/org/eclipse/mosaic/rti/api/parameters/FederateDescriptor.java index 1cb9006f9..9879c78cc 100644 --- a/rti/mosaic-rti-api/src/main/java/org/eclipse/mosaic/rti/api/parameters/FederateDescriptor.java +++ b/rti/mosaic-rti-api/src/main/java/org/eclipse/mosaic/rti/api/parameters/FederateDescriptor.java @@ -29,7 +29,7 @@ /** * The federation handle is the description of a federate. If a federate is to - * join a federation, it must be described using a instance of this class. + * join a federation, it must be described using an instance of this class. */ public class FederateDescriptor { @@ -44,13 +44,13 @@ public class FederateDescriptor { private final FederateAmbassador ambassador; /** - * Flag signalizing whether to deploy and undeploy the federate (e.g. an external executable) in the + * Flag signalizing whether to deploy and undeploy the federate (e.g., an external executable) in the * working directory before starting it. */ private boolean deployAndUndeploy = false; /** - * Flag signalizing whether to start/stop the federate external component (e.g. an external executable). + * Flag signalizing whether to start/stop the federate external component (e.g., an external executable). */ private boolean startAndStop = false; @@ -61,7 +61,7 @@ public class FederateDescriptor { private CLocalHost host = null; /** - * The the directly where the external component for the federate (e.g. the external executable, libraries and its resources) + * The directory where the external component for the federate (e.g., the external executable, libraries and its resources) * can be found. */ private File binariesDir = null; @@ -86,7 +86,7 @@ public class FederateDescriptor { * The priority assigned to the ambassador/federate. The lower the value, * the higher the priority of this ambassador/federate. Federates with an * higher priority receive interactions with the same time stamp earlier. - * + *

* {@link FederatePriority#HIGHEST} is highest / best priority */ private final byte priority; diff --git a/rti/mosaic-starter/src/main/java/org/eclipse/mosaic/starter/MosaicSimulation.java b/rti/mosaic-starter/src/main/java/org/eclipse/mosaic/starter/MosaicSimulation.java index 91bf795d0..7fee54243 100644 --- a/rti/mosaic-starter/src/main/java/org/eclipse/mosaic/starter/MosaicSimulation.java +++ b/rti/mosaic-starter/src/main/java/org/eclipse/mosaic/starter/MosaicSimulation.java @@ -346,7 +346,7 @@ private FederateDescriptor loadFederate(Path scenarioDirectory, CRuntime.CFedera // create new descriptor and set common properties final int readPriority = federate.priority; if (FederatePriority.isInRange(readPriority)) { - throw new IllegalArgumentException("Provided priority " + readPriority + "lies out of allowed range: " + throw new IllegalArgumentException("Provided priority " + readPriority + " lies out of allowed range: " + FederatePriority.LOWEST + " - " + FederatePriority.HIGHEST + " (lowest priority - highest priority)"); } final FederateDescriptor descriptor = new FederateDescriptor(federate.id, ambassador, (byte) readPriority);