Class AnticipationDensity.CountAndDistance
java.lang.Object
org.opentrafficsim.road.gtu.perception.categories.AnticipationDensity.CountAndDistance
- Enclosing class:
- AnticipationDensity
Intermediate data to determine density.
Copyright (c) 2013-2026 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
Modifier and TypeMethodDescriptionintgetCount()Returns count.org.djunits.value.vdouble.scalar.LengthReturns distance.voidIncreases the GTU count by 1.voidsetDistance(org.djunits.value.vdouble.scalar.Length distance) Sets distance.
-
Constructor Details
-
CountAndDistance
public CountAndDistance()Constructor.
-
-
Method Details
-
getCount
public int getCount()Returns count.- Returns:
- count.
-
increaseCount
public void increaseCount()Increases the GTU count by 1. -
getDistance
public org.djunits.value.vdouble.scalar.Length getDistance()Returns distance.- Returns:
- distance.
-
setDistance
public void setDistance(org.djunits.value.vdouble.scalar.Length distance) Sets distance.- Parameters:
distance- set distance.
-