com.azalient.api.b.trips
Enum Strand

java.lang.Object
  extended by java.lang.Enum<Strand>
      extended by com.azalient.api.b.trips.Strand
All Implemented Interfaces:
Serializable, Comparable<Strand>

public enum Strand
extends Enum<Strand>

The strands of DNA in each trip. Each strand holds a number taken from a distribution.


Enum Constant Summary
AGGRESSION
           
API_G_01
           
API_G_02
           
API_G_03
           
API_G_04
           
API_G_05
           
API_U_01
           
API_U_02
           
API_U_03
           
API_U_04
           
API_U_05
           
API_U_06
           
API_U_07
           
API_U_08
           
AWARENESS
           
DISTANCE_G
           
DISTANCE_U
           
HEIGHT
           
LANE_CHOOSER
           
LENGTH
           
OFF_NETWORK
           
PARKING_BAYS
           
PARKING_DIVISION
           
PATIENCE
           
RESERVED_G_01
           
RESERVED_G_02
           
RESERVED_G_03
           
RESERVED_G_04
           
RESERVED_U_01
           
RESERVED_U_02
           
RESERVED_U_03
           
RESERVED_U_04
           
ROUTE_CHOOSER_COURSE
           
ROUTE_CHOOSER_DEST
           
ROUTE_CHOOSER_E
           
ROUTE_CHOOSER_N
           
ROUTE_CHOOSER_S
           
ROUTE_CHOOSER_SERVICE
           
ROUTE_CHOOSER_W
           
ROUTE_FIRST_TWIG
           
SHAPE
           
SPACE
           
SPEED
           
TIME_G
           
TIME_U
           
TRANSPORT_ALIGHTING
           
TRANSPORT_BOARDING
           
WEIGHT
           
WIDTH
           
 
Method Summary
 boolean active(TripMode mode)
          Returns true if this Strand is active in the given mode.
static Strand directionStrand(IAngle a)
           
 boolean isGaussian()
          Returns true if this strand holds numbers from a Gaussian distribution, false if it is a uniform distribution
static Strand routePerturbationStrand(int exitIndex)
          Return a strand based on the exit number.
static Strand valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Strand[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LENGTH

public static final Strand LENGTH

WIDTH

public static final Strand WIDTH

HEIGHT

public static final Strand HEIGHT

WEIGHT

public static final Strand WEIGHT

SPEED

public static final Strand SPEED

SPACE

public static final Strand SPACE

SHAPE

public static final Strand SHAPE

ROUTE_CHOOSER_SERVICE

public static final Strand ROUTE_CHOOSER_SERVICE

ROUTE_CHOOSER_DEST

public static final Strand ROUTE_CHOOSER_DEST

ROUTE_CHOOSER_COURSE

public static final Strand ROUTE_CHOOSER_COURSE

ROUTE_CHOOSER_N

public static final Strand ROUTE_CHOOSER_N

ROUTE_CHOOSER_E

public static final Strand ROUTE_CHOOSER_E

ROUTE_CHOOSER_S

public static final Strand ROUTE_CHOOSER_S

ROUTE_CHOOSER_W

public static final Strand ROUTE_CHOOSER_W

ROUTE_FIRST_TWIG

public static final Strand ROUTE_FIRST_TWIG

LANE_CHOOSER

public static final Strand LANE_CHOOSER

TRANSPORT_ALIGHTING

public static final Strand TRANSPORT_ALIGHTING

TRANSPORT_BOARDING

public static final Strand TRANSPORT_BOARDING

PARKING_BAYS

public static final Strand PARKING_BAYS

PARKING_DIVISION

public static final Strand PARKING_DIVISION

OFF_NETWORK

public static final Strand OFF_NETWORK

DISTANCE_G

public static final Strand DISTANCE_G

TIME_G

public static final Strand TIME_G

DISTANCE_U

public static final Strand DISTANCE_U

TIME_U

public static final Strand TIME_U

RESERVED_U_01

public static final Strand RESERVED_U_01

RESERVED_U_02

public static final Strand RESERVED_U_02

RESERVED_U_03

public static final Strand RESERVED_U_03

RESERVED_U_04

public static final Strand RESERVED_U_04

RESERVED_G_01

public static final Strand RESERVED_G_01

RESERVED_G_02

public static final Strand RESERVED_G_02

RESERVED_G_03

public static final Strand RESERVED_G_03

RESERVED_G_04

public static final Strand RESERVED_G_04

API_U_01

public static final Strand API_U_01

API_U_02

public static final Strand API_U_02

API_U_03

public static final Strand API_U_03

API_U_04

public static final Strand API_U_04

API_U_05

public static final Strand API_U_05

API_U_06

public static final Strand API_U_06

API_U_07

public static final Strand API_U_07

API_U_08

public static final Strand API_U_08

API_G_01

public static final Strand API_G_01

API_G_02

public static final Strand API_G_02

API_G_03

public static final Strand API_G_03

API_G_04

public static final Strand API_G_04

API_G_05

public static final Strand API_G_05

AGGRESSION

public static final Strand AGGRESSION

AWARENESS

public static final Strand AWARENESS

PATIENCE

public static final Strand PATIENCE
Method Detail

values

public static Strand[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Strand c : Strand.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Strand valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isGaussian

public boolean isGaussian()
Returns true if this strand holds numbers from a Gaussian distribution, false if it is a uniform distribution


active

public boolean active(TripMode mode)
Returns true if this Strand is active in the given mode. For example, PARKING_BAYS strand is not active for public transport


directionStrand

public static Strand directionStrand(IAngle a)

routePerturbationStrand

public static Strand routePerturbationStrand(int exitIndex)
Return a strand based on the exit number.