Package org.opentrafficsim.kpi.sampling
Class SpaceTimeRegion
- java.lang.Object
-
- org.opentrafficsim.kpi.sampling.SpaceTimeRegion
-
public class SpaceTimeRegion extends Object
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Sep 22, 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description SpaceTimeRegion(KpiLaneDirection laneDirection, Length startPosition, Length endPosition, Time startTime, Time endTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Length
getEndPosition()
Time
getEndTime()
KpiLaneDirection
getLaneDirection()
Length
getStartPosition()
Time
getStartTime()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
SpaceTimeRegion
public SpaceTimeRegion(KpiLaneDirection laneDirection, Length startPosition, Length endPosition, Time startTime, Time endTime)
- Parameters:
laneDirection
- KpiLaneDirection; lane directionstartPosition
- Length; start positionendPosition
- Length; end positionstartTime
- Time; start timeendTime
- 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.
-
-