public class LaneBasedOperationalPlan extends OperationalPlan
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
OperationalPlan.AccelerationSegment, OperationalPlan.Segment, OperationalPlan.SpeedSegmentDRIFTING_SPEED_SI| Constructor and Description |
|---|
LaneBasedOperationalPlan(LaneBasedGTU gtu,
DirectedPoint waitPoint,
Time startTime,
Duration duration,
boolean deviative)
Build a plan where the GTU will wait for a certain time.
|
LaneBasedOperationalPlan(LaneBasedGTU gtu,
OTSLine3D path,
Time startTime,
Speed startSpeed,
List<OperationalPlan.Segment> operationalPlanSegmentList,
boolean deviative)
Construct an operational plan with or without a lane change.
|
| Modifier and Type | Method and Description |
|---|---|
Length |
getDistanceAlongLane(LaneBasedGTU gtu,
DirectedPoint point)
Returns the distance along the reference lane that the GTU travels from the current location up to the point.
|
Length |
getTotalLengthAlongLane(LaneBasedGTU gtu)
Returns the total length along the reference lane that the GTU travels.
|
boolean |
isDeviative()
Check if we deviate from the center line.
|
String |
toString() |
equals, getAcceleration, getAcceleration, getEndLocation, getEndSpeed, getEndTime, getLocation, getLocation, getLocation, getOperationalPlanSegmentList, getPath, getSpeed, getSpeed, getStartSpeed, getStartTime, getTotalDuration, getTotalLength, getTraveledDistance, getTraveledDistance, getTraveledDistanceSI, getTraveledDistanceSI, hashCode, timeAtDistance, timeAtPointpublic LaneBasedOperationalPlan(LaneBasedGTU gtu, OTSLine3D path, Time startTime, Speed startSpeed, List<OperationalPlan.Segment> operationalPlanSegmentList, boolean deviative) throws OperationalPlanException
gtu - LaneBasedGTU; the GTU for debugging purposespath - OTSLine3D; the path to follow from a certain time till a certain time. The path should have <i>at
least</i> the lengthstartTime - Time; the absolute start time when we start executing the pathstartSpeed - Speed; the GTU speed when we start executing the pathoperationalPlanSegmentList - List<Segment>; the segments that make up the path with an acceleration, constant
speed or deceleration profiledeviative - boolean; whether the path is not along lane center linesOperationalPlanException - when the path is too short for the operationpublic LaneBasedOperationalPlan(LaneBasedGTU gtu, DirectedPoint waitPoint, Time startTime, Duration duration, boolean deviative) throws OperationalPlanException
gtu - LaneBasedGTU; the GTU for debugging purposeswaitPoint - DirectedPoint; the point at which the GTU will waitstartTime - Time; the current time or a time in the future when the plan should startduration - Duration; the waiting timedeviative - boolean; whether the path is not along lane center linesOperationalPlanException - when construction of a waiting path failspublic final boolean isDeviative()
public final Length getTotalLengthAlongLane(LaneBasedGTU gtu) throws GTUException
gtu - LaneBasedGTU; GTUGTUException - if the GTU has not reference positionpublic final Length getDistanceAlongLane(LaneBasedGTU gtu, DirectedPoint point) throws GTUException
gtu - LaneBasedGTU; GTUpoint - DirectedPoint; point where the GTU is or will beGTUException - if the GTU has not reference positionpublic final String toString()
toString in class OperationalPlanCopyright © 2014–2019 Delft University of Technology. All rights reserved.