public interface HeadwayGtuType
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.
| Modifier and Type | Interface and Description |
|---|---|
static class |
HeadwayGtuType.PerceivedHeadwayGtuType
Class for perceived neighbors.
|
| Modifier and Type | Field and Description |
|---|---|
static HeadwayGtuType |
COPY
Info regarding the GTU is copied.
|
static HeadwayGtuType |
WRAP
The GTU is wrapped, and info is taken directly from it.
|
| Modifier and Type | Method and Description |
|---|---|
HeadwayGTU |
createHeadwayGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length distance,
boolean downstream)
Creates a headway object from a GTU, downstream or upstream.
|
HeadwayGTU |
createHeadwayGtu(LaneBasedGTU perceivingGtu,
LaneBasedGTU perceivedGtu,
Length overlapFront,
Length overlap,
Length overlapRear)
Creates a headway object from a GTU, parallel.
|
static final HeadwayGtuType WRAP
static final HeadwayGtuType COPY
HeadwayGTU createHeadwayGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length distance, boolean downstream) throws GTUException, ParameterException
perceivingGtu - perceiving GTUperceivedGtu - perceived GTUdistance - distancedownstream - downstream (or upstream) neighborGTUException - when headway object cannot be createdParameterException - on invalid parameter value or missing parameterHeadwayGTU createHeadwayGtu(LaneBasedGTU perceivingGtu, LaneBasedGTU perceivedGtu, Length overlapFront, Length overlap, Length overlapRear) throws GTUException
perceivingGtu - perceiving GTUperceivedGtu - perceived GTUoverlapFront - front overlapoverlap - overlapoverlapRear - rear overlapGTUException - when headway object cannot be createdCopyright © 2014–2018 Delft University of Technology. All rights reserved.