Package org.sim0mq.test.message
Class TestFederateStarter
- java.lang.Object
-
- org.sim0mq.test.message.TestFederateStarter
-
public class TestFederateStarter extends Object
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version 13 Jul 2019
BSD-style license. See Sim0MQ License.- Author:
- Alexander Verbraeck
-
-
Field Summary
Fields Modifier and Type Field Description (package private) String
error
the error to report.org.junit.rules.TemporaryFolder
folder
temporary folder for out / err files.(package private) static boolean
ready
the ready state of the started model.(package private) int
state
the state of the started model.
-
Constructor Summary
Constructors Constructor Description TestFederateStarter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (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
testFederateStarter()
Test Federation Starter functions.
-
-
-
Field Detail
-
state
int state
the state of the started model.
-
ready
static boolean ready
the ready state of the started model.
-
error
String error
the error to report.
-
folder
public org.junit.rules.TemporaryFolder folder
temporary folder for out / err files.
-
-
Method Detail
-
testFederateStarter
public void testFederateStarter() throws Sim0MQException, SerializationException
Test Federation Starter functions.- Throws:
Sim0MQException
- on encoding errorSerializationException
- on serialization error
-
startModel
void startModel(String federationName, int fsPort) throws Sim0MQException, SerializationException
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
void killFederate(String federationName) throws Sim0MQException, SerializationException
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
-
-