Class LaneGtuIdTransceiver

java.lang.Object
org.opentrafficsim.sim0mq.publisher.AbstractTransceiver
org.opentrafficsim.sim0mq.publisher.LaneGtuIdTransceiver
All Implemented Interfaces:
org.djutils.base.Identifiable, TransceiverInterface

public class LaneGtuIdTransceiver extends AbstractTransceiver
Transceiver for the ids of the GTUs on a link.

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, Wouter Schakel
  • Constructor Details

    • LaneGtuIdTransceiver

      public LaneGtuIdTransceiver(org.opentrafficsim.core.network.Network network)
      Construct a GtuIdTransceiver.
      Parameters:
      network - Network; the OTS network
  • Method Details

    • get

      public final Object[] get(Object[] address, ReturnWrapper returnWrapper) throws org.sim0mq.Sim0MQException, org.djutils.serialization.SerializationException
      Retrieve the data.
      Parameters:
      address - Object[]; the address of the data to retrieve
      returnWrapper - ReturnWrapper; to be used to report problems
      Returns:
      Object[]; the retrieved data, or null when no object with the address could be found
      Throws:
      org.sim0mq.Sim0MQException - when encoding an error message fails
      org.djutils.serialization.SerializationException - when encoding an error message fails
    • toString

      public String toString()
      Overrides:
      toString in class AbstractTransceiver