Package org.opentrafficsim.sim0mq.swing
Class Sim0mqPublisher
java.lang.Object
org.opentrafficsim.sim0mq.swing.Sim0mqPublisher
Sim0MQPublisher - make many OTS simulation controls and observations available over Sim0MQ.
 
 Copyright (c) 2020-2024 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 Summary
ConstructorsConstructorDescriptionSim0mqPublisher(int port) Create a new Sim0MQPublisher that uses TCP transport.Sim0mqPublisher(int port, AbstractSimulationScript preloadedSimulation, List<SubscriptionHandler> additionalSubscriptionHandlers) Create a new Sim0MQPublisher that uses TCP transport.Sim0mqPublisher(int port, AbstractSimulationScript preloadedSimulation, List<SubscriptionHandler> additionalSubscriptionHandlers, List<IncomingDataHandler> incomingDataHandlers) Create a new Sim0MQPublisher that uses TCP transport.Sim0mqPublisher(org.zeromq.ZContext zContext, String controlInput, String resultOutput) Create a new Sim0MQPublisher that is operated through //inproc sockets. - 
Method Summary
 
- 
Constructor Details
- 
Sim0mqPublisher
Create a new Sim0MQPublisher that is operated through //inproc sockets.- Parameters:
 zContext- needed to create the socketscontrolInput- PULL socket for control inputresultOutput- PUSH socket to output results
 - 
Sim0mqPublisher
public Sim0mqPublisher(int port) Create a new Sim0MQPublisher that uses TCP transport.- Parameters:
 port- port number to bind to
 - 
Sim0mqPublisher
public Sim0mqPublisher(int port, AbstractSimulationScript preloadedSimulation, List<SubscriptionHandler> additionalSubscriptionHandlers, List<IncomingDataHandler> incomingDataHandlers) throws RemoteException Create a new Sim0MQPublisher that uses TCP transport.- Parameters:
 port- port number to bind topreloadedSimulation- a fully loaded (but not started) simulationadditionalSubscriptionHandlers- list of additional subscription handlers (may be null)incomingDataHandlers- list of additional handlers for incoming data that is not handled by the standard Sim0MQPublisher (may be null)- Throws:
 RemoteException- when construction of the Publisher failed
 - 
Sim0mqPublisher
public Sim0mqPublisher(int port, AbstractSimulationScript preloadedSimulation, List<SubscriptionHandler> additionalSubscriptionHandlers) throws RemoteException Create a new Sim0MQPublisher that uses TCP transport.- Parameters:
 port- port number to bind topreloadedSimulation- a fully loaded (but not started) simulationadditionalSubscriptionHandlers- list of additional subscription handlers (may be null)- Throws:
 RemoteException- when construction of the Publisher failed
 
 -