public class AnticipationDensity extends Object implements PerceptionCollectable.PerceptionCollector<org.djunits.value.vdouble.scalar.LinearDensity,org.opentrafficsim.core.gtu.GTU,AnticipationDensity.CountAndDistance>
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Class and Description |
|---|---|
static class |
AnticipationDensity.CountAndDistance
Intermediate data to determine density.
|
| Constructor and Description |
|---|
AnticipationDensity() |
| Modifier and Type | Method and Description |
|---|---|
PerceptionCollectable.PerceptionAccumulator<org.opentrafficsim.core.gtu.GTU,AnticipationDensity.CountAndDistance> |
getAccumulator()
Returns the accumulator.
|
PerceptionCollectable.PerceptionFinalizer<org.djunits.value.vdouble.scalar.LinearDensity,AnticipationDensity.CountAndDistance> |
getFinalizer()
Returns the finalizer.
|
Supplier<AnticipationDensity.CountAndDistance> |
getIdentity()
Returns the identity value, the initial intermediate value.
|
public Supplier<AnticipationDensity.CountAndDistance> getIdentity()
getIdentity in interface PerceptionCollectable.PerceptionCollector<org.djunits.value.vdouble.scalar.LinearDensity,org.opentrafficsim.core.gtu.GTU,AnticipationDensity.CountAndDistance>public PerceptionCollectable.PerceptionAccumulator<org.opentrafficsim.core.gtu.GTU,AnticipationDensity.CountAndDistance> getAccumulator()
getAccumulator in interface PerceptionCollectable.PerceptionCollector<org.djunits.value.vdouble.scalar.LinearDensity,org.opentrafficsim.core.gtu.GTU,AnticipationDensity.CountAndDistance>public PerceptionCollectable.PerceptionFinalizer<org.djunits.value.vdouble.scalar.LinearDensity,AnticipationDensity.CountAndDistance> getFinalizer()
getFinalizer in interface PerceptionCollectable.PerceptionCollector<org.djunits.value.vdouble.scalar.LinearDensity,org.opentrafficsim.core.gtu.GTU,AnticipationDensity.CountAndDistance>Copyright © 2014–2018 Delft University of Technology. All rights reserved.