Class SimulatorStateTransceiver

  • All Implemented Interfaces:
    org.opentrafficsim.base.Identifiable, TransceiverInterface

    public class SimulatorStateTransceiver
    extends AbstractTransceiver
    Transceiver for simulator state change events.

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

    $LastChangedDate: 2020-02-13 11:08:16 +0100 (Thu, 13 Feb 2020) $, @version $Revision: 6383 $, by $Author: pknoppers $,

    Author:
    Peter Knoppers
    • Field Detail

      • eventMultiplexer

        final EventProducerInterface eventMultiplexer
        Multiplexes SimulatorInterface.START_EVENT and SimulatorInterface.STOP_EVENT.
      • SIMULATOR_STATE_CHANGED

        public static final TimedEventType SIMULATOR_STATE_CHANGED
        The event that will be emitted for either the START_EVENT or the STOP_EVENT.
    • Constructor Detail

      • SimulatorStateTransceiver

        public SimulatorStateTransceiver​(org.opentrafficsim.core.dsol.OTSSimulatorInterface simulator)
                                  throws RemoteException
        Construct a new SimulatorStateTransceiver.
        Parameters:
        simulator - OTSSimulatorInterface; the simulator
        Throws:
        RemoteException - on network error
    • Method Detail

      • getLookupEventProducerInterface

        public LookupEventProducerInterface getLookupEventProducerInterface()
        Retrieve the event LookupEventProducerInterface.
        Returns:
        EventProducerInterface; the event multiplexer