ServiceType enum
The type of service of a train.
Constructors
- ServiceType(String value)
-
const
Values
- noPassengers → const ServiceType
-
This is a non-revenue train with no passengers on board.
Note that this designation of noPassengers does not necessarily correlate with PIDS "No Passengers". As of 08/22/2016, this functionality has been reinstated to include all non-revenue vehicles, with minor exceptions.
const ServiceType(ApiFields.noPassengers)
- normal → const ServiceType
-
This is a normal revenue service train.
const ServiceType(ApiFields.normal)
- special → const ServiceType
-
This is a special revenue service train with an unspecified line and destination.
This is more prevalent during scheduled track work.
const ServiceType(ApiFields.special)
- unknown → const ServiceType
-
This often denotes cases with unknown data or work vehicles.
const ServiceType(ApiFields.unknown)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The string representation of this ServiceType.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromString(
String value) → ServiceType -
Get a ServiceType from a given string
value
.
Constants
-
values
→ const List<
ServiceType> - A constant List of the values in this enum, in order of their declaration.