Class Sim0MQPublisher


  • public final class Sim0MQPublisher
    extends Object
    Sim0MQPublisher - make many OTS simulation controls and observations available over Sim0MQ.

    Copyright (c) 2020-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    Author:
    Alexander Verbraeck, Peter Knoppers
    • Constructor Detail

      • Sim0MQPublisher

        public Sim0MQPublisher​(org.zeromq.ZContext zContext,
                               String controlInput,
                               String resultOutput)
        Create a new Sim0MQPublisher that is operated through //inproc sockets.
        Parameters:
        zContext - ZContext; needed to create the sockets
        controlInput - String; PULL socket for control input
        resultOutput - String; PUSH socket to output results
      • Sim0MQPublisher

        public Sim0MQPublisher​(int port)
        Create a new Sim0MQPublisher that uses TCP transport.
        Parameters:
        port - int; port number to bind to