Class AbstractPerceptionCategory<G extends GTU,​P extends Perception<G>>

    • Constructor Detail

      • AbstractPerceptionCategory

        public AbstractPerceptionCategory​(P perception)
        Constructor setting the perception.
        Parameters:
        perception - P; perception
    • Method Detail

      • getPerception

        public P getPerception()
        Returns the connected perception.
        Returns:
        connected perception
      • getGtu

        public G getGtu()
                 throws GTUException
        Returns the connected GTU.
        Returns:
        connected GTU
        Throws:
        GTUException - if the GTU has not been initialized
      • getTimestamp

        public final Time getTimestamp()
                                throws GTUException
        Returns the current time.
        Returns:
        current time
        Throws:
        GTUException - if the GTU has not been initialized
      • getObjectOrNull

        protected final <T> T getObjectOrNull​(TimeStampedObject<T> object)
        Returns the object inside a time stamped object, or null if it's null.
        Type Parameters:
        T - type of time stamped object
        Parameters:
        object - TimeStampedObject<T>; time stamped object
        Returns:
        the object inside a time stamped object, or null if it's null