Package org.opentrafficsim.kpi.sampling
Class SpaceTimeRegion<L extends LaneData>
java.lang.Object
org.opentrafficsim.kpi.sampling.SpaceTimeRegion<L>
- Type Parameters:
L
- lane data type
Defines a rectangular region over space and time on a lane.
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SpaceTimeRegion
public SpaceTimeRegion(L lane, Length startPosition, Length endPosition, Time startTime, Time endTime) - Parameters:
lane
- L; lanestartPosition
- Length; start positionendPosition
- Length; end positionstartTime
- Time; start timeendTime
- Time; end time- Throws:
IllegalArgumentException
- if start time is larger than end time
-
-
Method Details
-
getLane
Returns the lane.- Returns:
- L; lane.
-
getStartPosition
Returns the start position.- Returns:
- Length; start position.
-
getEndPosition
Returns the end position.- Returns:
- Length; end position.
-
getStartTime
Returns the start time.- Returns:
- Time; start time.
-
getEndTime
Returns the end time.- Returns:
- Time end; time.
-
hashCode
public final int hashCode() -
equals
-
toString
-