Package org.sim0mq.demo.mm1
Class MM1FederationManager20.StateMachine
java.lang.Object
org.sim0mq.demo.mm1.MM1FederationManager20.StateMachine
- Enclosing class:
- MM1FederationManager20
static class MM1FederationManager20.StateMachine extends Object
State machine to run several models in parallel.
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See Sim0MQ License.
- Author:
- Alexander Verbraeck
-
Constructor Summary
Constructors Constructor Description StateMachine(AtomicLong messageCount, String federationName, String fsServerNameOrIP, int fsPort, String mm1ModelFolder, int modelNr)
-
Method Summary
Modifier and Type Method Description Map<String,Number>
getStatistics()
-
Constructor Details
-
StateMachine
StateMachine(AtomicLong messageCount, String federationName, String fsServerNameOrIP, int fsPort, String mm1ModelFolder, int modelNr) throws Sim0MQException, SerializationException- Parameters:
messageCount
- AtomicLong; message counterfederationName
- the name of the federationfsServerNameOrIP
- name or IP address of the federate starter we are usingfsPort
- the port where the federate starter can be reachedmm1ModelFolder
- location on the computer of the federate starter where the model can be foundmodelNr
- sequence number of the model to run- Throws:
Sim0MQException
- on errorSerializationException
- on serialization problem
-
-
Method Details
-
getStatistics
- Returns:
- statistics
-