public class AccelerationChecker extends AbstractLaneBasedMoveChecker
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.
Constructor and Description |
---|
AccelerationChecker(OTSNetwork network)
Constructor.
|
AccelerationChecker(OTSNetwork network,
Acceleration min,
Acceleration max,
Speed minSpeed)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkMove(LaneBasedGTU gtu)
Check the move of the given GTU.
|
notify
public AccelerationChecker(OTSNetwork network)
network
- OTSNetwork; networkpublic AccelerationChecker(OTSNetwork network, Acceleration min, Acceleration max, Speed minSpeed)
network
- OTSNetwork; networkmin
- Acceleration; minimum allowable accelerationmax
- Acceleration; maximum allowable accelerationminSpeed
- Speed; speed above which acceleration should be checkedpublic void checkMove(LaneBasedGTU gtu) throws Exception
checkMove
in class AbstractLaneBasedMoveChecker
gtu
- LaneBasedGTU; GTU.Exception
- thrown when something is not all rightCopyright © 2014–2019 Delft University of Technology. All rights reserved.