Class CrossSectionElementTransceiver
java.lang.Object
org.opentrafficsim.sim0mq.publisher.AbstractTransceiver
org.opentrafficsim.sim0mq.publisher.CrossSectionElementTransceiver
- All Implemented Interfaces:
org.djutils.base.Identifiable
,TransceiverInterface
Transceiver for CrossSectionElement data.
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
ConstructorDescriptionCrossSectionElementTransceiver
(org.opentrafficsim.core.network.Network network) Construct a new CrossSectionElementTransceiver for an OTS network. -
Method Summary
Methods inherited from class org.opentrafficsim.sim0mq.publisher.AbstractTransceiver
getAddressFields, getId, getResultFields, verifyMetaData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opentrafficsim.sim0mq.publisher.TransceiverInterface
getIdSource, hasIdSource
-
Constructor Details
-
CrossSectionElementTransceiver
public CrossSectionElementTransceiver(org.opentrafficsim.core.network.Network network) Construct a new CrossSectionElementTransceiver for an OTS network.- Parameters:
network
- Network; the OTS network
-
-
Method Details
-
get
public Object[] get(Object[] address, ReturnWrapper returnWrapper) throws RemoteException, org.sim0mq.Sim0MQException, org.djutils.serialization.SerializationException Retrieve the data.- Parameters:
address
- Object[]; the address of the data to retrievereturnWrapper
- ReturnWrapper; to be used to report problems- Returns:
- Object[]; the retrieved data, or null when no object with the address could be found
- Throws:
RemoteException
- when communication needed to retrieve the data failedorg.sim0mq.Sim0MQException
- when encoding an error message failsorg.djutils.serialization.SerializationException
- when encoding an error message fails
-
toString
- Overrides:
toString
in classAbstractTransceiver
-