Class AnticipationDensity.CountAndDistance
java.lang.Object
org.opentrafficsim.road.gtu.lane.perception.categories.AnticipationDensity.CountAndDistance
- Enclosing class:
- AnticipationDensity
public static class AnticipationDensity.CountAndDistance extends Object
Intermediate data to determine density.
Copyright (c) 2013-2019 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 13 mrt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors Constructor Description CountAndDistance() -
Method Summary
Modifier and Type Method Description intgetCount()LengthgetDistance()voidincreaseCount()Increases the GTU count by 1.voidsetDistance(Length distance)
-
Constructor Details
-
CountAndDistance
public CountAndDistance()
-
-
Method Details
-
getCount
public int getCount()- Returns:
- count.
-
increaseCount
public void increaseCount()Increases the GTU count by 1. -
getDistance
- Returns:
- distance.
-
setDistance
- Parameters:
distance- Length; set distance.
-