View Javadoc
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.Network;
6   
7   /**
8    * Transceiver for Link ids.
9    * <p>
10   * Copyright (c) 2020-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
11   * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
12   * </p>
13   * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a>
14   * @author <a href="https://tudelft.nl/staff/p.knoppers-1">Peter Knoppers</a>
15   * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
16   */
17  public class LinkIdTransceiver extends AbstractIdTransceiver
18  {
19      /**
20       * Construct a new LinkIdTransceiver.
21       * @param network Network; the OTS network
22       */
23      public LinkIdTransceiver(final Network 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  }