Class AbstractIdTransceiver

    • Constructor Detail

      • AbstractIdTransceiver

        public AbstractIdTransceiver​(org.opentrafficsim.core.network.OTSNetwork network,
                                     String id)
        Construct a GTUIdTransceiver.
        Parameters:
        network - OTSNetwork; the OTS network
        id - String; name of the IdTransceiver
    • Method Detail

      • getSet

        abstract ImmutableSet<?> getSet()
        Retrieve the set of names of objects that can be individually subscribed to.
        Returns:
        Set<?>; the set of names of objects whose that can be subscribed to. Each object in this set should implement Identifiable
      • get

        public final Object[] get​(Object[] address,
                                  ReturnWrapper returnWrapper)
                           throws Sim0MQException,
                                  SerializationException
        Retrieve the data.
        Parameters:
        address - Object[]; the address of the data to retrieve
        returnWrapper - ReturnWrapper; to be used to report problems
        Returns:
        Object[]; the retrieved data, or null when no object with the address could be found
        Throws:
        Sim0MQException - when encoding an error message fails
        SerializationException - when encoding an error message fails
      • getNetwork

        final org.opentrafficsim.core.network.OTSNetwork getNetwork()
        Retrieve the network.
        Returns:
        OTSNetwork; the network