Package org.sim0mq.test.message
Class TestFederateStarter
java.lang.Object
org.sim0mq.test.message.TestFederateStarter
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See Sim0MQ License.
- Author:
- Alexander Verbraeck
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
killFederate
(String federationName) Send the FM.8 message to the FederateStarter to kill the MM1 model.(package private) void
startModel
(String federationName, int fsPort) Send the FM.1 message to the FederateStarter to start a process.void
Test Federation Starter functions.
-
Field Details
-
state
int statethe state of the started model. -
ready
static boolean readythe ready state of the started model. -
error
String errorthe error to report.
-
-
Constructor Details
-
TestFederateStarter
public TestFederateStarter()
-
-
Method Details
-
testFederateStarter
Test Federation Starter functions.- Throws:
Sim0MQException
- on encoding errorSerializationException
- on serialization error
-
startModel
Send the FM.1 message to the FederateStarter to start a process.- Parameters:
federationName
- Name of the federationfsPort
- the Federate Starter port- Throws:
Sim0MQException
- on errorSerializationException
- on serialization problem
-
killFederate
Send the FM.8 message to the FederateStarter to kill the MM1 model.- Parameters:
federationName
- the name of the federation- Throws:
Sim0MQException
- on errorSerializationException
- on serialization problem
-