Enum Class FactType

java.lang.Object
java.lang.Enum<FactType>
com.veeroute.lss.monitor.model.FactType
All Implemented Interfaces:
Serializable, Comparable<FactType>, Constable

public enum FactType extends Enum<FactType>
Possible fact types: * `GEOTRACK_UPDATED` - the performer changed his location during the trip * `ORDER_DONE` - the performer has finished fulfilling the order, the cargo associated with the order is no longer in the transport box * `ORDER_CANCELED` - the order has been canceled, the cargo associated with the order is no longer in the transport box * `ORDER_POSTPONED` - the order execution has been postponed, the order remains assigned to the trip * `DEMAND_START` - performer started to fulfill the demand (the fact is created when the performer starts moving to the demand location) * `DEMAND_DONE` - performer finished to fulfill the demand * `DEMAND_CANCELED` - the performer canceled the demand * `DEMAND_PAYMENT` - the performer received payment for the demand * `TRIP_PRECEDENCE_CHANGED` - the performer changed the precedence of the demands in the trip * `TRIP_RECEIVED` - the performer has received the trip * `TRIP_CONFIRMED` - the performer has agreed to perform the trip * `TRIP_REJECTED` - the performer has refused to perform the trip * `TRIP_EXECUTING` - the performer has started performing the trip * `TRIP_DONE` - the performer has completed the trip, all orders in the trip are fulfilled * `JOB_DONE` - the performer has finished custom job * `WAYBILL_UPDATED` - the waybill of the cargo has been updated * `WAYBILL_SIGNED` - the performer has signed the waybill of the cargo * `LOCATION_CHECKIN` - the performer has entered the location radius (check-in) * `LOCATION_CHECKOUT` - the performer has exited the location radius (check-out)
  • Enum Constant Details

    • GEOTRACK_UPDATED

      public static final FactType GEOTRACK_UPDATED
    • ORDER_DONE

      public static final FactType ORDER_DONE
    • ORDER_CANCELED

      public static final FactType ORDER_CANCELED
    • ORDER_POSTPONED

      public static final FactType ORDER_POSTPONED
    • DEMAND_START

      public static final FactType DEMAND_START
    • DEMAND_DONE

      public static final FactType DEMAND_DONE
    • DEMAND_CANCELED

      public static final FactType DEMAND_CANCELED
    • DEMAND_PAYMENT

      public static final FactType DEMAND_PAYMENT
    • TRIP_PRECEDENCE_CHANGED

      public static final FactType TRIP_PRECEDENCE_CHANGED
    • TRIP_RECEIVED

      public static final FactType TRIP_RECEIVED
    • TRIP_CONFIRMED

      public static final FactType TRIP_CONFIRMED
    • TRIP_REJECTED

      public static final FactType TRIP_REJECTED
    • TRIP_EXECUTING

      public static final FactType TRIP_EXECUTING
    • TRIP_DONE

      public static final FactType TRIP_DONE
    • JOB_DONE

      public static final FactType JOB_DONE
    • WAYBILL_UPDATED

      public static final FactType WAYBILL_UPDATED
    • WAYBILL_SIGNED

      public static final FactType WAYBILL_SIGNED
    • LOCATION_CHECKIN

      public static final FactType LOCATION_CHECKIN
    • LOCATION_CHECKOUT

      public static final FactType LOCATION_CHECKOUT
  • Method Details

    • values

      public static FactType[] 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

      public static FactType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<FactType>
    • fromValue

      public static FactType fromValue(String value)
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Throws:
      IOException