public class AnticipationSpeed extends Object implements PerceptionCollectable.PerceptionCollector<AnticipationSpeed.SpeedSet,LaneBasedGTU,AnticipationSpeed.SpeedSet>
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
AnticipationSpeed.SpeedSet
Class to contain info from 1 lane, regarding 3 lanes.
|
| Constructor and Description |
|---|
AnticipationSpeed(Speed desiredSpeed,
Length lookAhead,
RelativeLane lane)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PerceptionCollectable.PerceptionAccumulator<LaneBasedGTU,AnticipationSpeed.SpeedSet> |
getAccumulator()
Returns the accumulator.
|
PerceptionCollectable.PerceptionFinalizer<AnticipationSpeed.SpeedSet,AnticipationSpeed.SpeedSet> |
getFinalizer()
Returns the finalizer.
|
Supplier<AnticipationSpeed.SpeedSet> |
getIdentity()
Returns the identity value, the initial intermediate value.
|
public AnticipationSpeed(Speed desiredSpeed, Length lookAhead, RelativeLane lane)
desiredSpeed - Speed; desired speedlookAhead - Length; look-ahead distancelane - RelativeLane; lanepublic Supplier<AnticipationSpeed.SpeedSet> getIdentity()
getIdentity in interface PerceptionCollectable.PerceptionCollector<AnticipationSpeed.SpeedSet,LaneBasedGTU,AnticipationSpeed.SpeedSet>public PerceptionCollectable.PerceptionAccumulator<LaneBasedGTU,AnticipationSpeed.SpeedSet> getAccumulator()
getAccumulator in interface PerceptionCollectable.PerceptionCollector<AnticipationSpeed.SpeedSet,LaneBasedGTU,AnticipationSpeed.SpeedSet>public PerceptionCollectable.PerceptionFinalizer<AnticipationSpeed.SpeedSet,AnticipationSpeed.SpeedSet> getFinalizer()
getFinalizer in interface PerceptionCollectable.PerceptionCollector<AnticipationSpeed.SpeedSet,LaneBasedGTU,AnticipationSpeed.SpeedSet>Copyright © 2014–2019 Delft University of Technology. All rights reserved.