Skip to content

Commit

Permalink
cleanup: minor cleanup tasks (#402)
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Schweppenhäuser <[email protected]>
  • Loading branch information
schwepmo authored Aug 9, 2024
1 parent 3502596 commit 3cc8aeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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;

Expand All @@ -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;
Expand All @@ -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.
*
* <p/>
* {@link FederatePriority#HIGHEST} is highest / best priority
*/
private final byte priority;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3cc8aeb

Please sign in to comment.