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.

$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version May 5, 2017
Author:
Alexander Verbraeck
  • Constructor Details

    • StateMachine

      StateMachine​(AtomicLong messageCount, String federationName, String fsServerNameOrIP, int fsPort, String mm1ModelFolder, int modelNr) throws Sim0MQException, SerializationException
      Parameters:
      messageCount - AtomicLong; message counter
      federationName - the name of the federation
      fsServerNameOrIP - name or IP address of the federate starter we are using
      fsPort - the port where the federate starter can be reached
      mm1ModelFolder - location on the computer of the federate starter where the model can be found
      modelNr - sequence number of the model to run
      Throws:
      Sim0MQException - on error
      SerializationException - on serialization problem
  • Method Details