Class AbstractDelayedPerceptionCategory

    • Constructor Detail

      • AbstractDelayedPerceptionCategory

        public AbstractDelayedPerceptionCategory​(LanePerception perception)
        Deprecated.
        Parameters:
        perception - LanePerception; perception
    • Method Detail

      • setInfo

        public final <T> void setInfo​(AbstractDelayedPerceptionCategory.DelayedInfoType<T> delayedInfoType,
                                      org.opentrafficsim.base.TimeStampedObject<T> info)
        Deprecated.
        Set info of given delayed info type, not pertaining to any lane.
        Type Parameters:
        T - data type of delayed info
        Parameters:
        delayedInfoType - DelayedInfoType<T>; info type
        info - TimeStampedObject<T>; info
      • setInfo

        public final <T> void setInfo​(AbstractDelayedPerceptionCategory.DelayedInfoType<T> delayedInfoType,
                                      RelativeLane lane,
                                      org.opentrafficsim.base.TimeStampedObject<T> info)
        Deprecated.
        Set info of given delayed info type, pertaining to a lane.
        Type Parameters:
        T - data type of delayed info
        Parameters:
        delayedInfoType - DelayedInfoType<T>; info type
        lane - RelativeLane; lane, may be null
        info - TimeStampedObject<T>; info
      • getInfo

        public final <T> org.opentrafficsim.base.TimeStampedObject<T> getInfo​(AbstractDelayedPerceptionCategory.DelayedInfoType<T> delayedInfoType)
                                                                       throws org.opentrafficsim.core.gtu.perception.PerceptionException
        Deprecated.
        Returns the most recent info of the given type, that is older than the delay. If all data is more recent than the delay, the oldest data is returned. If no data is present, an exception is thrown.
        Type Parameters:
        T - data type of the info type
        Parameters:
        delayedInfoType - DelayedInfoType<T>; info type
        Returns:
        info of the given type
        Throws:
        org.opentrafficsim.core.gtu.perception.PerceptionException - if info was not perceived
      • getInfo

        public final <T> org.opentrafficsim.base.TimeStampedObject<T> getInfo​(AbstractDelayedPerceptionCategory.DelayedInfoType<T> delayedInfoType,
                                                                              RelativeLane lane)
                                                                       throws org.opentrafficsim.core.gtu.perception.PerceptionException
        Deprecated.
        Returns the most recent info of the given type, that is older than the delay. If all data is more recent than the delay, the oldest data is returned. If no data is present, an exception is thrown.
        Type Parameters:
        T - data type of the info type
        Parameters:
        delayedInfoType - DelayedInfoType<T>; info type
        lane - RelativeLane; lane the data pertains to, may be null
        Returns:
        info of the given type
        Throws:
        org.opentrafficsim.core.gtu.perception.PerceptionException - if info was not perceived
      • changeLane

        public final void changeLane​(org.opentrafficsim.core.network.LateralDirectionality dir)
        Deprecated.
        Move data coupled to a lane to another lane to account for a lane change. The tactical planner needs to call this exactly when it flips logic concerning the origin and target lane.
        Parameters:
        dir - LateralDirectionality; direction of lane change