public class SimpleOperationalPlan extends Object implements Serializable
 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.
 
| Constructor and Description | 
|---|
SimpleOperationalPlan(org.djunits.value.vdouble.scalar.Acceleration acceleration,
                     org.djunits.value.vdouble.scalar.Duration duration)  | 
SimpleOperationalPlan(org.djunits.value.vdouble.scalar.Acceleration acceleration,
                     org.djunits.value.vdouble.scalar.Duration duration,
                     org.opentrafficsim.core.network.LateralDirectionality laneChangeDirection)  | 
| Modifier and Type | Method and Description | 
|---|---|
org.djunits.value.vdouble.scalar.Acceleration | 
getAcceleration()  | 
org.djunits.value.vdouble.scalar.Duration | 
getDuration()  | 
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(LaneBasedGTU gtu)  | 
String | 
toString() | 
public SimpleOperationalPlan(org.djunits.value.vdouble.scalar.Acceleration acceleration,
                             org.djunits.value.vdouble.scalar.Duration duration)
acceleration - accelerationduration - durationpublic SimpleOperationalPlan(org.djunits.value.vdouble.scalar.Acceleration acceleration,
                             org.djunits.value.vdouble.scalar.Duration duration,
                             org.opentrafficsim.core.network.LateralDirectionality laneChangeDirection)
acceleration - accelerationduration - durationlaneChangeDirection - lane change direction, may be null.public final org.djunits.value.vdouble.scalar.Acceleration getAcceleration()
public org.djunits.value.vdouble.scalar.Duration getDuration()
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 final void setTurnIndicator(LaneBasedGTU gtu) throws org.opentrafficsim.core.gtu.GTUException
gtu - LaneBasedGTU to set the indicator onorg.opentrafficsim.core.gtu.GTUException - if GTU does not support the indicatorCopyright © 2014–2018 Delft University of Technology. All rights reserved.