Class AbstractIdTransceiver
java.lang.Object
org.opentrafficsim.sim0mq.publisher.AbstractTransceiver
org.opentrafficsim.sim0mq.publisher.AbstractIdTransceiver
- All Implemented Interfaces:
Identifiable,TransceiverInterface
- Direct Known Subclasses:
GtuIdTransceiver,LinkIdTransceiver,NodeIdTransceiver
Common code for id transceivers that use an empty address.
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 Summary
ConstructorsConstructorDescriptionAbstractIdTransceiver(Network network, String id) Construct a GtuIdTransceiver. -
Method Summary
Modifier and TypeMethodDescriptionfinal Object[]get(Object[] address, ReturnWrapper returnWrapper) Retrieve the data.Methods inherited from class org.opentrafficsim.sim0mq.publisher.AbstractTransceiver
getAddressFields, getId, getResultFields, toString, verifyMetaDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.sim0mq.publisher.TransceiverInterface
getIdSource, hasIdSource
-
Constructor Details
-
AbstractIdTransceiver
Construct a GtuIdTransceiver.- Parameters:
network- the OTS networkid- name of the IdTransceiver
-
-
Method Details
-
get
public final Object[] get(Object[] address, ReturnWrapper returnWrapper) throws Sim0MQException, SerializationException Description copied from interface:TransceiverInterfaceRetrieve the data.- Parameters:
address- the address of the data to retrievereturnWrapper- to be used to report problems- Returns:
- the retrieved data, or null when no object with the address could be found
- Throws:
Sim0MQException- when encoding an error message failsSerializationException- when encoding an error message fails
-