public enum LateralDirectionality extends Enum<LateralDirectionality>
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-08-27 01:29:47 +0200 (Thu, 27 Aug 2015) $, @version $Revision: 1303 $, by $Author: averbraeck $,
initial version Oct 15, 2014
| Enum Constant and Description |
|---|
LEFT
Direction to the left of our current driving direction.
|
RIGHT
Direction to the right of our current driving direction.
|
| Modifier and Type | Method and Description |
|---|---|
static LateralDirectionality |
offsetDirection(double offset) |
static LateralDirectionality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LateralDirectionality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LateralDirectionality LEFT
public static final LateralDirectionality RIGHT
public static LateralDirectionality[] values()
for (LateralDirectionality c : LateralDirectionality.values()) System.out.println(c);
public static LateralDirectionality 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 static LateralDirectionality offsetDirection(double offset) throws NetworkException
offset - the offset to calculate the lateral directionality forNetworkException - when offset == 0.0 or offset == NaNCopyright © 2014–2015 Delft University of Technology. All rights reserved.