public final class OperationalPlanBuilder extends Object
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Method and Description |
|---|---|
static OperationalPlan |
buildConstantSpeedPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time.Abs startTime,
org.djunits.value.vdouble.scalar.Speed speed)
Build a plan with a path and a given speed.
|
static OperationalPlan |
buildGradualAccelerationPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time.Abs startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.Speed endSpeed)
Build a plan with a path and a given start speed to reach a provided end speed, exactly at the end of the curve.
|
static OperationalPlan |
buildGradualAccelerationPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time.Abs startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.Speed endSpeed,
org.djunits.value.vdouble.scalar.Acceleration maxAcceleration,
org.djunits.value.vdouble.scalar.Acceleration maxDeceleration)
Build a plan with a path and a given start speed to try to reach a provided end speed, exactly at the end of the curve.
|
static OperationalPlan |
buildMaximumAccelerationPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time.Abs startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.Speed endSpeed,
org.djunits.value.vdouble.scalar.Acceleration acceleration,
org.djunits.value.vdouble.scalar.Acceleration deceleration)
Build a plan with a path and a given start speed to try to reach a provided end speed.
|
static OperationalPlan |
buildStopPlan(GTU gtu,
OTSLine3D path,
org.djunits.value.vdouble.scalar.Time.Abs startTime,
org.djunits.value.vdouble.scalar.Speed startSpeed,
org.djunits.value.vdouble.scalar.Acceleration deceleration)
Build a plan with a path and a given start speed to try to come to a stop with a given deceleration.
|
static void |
main(String[] args)
Test.
|
public static OperationalPlan buildConstantSpeedPlan(GTU gtu, OTSLine3D path, org.djunits.value.vdouble.scalar.Time.Abs startTime, org.djunits.value.vdouble.scalar.Speed speed) throws OperationalPlanException
gtu - the GTU for debugging purposespath - the path to drive (provides the length)startTime - the current time or a time in the future when the plan should startspeed - the speed at the start of the pathOperationalPlanException - when the length of the path and the calculated driven distance implied by the
constructed segment list differ more than a given thresholdpublic static OperationalPlan buildGradualAccelerationPlan(GTU gtu, OTSLine3D path, org.djunits.value.vdouble.scalar.Time.Abs startTime, org.djunits.value.vdouble.scalar.Speed startSpeed, org.djunits.value.vdouble.scalar.Speed endSpeed, org.djunits.value.vdouble.scalar.Acceleration maxAcceleration, org.djunits.value.vdouble.scalar.Acceleration maxDeceleration) throws OperationalPlanException
gtu - the GTU for debugging purposespath - the path to drive (provides the length)startTime - the current time or a time in the future when the plan should startstartSpeed - the speed at the start of the pathendSpeed - the required end speedmaxAcceleration - the maximum acceleration that can be applied, provided as a POSITIVE numbermaxDeceleration - the maximum deceleration that can be applied, provided as a NEGATIVE numberOperationalPlanException - when the length of the path and the calculated driven distance implied by the
constructed segment list differ more than a given thresholdpublic static OperationalPlan buildGradualAccelerationPlan(GTU gtu, OTSLine3D path, org.djunits.value.vdouble.scalar.Time.Abs startTime, org.djunits.value.vdouble.scalar.Speed startSpeed, org.djunits.value.vdouble.scalar.Speed endSpeed) throws OperationalPlanException
gtu - the GTU for debugging purposespath - the path to drive (provides the length)startTime - the current time or a time in the future when the plan should startstartSpeed - the speed at the start of the pathendSpeed - the required end speedOperationalPlanException - when the length of the path and the calculated driven distance implied by the
constructed segment list differ more than a given thresholdpublic static OperationalPlan buildMaximumAccelerationPlan(GTU gtu, OTSLine3D path, org.djunits.value.vdouble.scalar.Time.Abs startTime, org.djunits.value.vdouble.scalar.Speed startSpeed, org.djunits.value.vdouble.scalar.Speed endSpeed, org.djunits.value.vdouble.scalar.Acceleration acceleration, org.djunits.value.vdouble.scalar.Acceleration deceleration) throws OperationalPlanException
gtu - the GTU for debugging purposespath - the path to drive (provides the length)startTime - the current time or a time in the future when the plan should startstartSpeed - the speed at the start of the pathendSpeed - the required end speedacceleration - the acceleration to use if endSpeed > startSpeed, provided as a POSITIVE numberdeceleration - the deceleration to use if endSpeed < startSpeed, provided as a NEGATIVE numberOperationalPlanException - when the length of the path and the calculated driven distance implied by the
constructed segment list differ more than a given thresholdpublic static OperationalPlan buildStopPlan(GTU gtu, OTSLine3D path, org.djunits.value.vdouble.scalar.Time.Abs startTime, org.djunits.value.vdouble.scalar.Speed startSpeed, org.djunits.value.vdouble.scalar.Acceleration deceleration) throws OperationalPlanException
gtu - the GTU for debugging purposespath - the path to drive (provides the length)startTime - the current time or a time in the future when the plan should startstartSpeed - the speed at the start of the pathdeceleration - the deceleration to use if endSpeed < startSpeed, provided as a NEGATIVE numberOperationalPlanException - when the length of the path and the calculated driven distance implied by the
constructed segment list differ more than a given thresholdpublic static void main(String[] args) throws OperationalPlanException, OTSGeometryException
args - args for mainOperationalPlanException - on errorOTSGeometryException - on errorCopyright © 2014–2016 Delft University of Technology. All rights reserved.