public class SimpleOperationalPlan extends Object implements Serializable
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
SimpleOperationalPlan(org.djunits.value.vdouble.scalar.Acceleration acceleration) |
SimpleOperationalPlan(org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.opentrafficsim.core.network.LateralDirectionality laneChangeDirection) |
Modifier and Type | Method and Description |
---|---|
org.djunits.value.vdouble.scalar.Acceleration |
getAcceleration() |
org.opentrafficsim.core.network.LateralDirectionality |
getLaneChangeDirection() |
void |
minimumAcceleration(org.djunits.value.vdouble.scalar.Acceleration a)
Set minimum of current and given acceleration.
|
String |
toString() |
public SimpleOperationalPlan(org.djunits.value.vdouble.scalar.Acceleration acceleration)
acceleration
- accelerationpublic SimpleOperationalPlan(org.djunits.value.vdouble.scalar.Acceleration acceleration, org.opentrafficsim.core.network.LateralDirectionality laneChangeDirection)
acceleration
- accelerationlaneChangeDirection
- lane change direction, may be null
.public final org.djunits.value.vdouble.scalar.Acceleration getAcceleration()
public final org.opentrafficsim.core.network.LateralDirectionality getLaneChangeDirection()
null
if no lane change.public final void minimumAcceleration(org.djunits.value.vdouble.scalar.Acceleration a)
a
- acceleration to set if lower than current accelerationCopyright © 2014–2016 Delft University of Technology. All rights reserved.