Class SpaceTimeRegion<L extends LaneData>

    • Constructor Detail

      • SpaceTimeRegion

        public SpaceTimeRegion​(L lane,
                               Length startPosition,
                               Length endPosition,
                               Time startTime,
                               Time endTime)
        Parameters:
        lane - L; lane
        startPosition - Length; start position
        endPosition - Length; end position
        startTime - Time; start time
        endTime - Time; end time
        Throws:
        IllegalArgumentException - if start time is larger than end time
    • Method Detail

      • getLane

        public final L getLane()
        Returns the lane.
        Returns:
        L; lane.
      • getStartPosition

        public final Length getStartPosition()
        Returns the start position.
        Returns:
        Length; start position.
      • getEndPosition

        public final Length getEndPosition()
        Returns the end position.
        Returns:
        Length; end position.
      • getStartTime

        public final Time getStartTime()
        Returns the start time.
        Returns:
        Time; start time.
      • getEndTime

        public final Time getEndTime()
        Returns the end time.
        Returns:
        Time end; time.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object