Module org.arakhne.afc.gis.gisbus
Package org.arakhne.afc.gis.bus.network
Enum BusPrimitiveInvalidityType
- java.lang.Object
-
- java.lang.Enum<BusPrimitiveInvalidityType>
-
- org.arakhne.afc.gis.bus.network.BusPrimitiveInvalidityType
-
- All Implemented Interfaces:
Serializable
,Comparable<BusPrimitiveInvalidityType>
public enum BusPrimitiveInvalidityType extends Enum<BusPrimitiveInvalidityType>
Describes all the possible reasons of the invalidity of a bus primitive.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:56
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- gisbus
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCONTINUOUS_PATH_IN_ITINERARY
The bus itinerary has a discontinuous path.GENERIC_ERROR
This is a generic error.HALT_NOT_IN_ITINERARY
A bus itinerary halt is not inside an bus itinerary.HALT_NOT_ON_ROAD_SEGMENT
The bus itinerary halt is not mapped to a road segment.INVALID_CURVILINE_POSITION
Invalid curviline position of the bus halt.INVALID_HALT_IN_ITINERARY
The bus itinerary contains an invalid halt.INVALID_HALT_ORDER
The order of the bus halts is valid.INVALID_HUB_IN_NETWORK
Invalid hub in the bus network.INVALID_ITINERARY_IN_LINE
Invalid bus itinerary in the bus line.INVALID_LINE_IN_NETWORK
Invalid bus line in the bus network.INVALID_LINKED_STOP
Associated bus stop is invalid.INVALID_STOP_IN_NETWORK
Invalid stop in the bus network.NO_BUS_NETWORK
The primitive is not inside a bus network.NO_ITINERARY_IN_LINE
No bus itinerary in a bus line.NO_LINE_IN_NETWORK
No bus line in a bus network.NO_ROAD_NETWORK
The bus network is not linked to a road network.NO_ROAD_SEGMENT_IN_ITINERARY
No road segment attached to the itinerary.NO_STOP_IN_HALT
No bus stop associated to a bus halt.NO_STOP_IN_HUB
No bus stop in a bus hub.NO_STOP_POSITION
The position of a bus stop is not set.NOT_ENOUGH_VALID_BUS_HALTS
Not enough valid bus halts.NOT_ENOUGH_VALID_BUS_STOPS
Not enough valid bus stops.NOT_IN_SAME_NETWORK
Two primitives are not stored inside the same bus network.OUTSIDE_MAP_BOUNDS
The stop is outside the bounds of the map.SEGMENT_OUTSIDE_ROAD_NETWORK
The segment is outside the road network linked to the bus network.STOP_NOT_IN_NETWORK
The bus stop is not inside a bus network.UNUSED_ROAD_SEGMENT_BEYOND_TERMINUS
The itinerary contains road segment unused beyond terminus halts.VALIDITY_NOT_CHECKED
The validity is not checked.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalizedMessage(String complementaryInformation)
Replies the localized message of the reason.static BusPrimitiveInvalidityType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BusPrimitiveInvalidityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALIDITY_NOT_CHECKED
public static final BusPrimitiveInvalidityType VALIDITY_NOT_CHECKED
The validity is not checked.
-
GENERIC_ERROR
public static final BusPrimitiveInvalidityType GENERIC_ERROR
This is a generic error.
-
NO_STOP_POSITION
public static final BusPrimitiveInvalidityType NO_STOP_POSITION
The position of a bus stop is not set.
-
OUTSIDE_MAP_BOUNDS
public static final BusPrimitiveInvalidityType OUTSIDE_MAP_BOUNDS
The stop is outside the bounds of the map.
-
STOP_NOT_IN_NETWORK
public static final BusPrimitiveInvalidityType STOP_NOT_IN_NETWORK
The bus stop is not inside a bus network.
-
NO_STOP_IN_HUB
public static final BusPrimitiveInvalidityType NO_STOP_IN_HUB
No bus stop in a bus hub.
-
INVALID_LINKED_STOP
public static final BusPrimitiveInvalidityType INVALID_LINKED_STOP
Associated bus stop is invalid.
-
NOT_IN_SAME_NETWORK
public static final BusPrimitiveInvalidityType NOT_IN_SAME_NETWORK
Two primitives are not stored inside the same bus network.
-
HALT_NOT_IN_ITINERARY
public static final BusPrimitiveInvalidityType HALT_NOT_IN_ITINERARY
A bus itinerary halt is not inside an bus itinerary.
-
NO_STOP_IN_HALT
public static final BusPrimitiveInvalidityType NO_STOP_IN_HALT
No bus stop associated to a bus halt.
-
HALT_NOT_ON_ROAD_SEGMENT
public static final BusPrimitiveInvalidityType HALT_NOT_ON_ROAD_SEGMENT
The bus itinerary halt is not mapped to a road segment.
-
INVALID_CURVILINE_POSITION
public static final BusPrimitiveInvalidityType INVALID_CURVILINE_POSITION
Invalid curviline position of the bus halt.
-
NO_ROAD_SEGMENT_IN_ITINERARY
public static final BusPrimitiveInvalidityType NO_ROAD_SEGMENT_IN_ITINERARY
No road segment attached to the itinerary.
-
DISCONTINUOUS_PATH_IN_ITINERARY
public static final BusPrimitiveInvalidityType DISCONTINUOUS_PATH_IN_ITINERARY
The bus itinerary has a discontinuous path.
-
NOT_ENOUGH_VALID_BUS_HALTS
public static final BusPrimitiveInvalidityType NOT_ENOUGH_VALID_BUS_HALTS
Not enough valid bus halts.
-
INVALID_HALT_IN_ITINERARY
public static final BusPrimitiveInvalidityType INVALID_HALT_IN_ITINERARY
The bus itinerary contains an invalid halt.
-
INVALID_HALT_ORDER
public static final BusPrimitiveInvalidityType INVALID_HALT_ORDER
The order of the bus halts is valid.
-
UNUSED_ROAD_SEGMENT_BEYOND_TERMINUS
public static final BusPrimitiveInvalidityType UNUSED_ROAD_SEGMENT_BEYOND_TERMINUS
The itinerary contains road segment unused beyond terminus halts.
-
NO_ITINERARY_IN_LINE
public static final BusPrimitiveInvalidityType NO_ITINERARY_IN_LINE
No bus itinerary in a bus line.
-
INVALID_ITINERARY_IN_LINE
public static final BusPrimitiveInvalidityType INVALID_ITINERARY_IN_LINE
Invalid bus itinerary in the bus line.
-
NOT_ENOUGH_VALID_BUS_STOPS
public static final BusPrimitiveInvalidityType NOT_ENOUGH_VALID_BUS_STOPS
Not enough valid bus stops.
-
INVALID_STOP_IN_NETWORK
public static final BusPrimitiveInvalidityType INVALID_STOP_IN_NETWORK
Invalid stop in the bus network.
-
INVALID_HUB_IN_NETWORK
public static final BusPrimitiveInvalidityType INVALID_HUB_IN_NETWORK
Invalid hub in the bus network.
-
NO_LINE_IN_NETWORK
public static final BusPrimitiveInvalidityType NO_LINE_IN_NETWORK
No bus line in a bus network.
-
INVALID_LINE_IN_NETWORK
public static final BusPrimitiveInvalidityType INVALID_LINE_IN_NETWORK
Invalid bus line in the bus network.
-
NO_BUS_NETWORK
public static final BusPrimitiveInvalidityType NO_BUS_NETWORK
The primitive is not inside a bus network.
-
NO_ROAD_NETWORK
public static final BusPrimitiveInvalidityType NO_ROAD_NETWORK
The bus network is not linked to a road network.
-
SEGMENT_OUTSIDE_ROAD_NETWORK
public static final BusPrimitiveInvalidityType SEGMENT_OUTSIDE_ROAD_NETWORK
The segment is outside the road network linked to the bus network.
-
-
Method Detail
-
values
public static BusPrimitiveInvalidityType[] 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 (BusPrimitiveInvalidityType c : BusPrimitiveInvalidityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BusPrimitiveInvalidityType 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 nameNullPointerException
- if the argument is null
-
-