public static class HeadwayGtuType.PerceivedHeadwayGtuType extends Object implements HeadwayGtuType
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.
HeadwayGtuType.PerceivedHeadwayGtuTypeCOPY, WRAP| Constructor and Description |
|---|
PerceivedHeadwayGtuType(Estimation estimation,
Anticipation anticipation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HeadwayGTU |
createDownstreamGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length distance)
Creates a headway object from a GTU, downstream.
|
HeadwayGTU |
createHeadwayGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length distance,
boolean downstream)
Creates a headway object from a GTU, downstream or upstream.
|
HeadwayGTU |
createParallelGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length overlapFront,
Length overlap,
Length overlapRear)
Creates a headway object from a GTU, parallel.
|
HeadwayGTU |
createUpstreamGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length distance)
Creates a headway object from a GTU, downstream.
|
public PerceivedHeadwayGtuType(Estimation estimation, Anticipation anticipation)
estimation - Estimation; estimationanticipation - Anticipation; anticipationpublic HeadwayGTU createHeadwayGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance, boolean downstream) throws GTUException, ParameterException
createHeadwayGtu in interface HeadwayGtuTypeperceivingGtu - LaneBasedGTU; perceiving GTUperceivedGtu - LaneBasedGTU; perceived GTUdistance - Length; distancedownstream - boolean; downstream (or upstream) neighborGTUException - when headway object cannot be createdParameterException - on invalid parameter value or missing parameterpublic HeadwayGTU createDownstreamGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance) throws GTUException, ParameterException
createDownstreamGtu in interface HeadwayGtuTypeperceivingGtu - LaneBasedGTU; perceiving GTUperceivedGtu - LaneBasedGTU; perceived GTUdistance - Length; distanceGTUException - when headway object cannot be createdParameterException - on invalid parameter value or missing parameterpublic HeadwayGTU createUpstreamGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance) throws GTUException, ParameterException
createUpstreamGtu in interface HeadwayGtuTypeperceivingGtu - LaneBasedGTU; perceiving GTUperceivedGtu - LaneBasedGTU; perceived GTUdistance - Length; distanceGTUException - when headway object cannot be createdParameterException - on invalid parameter value or missing parameterpublic HeadwayGTU createParallelGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length overlapFront, Length overlap, Length overlapRear) throws GTUException
createParallelGtu in interface HeadwayGtuTypeperceivingGtu - LaneBasedGTU; perceiving GTUperceivedGtu - LaneBasedGTU; perceived GTUoverlapFront - Length; front overlapoverlap - Length; overlapoverlapRear - Length; rear overlapGTUException - when headway object cannot be createdCopyright © 2014–2019 Delft University of Technology. All rights reserved.