public enum GTUDirectionality extends Enum<GTUDirectionality>
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: 2015-11-11 13:25:26 +0100 (Wed, 11 Nov 2015) $, @version $Revision: 1548 $, by $Author: averbraeck $,
initial version Nov 11, 2015
Enum Constant and Description |
---|
DIR_MINUS
Driving direction opposite to the direction of the graph, decreasing fractional position when driving in this direction.
|
DIR_PLUS
Driving direction matches the direction of the graph, increasing fractional position when driving in this direction.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMinus() |
boolean |
isPlus() |
static GTUDirectionality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GTUDirectionality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GTUDirectionality DIR_PLUS
public static final GTUDirectionality DIR_MINUS
public static GTUDirectionality[] values()
for (GTUDirectionality c : GTUDirectionality.values()) System.out.println(c);
public static GTUDirectionality 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 isPlus()
public boolean isMinus()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.