Package org.opentrafficsim.kpi.sampling
Class SpaceTimeRegion
- java.lang.Object
-
- org.opentrafficsim.kpi.sampling.SpaceTimeRegion
-
public class SpaceTimeRegion extends java.lang.ObjectCopyright (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 booleanequals(java.lang.Object obj)LengthgetEndPosition()TimegetEndTime()KpiLaneDirectiongetLaneDirection()LengthgetStartPosition()TimegetStartTime()inthashCode()java.lang.StringtoString()
-
-
-
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:
java.lang.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:
hashCodein classjava.lang.Object
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-