Module org.arakhne.afc.gis.gisbus
Package org.arakhne.afc.gis.bus.network
Enum BusChangeEvent.BusChangeEventType
- java.lang.Object
-
- java.lang.Enum<BusChangeEvent.BusChangeEventType>
-
- org.arakhne.afc.gis.bus.network.BusChangeEvent.BusChangeEventType
-
- All Implemented Interfaces:
Serializable
,Comparable<BusChangeEvent.BusChangeEventType>
- Enclosing class:
- BusChangeEvent
public static enum BusChangeEvent.BusChangeEventType extends Enum<BusChangeEvent.BusChangeEventType>
Describes the type of event.- 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 ALL_HUBS_REMOVED
All the bus hubs were removed from a bus network.ALL_ITINERARIES_REMOVED
All the bus itineraries were removed from a bus line.ALL_ITINERARY_HALTS_REMOVED
All the bus halts were removed from a bus itinerary.ALL_LINES_REMOVED
All the bus lines were removed from a bus network.ALL_SEGMENTS_REMOVED
All the road segments were removed from a bus itinerary.ALL_STOPS_REMOVED
All the bus stops were removed from a bus network.HUB_ADDED
A bus hub was added into a bus network.HUB_CHANGED
A bus hub has changed.HUB_REMOVED
A bus hub was removed from a bus network.ITINERARY_ADDED
A bus itinerary was added into a bus line.ITINERARY_CHANGED
A bus itinerary has changed.ITINERARY_HALT_ADDED
A bus halt was added into a bus itinerary.ITINERARY_HALT_CHANGED
A bus halt has changed.ITINERARY_HALT_REMOVED
A bus halt was removed from a bus itinerary.ITINERARY_INVERTED
The order of the bus halts in an itinerary is inverted.ITINERARY_REMOVED
A bus itinerary was removed from a bus line.LINE_ADDED
A bus line was added into a bus network.LINE_CHANGED
A bus line has changed.LINE_REMOVED
A bus line was removed from a bus network.NETWORK_CHANGED
Something change in a bus network.PRIMITIVE_ADDED
Addition of a primitive not catched by one of the other event types.PRIMITIVE_CHANGED
Change in a primitive not catched by one of the other event types.PRIMITIVE_REMOVED
Removal of a primitive not catched by one of the other event types.SEGMENT_ADDED
A road segment was added into a bus itinerary.SEGMENT_REMOVED
A road segment was removed from a bus itinerary.STOP_ADDED
A bus stop was added into a bus network.STOP_CHANGED
A bus stop has changed.STOP_REMOVED
A bus stop was removed from a bus network.VALIDITY
The validity of an element has changed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static BusChangeEvent.BusChangeEventType
addition(Class<?> type)
Replies the addition type according to the given type.(package private) static BusChangeEvent.BusChangeEventType
change(Class<?> type)
Replies the change type according to the given type.(package private) static BusChangeEvent.BusChangeEventType
removal(Class<?> type)
Replies the removal type according to the given type.static BusChangeEvent.BusChangeEventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BusChangeEvent.BusChangeEventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALIDITY
public static final BusChangeEvent.BusChangeEventType VALIDITY
The validity of an element has changed.
-
PRIMITIVE_CHANGED
public static final BusChangeEvent.BusChangeEventType PRIMITIVE_CHANGED
Change in a primitive not catched by one of the other event types.
-
PRIMITIVE_ADDED
public static final BusChangeEvent.BusChangeEventType PRIMITIVE_ADDED
Addition of a primitive not catched by one of the other event types.
-
PRIMITIVE_REMOVED
public static final BusChangeEvent.BusChangeEventType PRIMITIVE_REMOVED
Removal of a primitive not catched by one of the other event types.
-
LINE_ADDED
public static final BusChangeEvent.BusChangeEventType LINE_ADDED
A bus line was added into a bus network.
-
LINE_CHANGED
public static final BusChangeEvent.BusChangeEventType LINE_CHANGED
A bus line has changed.
-
LINE_REMOVED
public static final BusChangeEvent.BusChangeEventType LINE_REMOVED
A bus line was removed from a bus network.
-
ITINERARY_ADDED
public static final BusChangeEvent.BusChangeEventType ITINERARY_ADDED
A bus itinerary was added into a bus line.
-
ITINERARY_REMOVED
public static final BusChangeEvent.BusChangeEventType ITINERARY_REMOVED
A bus itinerary was removed from a bus line.
-
ITINERARY_INVERTED
public static final BusChangeEvent.BusChangeEventType ITINERARY_INVERTED
The order of the bus halts in an itinerary is inverted.
-
ITINERARY_CHANGED
public static final BusChangeEvent.BusChangeEventType ITINERARY_CHANGED
A bus itinerary has changed.
-
ITINERARY_HALT_ADDED
public static final BusChangeEvent.BusChangeEventType ITINERARY_HALT_ADDED
A bus halt was added into a bus itinerary.
-
ITINERARY_HALT_REMOVED
public static final BusChangeEvent.BusChangeEventType ITINERARY_HALT_REMOVED
A bus halt was removed from a bus itinerary.
-
ITINERARY_HALT_CHANGED
public static final BusChangeEvent.BusChangeEventType ITINERARY_HALT_CHANGED
A bus halt has changed.
-
HUB_ADDED
public static final BusChangeEvent.BusChangeEventType HUB_ADDED
A bus hub was added into a bus network.
-
HUB_REMOVED
public static final BusChangeEvent.BusChangeEventType HUB_REMOVED
A bus hub was removed from a bus network.
-
HUB_CHANGED
public static final BusChangeEvent.BusChangeEventType HUB_CHANGED
A bus hub has changed.
-
STOP_ADDED
public static final BusChangeEvent.BusChangeEventType STOP_ADDED
A bus stop was added into a bus network.
-
STOP_REMOVED
public static final BusChangeEvent.BusChangeEventType STOP_REMOVED
A bus stop was removed from a bus network.
-
STOP_CHANGED
public static final BusChangeEvent.BusChangeEventType STOP_CHANGED
A bus stop has changed.
-
SEGMENT_ADDED
public static final BusChangeEvent.BusChangeEventType SEGMENT_ADDED
A road segment was added into a bus itinerary.
-
SEGMENT_REMOVED
public static final BusChangeEvent.BusChangeEventType SEGMENT_REMOVED
A road segment was removed from a bus itinerary.
-
NETWORK_CHANGED
public static final BusChangeEvent.BusChangeEventType NETWORK_CHANGED
Something change in a bus network. This type of event is thrown when it is not related to another type of event.
-
ALL_ITINERARY_HALTS_REMOVED
public static final BusChangeEvent.BusChangeEventType ALL_ITINERARY_HALTS_REMOVED
All the bus halts were removed from a bus itinerary.
-
ALL_SEGMENTS_REMOVED
public static final BusChangeEvent.BusChangeEventType ALL_SEGMENTS_REMOVED
All the road segments were removed from a bus itinerary.
-
ALL_ITINERARIES_REMOVED
public static final BusChangeEvent.BusChangeEventType ALL_ITINERARIES_REMOVED
All the bus itineraries were removed from a bus line.
-
ALL_LINES_REMOVED
public static final BusChangeEvent.BusChangeEventType ALL_LINES_REMOVED
All the bus lines were removed from a bus network.
-
ALL_HUBS_REMOVED
public static final BusChangeEvent.BusChangeEventType ALL_HUBS_REMOVED
All the bus hubs were removed from a bus network.
-
ALL_STOPS_REMOVED
public static final BusChangeEvent.BusChangeEventType ALL_STOPS_REMOVED
All the bus stops were removed from a bus network.
-
-
Method Detail
-
values
public static BusChangeEvent.BusChangeEventType[] 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 (BusChangeEvent.BusChangeEventType c : BusChangeEvent.BusChangeEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BusChangeEvent.BusChangeEventType 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
-
addition
@Pure static BusChangeEvent.BusChangeEventType addition(Class<?> type)
Replies the addition type according to the given type.- Parameters:
type
- the type.- Returns:
- the event type or
null
-
removal
@Pure static BusChangeEvent.BusChangeEventType removal(Class<?> type)
Replies the removal type according to the given type.- Parameters:
type
- the type.- Returns:
- the event type or
null
-
change
@Pure static BusChangeEvent.BusChangeEventType change(Class<?> type)
Replies the change type according to the given type.- Parameters:
type
- the type.- Returns:
- the event type or
null
-
-