Class LinkTransceiver
java.lang.Object
org.opentrafficsim.sim0mq.publisher.AbstractTransceiver
org.opentrafficsim.sim0mq.publisher.LinkTransceiver
- All Implemented Interfaces:
- org.djutils.base.Identifiable,- TransceiverInterface
Transceiver for Link 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 SummaryConstructorsConstructorDescriptionLinkTransceiver(org.opentrafficsim.core.network.Network network, LinkIdTransceiver linkIdSource) Construct a new LinkTransceiver.
- 
Method SummaryModifier and TypeMethodDescriptionObject[]get(Object[] address, ReturnWrapper returnWrapper) Retrieve the data.getIdSource(int addressLevel, ReturnWrapper returnWrapper) Retrieve the TransceiverInterface that can be used to get detailed information about a single object.booleanReport if this transceiver has an id source.toString()Methods inherited from class org.opentrafficsim.sim0mq.publisher.AbstractTransceivergetAddressFields, getId, getResultFields, verifyMetaData
- 
Constructor Details- 
LinkTransceiverpublic LinkTransceiver(org.opentrafficsim.core.network.Network network, LinkIdTransceiver linkIdSource) Construct a new LinkTransceiver.- Parameters:
- network- the network
- linkIdSource- the transceiver that can produce all Link ids in the Network
 
 
- 
- 
Method Details- 
getpublic Object[] get(Object[] address, ReturnWrapper returnWrapper) throws RemoteException, org.sim0mq.Sim0MQException, org.djutils.serialization.SerializationException Description copied from interface:TransceiverInterfaceRetrieve the data.- Parameters:
- address- the address of the data to retrieve
- returnWrapper- to be used to report problems
- Returns:
- the retrieved data, or null when no object with the address could be found
- Throws:
- RemoteException- when communication needed to retrieve the data failed
- org.sim0mq.Sim0MQException- when encoding an error message fails
- org.djutils.serialization.SerializationException- when encoding an error message fails
 
- 
getIdSourcepublic TransceiverInterface getIdSource(int addressLevel, ReturnWrapper returnWrapper) throws org.sim0mq.Sim0MQException, org.djutils.serialization.SerializationException Description copied from interface:TransceiverInterfaceRetrieve the TransceiverInterface that can be used to get detailed information about a single object.- Parameters:
- addressLevel- index of the argument in the address fields
- returnWrapper- to be used to report problems
- Returns:
- to be used to get valid values for argument addressLevel, or null if valid values for the argument at indexaddressLevelcan not be obtained through a TransceiverInterface object
- Throws:
- org.sim0mq.Sim0MQException- when the ReturnWrapper fails
- org.djutils.serialization.SerializationException- when the ReturnWrapper fails
 
- 
hasIdSourcepublic boolean hasIdSource()Description copied from interface:TransceiverInterfaceReport if this transceiver has an id source.- Returns:
- true if this transceiver has an id source; false if this transceiver does not have an id source
 
- 
toString- Overrides:
- toStringin class- AbstractTransceiver
 
 
-