Class SpaceTimeRegion

    • Constructor Detail

      • SpaceTimeRegion

        public SpaceTimeRegion​(KpiLaneDirection laneDirection,
                               Length startPosition,
                               Length endPosition,
                               Time startTime,
                               Time endTime)
        Parameters:
        laneDirection - KpiLaneDirection; lane direction
        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

      • getLaneDirection

        public final KpiLaneDirection getLaneDirection()
        Returns:
        laneDirection.
      • getStartPosition

        public final Length getStartPosition()
        Returns:
        startPosition.
      • getEndPosition

        public final Length getEndPosition()
        Returns:
        endPosition.
      • getStartTime

        public final Time getStartTime()
        Returns:
        startTime.
      • getEndTime

        public final Time getEndTime()
        Returns:
        endTime.
      • hashCode

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

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