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
public class SpaceTimeRegion<L extends LaneData> extends Object
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)LengthgetEndPosition()Returns the end position.TimegetEndTime()Returns the end time.LgetLane()Returns the lane.LengthgetStartPosition()Returns the start position.TimegetStartTime()Returns the start time.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
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 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.
-
-