public static enum RollingLaneStructureRecord.RecordLink extends Enum<RollingLaneStructureRecord.RecordLink>
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 |
|---|
CROSS
Part of the current cross-section.
|
DOWN
This record is downstream of the start distance source.
|
LATERAL_END
This record is laterally adjacent to the start distance source, and found in an upstream search.
|
LATERAL_START
This record is laterally adjacent to the start distance source, and found in a downstream search.
|
UP
This record is upstream of the start distance source.
|
| Modifier and Type | Method and Description |
|---|---|
abstract org.djunits.value.vdouble.scalar.Length |
calculateStartDistance(RollingLaneStructureRecord startDistanceSource,
RollingLaneStructureRecord self,
double fractionalPosition)
Calculate the start position of this record based on a neighboring source.
|
static RollingLaneStructureRecord.RecordLink |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RollingLaneStructureRecord.RecordLink[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RollingLaneStructureRecord.RecordLink UP
public static final RollingLaneStructureRecord.RecordLink DOWN
public static final RollingLaneStructureRecord.RecordLink LATERAL_END
public static final RollingLaneStructureRecord.RecordLink LATERAL_START
public static final RollingLaneStructureRecord.RecordLink CROSS
public static RollingLaneStructureRecord.RecordLink[] values()
for (RollingLaneStructureRecord.RecordLink c : RollingLaneStructureRecord.RecordLink.values()) System.out.println(c);
public static RollingLaneStructureRecord.RecordLink 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 org.djunits.value.vdouble.scalar.Length calculateStartDistance(RollingLaneStructureRecord startDistanceSource, RollingLaneStructureRecord self, double fractionalPosition)
startDistanceSource - RollingLaneStructureRecord; source record in the treeself - RollingLaneStructureRecord; own recordfractionalPosition - double; fractional position on the cross-sectionCopyright © 2014–2018 Delft University of Technology. All rights reserved.