Package com.veeroute.lss.universal.model
Enum Class EntityErrorType
- All Implemented Interfaces:
Serializable,Comparable<EntityErrorType>,Constable
Error type: * `INCONSISTENT_REFERENCE` - bad reference key * `UNIQUE_IDS_VIOLATION` - all keys must be unique * `INVALID_ROUTING_MATRIX` - bad routing matrix dimension * `INVALID_GEO_PROVIDER` - bad geo provider * `INVALID_TIME_WINDOW` - bad time window * `COMPATIBILITY_CARGO_BOX` - no cargo is compatible with any box * `COMPATIBILITY_TRANSPORT_PERFORMER` - no transport is compatible with any performer * `COMPATIBILITY_TRANSPORT_LOCATION` - no transport is compatible with any location * `COMPATIBILITY_ORDER_PERFORMER` - no order is compatible with any performer * `INCONSISTENT_HARDLINK` - essence key must be only in one hardlink * `PLANNING_HORIZON_EXCEEDED` - planning horizon exceeded (difference between earliest and latest timestamp in dataset) * `MEANINGLESS_RESTRICTIONS` - the specified restrictions do not make sense * `LOCATION_LIMITS_VIOLATION` - the time windows of the constraint's validity must not overlap and their union must correspond to the location availability window `work_window`; if the `min_cargos`/`min_transports` constraint is specified, then the `max_cargos`/`max_transports` constraint must be specified; the `min_cargos`/`min_transports` constraints must be less than all the `max_cargos`/`max_transports` constraints; the `LOWEST_COST` time selection strategy is specified (currently not supported) * `PERFORMER_WRR_MUST_BE_SET` - at least one of the fields `rest_rules` or `break_rules` must be set for the work and rest schedule. * `PERFORMER_WRR_INVALID_REST_COUNT` - the number of rests cannot exceed 14 * `PERFORMER_WRR_INVALID_BREAK_COUNT` - no more than 14 breaks can start between rests * `PERFORMER_WRR_MEANINGLESS_REST` - the specified rest cannot be inserted * `PERFORMER_WRR_MEANINGLESS_BREAK` - the specified break cannot be inserted * `TOO_MANY_WARNINGS` - the number of warnings is greater than 15001 * `UNCLASSIFIED_ERROR` - unclassified error
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityErrorTypegetValue()toString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) static EntityErrorTypeReturns the enum constant of this class with the specified name.static EntityErrorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INCONSISTENT_REFERENCE
-
UNIQUE_IDS_VIOLATION
-
INVALID_ROUTING_MATRIX
-
INVALID_GEO_PROVIDER
-
INVALID_TIME_WINDOW
-
COMPATIBILITY_CARGO_BOX
-
COMPATIBILITY_TRANSPORT_PERFORMER
-
COMPATIBILITY_TRANSPORT_LOCATION
-
COMPATIBILITY_ORDER_PERFORMER
-
INCONSISTENT_HARDLINK
-
PLANNING_HORIZON_EXCEEDED
-
MEANINGLESS_RESTRICTIONS
-
LOCATION_LIMITS_VIOLATION
-
PERFORMER_WRR_MUST_BE_SET
-
PERFORMER_WRR_INVALID_REST_COUNT
-
PERFORMER_WRR_INVALID_BREAK_COUNT
-
PERFORMER_WRR_MEANINGLESS_REST
-
PERFORMER_WRR_MEANINGLESS_BREAK
-
TOO_MANY_WARNINGS
-
UNCLASSIFIED_ERROR
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
toString
- Overrides:
toStringin classEnum<EntityErrorType>
-
fromValue
-
validateJsonElement
- Throws:
IOException
-