public class SimpleOperationalPlan extends Object implements Serializable
Copyright (c) 2013-2017 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.gtu.TurnIndicatorIntent |
getIndicatorIntent() |
org.opentrafficsim.core.network.LateralDirectionality |
getLaneChangeDirection() |
boolean |
isLaneChange() |
void |
minimizeAcceleration(org.djunits.value.vdouble.scalar.Acceleration a)
Set minimum of current and given acceleration.
|
void |
setIndicatorIntentLeft()
Set left indicator intent.
|
void |
setIndicatorIntentLeft(org.djunits.value.vdouble.scalar.Length distance)
Set left indicator intent.
|
void |
setIndicatorIntentRight()
Set right indicator intent.
|
void |
setIndicatorIntentRight(org.djunits.value.vdouble.scalar.Length distance)
Set right indicator intent.
|
void |
setTurnIndicator(org.opentrafficsim.core.gtu.GTU gtu) |
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 boolean isLaneChange()
public final org.opentrafficsim.core.network.LateralDirectionality getLaneChangeDirection()
public final void minimizeAcceleration(org.djunits.value.vdouble.scalar.Acceleration a)
a
- acceleration to set if lower than current accelerationpublic final org.opentrafficsim.core.gtu.TurnIndicatorIntent getIndicatorIntent()
public final void setIndicatorIntentLeft()
public final void setIndicatorIntentRight()
public final void setIndicatorIntentLeft(org.djunits.value.vdouble.scalar.Length distance)
distance
- distance to object pertaining to the turn indicator intentpublic final void setIndicatorIntentRight(org.djunits.value.vdouble.scalar.Length distance)
distance
- distance to object pertaining to the turn indicator intentpublic void setTurnIndicator(org.opentrafficsim.core.gtu.GTU gtu) throws org.opentrafficsim.core.gtu.GTUException
gtu
- GTU to set the indicator onorg.opentrafficsim.core.gtu.GTUException
- if GTU does not support the indicatorCopyright © 2014–2017 Delft University of Technology. All rights reserved.