public enum LateralDirectionality extends Enum<LateralDirectionality>
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.
$LastChangedDate: 2017-04-28 03:35:59 +0200 (Fri, 28 Apr 2017) $, @version $Revision: 3569 $, by $Author: averbraeck $,
initial version Oct 15, 2014
| Enum Constant and Description |
|---|
LEFT
Direction to the left of the longitudinal orientation of the GTU, relative to the forward driving direction.
|
NONE
Absence of a lateral direction.
|
RIGHT
Direction to the right of the longitudinal orientation of the GTU, relative to the forward driving direction.
|
| Modifier and Type | Method and Description |
|---|---|
LateralDirectionality |
flip()
Returns the other direction.
|
boolean |
isLeft()
Determine whether the direction is the left direction.
|
boolean |
isNone()
Determine whether the lateral direction is not present.
|
boolean |
isRight()
Determine whether the direction is the right direction.
|
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 final LateralDirectionality NONE
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 boolean isLeft()
public boolean isRight()
public boolean isNone()
public LateralDirectionality flip()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.