1 package org.opentrafficsim.sim0mq.publisher;
2
3 import org.djutils.immutablecollections.Immutable;
4 import org.djutils.immutablecollections.ImmutableLinkedHashSet;
5 import org.djutils.immutablecollections.ImmutableSet;
6 import org.opentrafficsim.core.gtu.Gtu;
7 import org.opentrafficsim.core.network.Network;
8
9
10
11
12
13
14
15
16
17
18
19 public class GtuIdTransceiver extends AbstractIdTransceiver
20 {
21
22
23
24
25 public GtuIdTransceiver(final Network network)
26 {
27 super(network, "GTU id transceiver");
28 }
29
30
31 @Override
32 ImmutableSet<Gtu> getSet()
33 {
34 return new ImmutableLinkedHashSet<Gtu>(getNetwork().getGTUs(), Immutable.WRAP);
35 }
36
37
38 @Override
39 public String toString()
40 {
41 return "GtuIdTransceiver [network=" + getNetwork().getId() + ", super=" + super.toString() + "]";
42 }
43
44 }