public enum HeadwayGtuType extends Enum<HeadwayGtuType>
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Enum Constant and Description |
|---|
COPY
Info regarding the GTU is copied.
|
WRAP
The GTU is wrapped, and info is taken directly from it.
|
| Modifier and Type | Method and Description |
|---|---|
abstract HeadwayGTU |
createHeadwayGtu(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.Length distance)
Creates a headway object from a GTU, downstream or upstream.
|
abstract HeadwayGTU |
createHeadwayGtu(LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.Length overlapFront,
org.djunits.value.vdouble.scalar.Length overlap,
org.djunits.value.vdouble.scalar.Length overlapRear)
Creates a headway object from a GTU, parallel.
|
static HeadwayGtuType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HeadwayGtuType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HeadwayGtuType WRAP
public static final HeadwayGtuType COPY
public static HeadwayGtuType[] values()
for (HeadwayGtuType c : HeadwayGtuType.values()) System.out.println(c);
public static HeadwayGtuType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract HeadwayGTU createHeadwayGtu(LaneBasedGTU gtu, org.djunits.value.vdouble.scalar.Length distance) throws org.opentrafficsim.core.gtu.GTUException
gtu - gtudistance - distanceorg.opentrafficsim.core.gtu.GTUException - when headway object cannot be createdpublic abstract HeadwayGTU createHeadwayGtu(LaneBasedGTU gtu, org.djunits.value.vdouble.scalar.Length overlapFront, org.djunits.value.vdouble.scalar.Length overlap, org.djunits.value.vdouble.scalar.Length overlapRear) throws org.opentrafficsim.core.gtu.GTUException
gtu - gtuoverlapFront - front overlapoverlap - overlapoverlapRear - rear overlaporg.opentrafficsim.core.gtu.GTUException - when headway object cannot be createdCopyright © 2014–2017 Delft University of Technology. All rights reserved.