Class LaneGTUTransceiver

    • Constructor Detail

      • LaneGTUTransceiver

        public LaneGTUTransceiver​(org.opentrafficsim.imb.connector.Connector connector,
                                  DEVSSimulatorInterface.TimeDoubleUnit simulator,
                                  OTSNetwork network)
                           throws org.opentrafficsim.imb.IMBException
        Construct a new LaneGTUTransceiver.
        Parameters:
        connector - Connector; the IMB connector through which this transceiver communicates
        simulator - DEVSSimulatorInterface.TimeDoubleUnit; the simulator to schedule the incoming notifications on
        network - OTSNetwork; the OTS network on which Links for Lanes are registered
        Throws:
        org.opentrafficsim.imb.IMBException - when the registration of one of the channels fails
        NullPointerException - in case one of the arguments is null.
    • Method Detail

      • transformNew

        public Object[] transformNew​(EventInterface event)
        Transform the addition of a Lane to the network to a corresponding IMB message.
        Parameters:
        event - EventInterface; the event to transform to a NEW message.
        Returns:
        the NEW payload
      • transformChange

        public Object[] transformChange​(EventInterface event)
        Transform the GTU added or removed event content to a corresponding IMB message.
        Parameters:
        event - EventInterface; the event to transform to a CHANGE message.
        Returns:
        the CHANGE payload
      • transformDelete

        public Object[] transformDelete​(EventInterface event)
        Transform the removal of a Lane from the network to a corresponding IMB message.
        Parameters:
        event - EventInterface; the event to transform to a DELETE message.
        Returns:
        the DELETE payload