1 package org.opentrafficsim.sim0mq.publisher;
2
3 import org.djutils.immutablecollections.ImmutableSet;
4 import org.opentrafficsim.core.network.Link;
5 import org.opentrafficsim.core.network.OTSNetwork;
6
7 /**
8 * Transceiver for Link ids.
9 * <p>
10 * Copyright (c) 2020-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
11 * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>.
12 * </p>
13 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
14 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
15 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
16 */
17 public class LinkIdTransceiver extends AbstractIdTransceiver
18 {
19 /**
20 * Construct a new LinkIdTransceiver.
21 * @param network OTSNetwork; the OTS network
22 */
23 public LinkIdTransceiver(final OTSNetwork network)
24 {
25 super(network, "Link id transceiver");
26 }
27
28 /** {@inheritDoc} */
29 @Override
30 public String toString()
31 {
32 return "LinkIdTransceiver [super=" + super.toString() + "]";
33 }
34
35 /** {@inheritDoc} */
36 @Override
37 ImmutableSet<Link> getSet()
38 {
39 return (ImmutableSet<Link>) getNetwork().getLinkMap().values();
40 }
41
42 }