Class GtuIdTransceiver
java.lang.Object
org.opentrafficsim.sim0mq.publisher.AbstractTransceiver
org.opentrafficsim.sim0mq.publisher.AbstractIdTransceiver
org.opentrafficsim.sim0mq.publisher.GtuIdTransceiver
- All Implemented Interfaces:
org.djutils.base.Identifiable
,TransceiverInterface
Transceiver for GTU ids.
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
ConstructorDescriptionGtuIdTransceiver
(org.opentrafficsim.core.network.Network network) Construct a GtuIdTransceiver. -
Method Summary
Methods inherited from class org.opentrafficsim.sim0mq.publisher.AbstractIdTransceiver
get, getNetwork
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
-
GtuIdTransceiver
public GtuIdTransceiver(org.opentrafficsim.core.network.Network network) Construct a GtuIdTransceiver.- Parameters:
network
- Network; the OTS network
-
-
Method Details
-
getSet
org.djutils.immutablecollections.ImmutableSet<org.opentrafficsim.core.gtu.Gtu> getSet()Retrieve the set of names of objects that can be individually subscribed to.- Specified by:
getSet
in classAbstractIdTransceiver
- Returns:
- Set<?>; the set of names of objects whose that can be subscribed to. Each object in this set should
implement
Identifiable
-
toString
- Overrides:
toString
in classAbstractTransceiver
-