org.onebusaway.transit_data_federation.services
Enum StopTimeService.EFrequencyStopTimeBehavior

java.lang.Object
  extended by java.lang.Enum<StopTimeService.EFrequencyStopTimeBehavior>
      extended by org.onebusaway.transit_data_federation.services.StopTimeService.EFrequencyStopTimeBehavior
All Implemented Interfaces:
Serializable, Comparable<StopTimeService.EFrequencyStopTimeBehavior>
Enclosing interface:
StopTimeService

public static enum StopTimeService.EFrequencyStopTimeBehavior
extends Enum<StopTimeService.EFrequencyStopTimeBehavior>

When calculating frequency-based stop times, we have a couple different options when return results


Enum Constant Summary
INCLUDE_INTERPOLATED
          Interpolate out all the stop-times in a frequency interval, including both frequency information AND a frequency offset so that the stop time has an actual arrival and departure time set.
INCLUDE_UNSPECIFIED
          Include a stop time with the frequency information set but no frequency offset set.
 
Method Summary
static StopTimeService.EFrequencyStopTimeBehavior valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StopTimeService.EFrequencyStopTimeBehavior[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INCLUDE_UNSPECIFIED

public static final StopTimeService.EFrequencyStopTimeBehavior INCLUDE_UNSPECIFIED
Include a stop time with the frequency information set but no frequency offset set.


INCLUDE_INTERPOLATED

public static final StopTimeService.EFrequencyStopTimeBehavior INCLUDE_INTERPOLATED
Interpolate out all the stop-times in a frequency interval, including both frequency information AND a frequency offset so that the stop time has an actual arrival and departure time set. An interpolated stop time that would be included in the time interval will be included.

Method Detail

values

public static StopTimeService.EFrequencyStopTimeBehavior[] 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 (StopTimeService.EFrequencyStopTimeBehavior c : StopTimeService.EFrequencyStopTimeBehavior.values())
    System.out.println(c);

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

valueOf

public static StopTimeService.EFrequencyStopTimeBehavior 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


Copyright © 2011 OneBusAway. All Rights Reserved.