public class LaneBasedOperationalPlan
extends org.opentrafficsim.core.gtu.plan.operational.OperationalPlan
 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.
 
org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.AccelerationSegment, org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.Segment, org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.SpeedSegment| Constructor and Description | 
|---|
LaneBasedOperationalPlan(LaneBasedGTU gtu,
                        nl.tudelft.simulation.language.d3.DirectedPoint waitPoint,
                        org.djunits.value.vdouble.scalar.Time startTime,
                        org.djunits.value.vdouble.scalar.Duration duration,
                        Lane referenceLane)
Build a plan where the GTU will wait for a certain time. 
 | 
LaneBasedOperationalPlan(LaneBasedGTU gtu,
                        org.opentrafficsim.core.geometry.OTSLine3D path,
                        org.djunits.value.vdouble.scalar.Time startTime,
                        org.djunits.value.vdouble.scalar.Speed startSpeed,
                        List<org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.Segment> operationalPlanSegmentList,
                        List<Lane> referenceLaneList)
Construct an operational plan without a lane change. 
 | 
LaneBasedOperationalPlan(LaneBasedGTU gtu,
                        org.opentrafficsim.core.geometry.OTSLine3D path,
                        org.djunits.value.vdouble.scalar.Time startTime,
                        org.djunits.value.vdouble.scalar.Speed startSpeed,
                        List<org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.Segment> operationalPlanSegmentList,
                        List<Lane> fromLaneList,
                        List<Lane> toLaneList,
                        int lastLaneIndex,
                        double lastFractionalPosition)
Construct an operational plan with a lane change. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
getLastFractionalPosition()  | 
int | 
getLastLaneIndex()  | 
Lane | 
getReferenceLane()  | 
List<Lane> | 
getReferenceLaneList()  | 
List<Lane> | 
getSecondLaneList()  | 
boolean | 
isDeviative()
Check if we deviate from the center line. 
 | 
String | 
toString() | 
equals, getAcceleration, getAcceleration, getEndLocation, getEndSpeed, getEndTime, getLocation, getLocation, getOperationalPlanSegmentList, getPath, getSpeed, getSpeed, getStartSpeed, getStartTime, getTotalDuration, getTotalLength, getTraveledDistance, getTraveledDistance, getTraveledDistanceSI, getTraveledDistanceSI, hashCode, timeAtDistancepublic LaneBasedOperationalPlan(LaneBasedGTU gtu, org.opentrafficsim.core.geometry.OTSLine3D path, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Speed startSpeed, List<org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.Segment> operationalPlanSegmentList, List<Lane> referenceLaneList) throws org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
gtu - the GTU for debugging purposespath - the path to follow from a certain time till a certain time. The path should have at least the lengthstartTime - the absolute start time when we start executing the pathstartSpeed - the GTU speed when we start executing the pathoperationalPlanSegmentList - the segments that make up the path with an acceleration, constant speed or deceleration
            profilereferenceLaneList - the list of lanes that are part of this planorg.opentrafficsim.core.gtu.plan.operational.OperationalPlanException - when the path is too short for the operationpublic LaneBasedOperationalPlan(LaneBasedGTU gtu, org.opentrafficsim.core.geometry.OTSLine3D path, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Speed startSpeed, List<org.opentrafficsim.core.gtu.plan.operational.OperationalPlan.Segment> operationalPlanSegmentList, List<Lane> fromLaneList, List<Lane> toLaneList, int lastLaneIndex, double lastFractionalPosition) throws org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
gtu - the GTU for debugging purposespath - the path to follow from a certain time till a certain time. The path should have at least the lengthstartTime - the absolute start time when we start executing the pathstartSpeed - the GTU speed when we start executing the pathoperationalPlanSegmentList - the segments that make up the path with an acceleration, constant speed or deceleration
            profilefromLaneList - the list of lanes that the gtu comes fromtoLaneList - the list of lanes that the gtu goes towardslastLaneIndex - index in lane arrays of last position in planlastFractionalPosition - fractional position of last postition in planorg.opentrafficsim.core.gtu.plan.operational.OperationalPlanException - when the path is too short for the operationpublic LaneBasedOperationalPlan(LaneBasedGTU gtu, nl.tudelft.simulation.language.d3.DirectedPoint waitPoint, org.djunits.value.vdouble.scalar.Time startTime, org.djunits.value.vdouble.scalar.Duration duration, Lane referenceLane) throws org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
gtu - the GTU for debugging purposeswaitPoint - the point at which the GTU will waitstartTime - the current time or a time in the future when the plan should startduration - the waiting timereferenceLane - the reference lane where the halting takes placeorg.opentrafficsim.core.gtu.plan.operational.OperationalPlanException - when construction of a waiting path failspublic final boolean isDeviative()
public final Lane getReferenceLane()
public final int getLastLaneIndex()
public final double getLastFractionalPosition()
public final String toString()
toString in class org.opentrafficsim.core.gtu.plan.operational.OperationalPlanCopyright © 2014–2017 Delft University of Technology. All rights reserved.