Enum Class ChargeSessionEndReason

java.lang.Object
java.lang.Enum<ChargeSessionEndReason>
net.solarnetwork.ocpp.domain.ChargeSessionEndReason
All Implemented Interfaces:
Serializable, Comparable<ChargeSessionEndReason>, Constable, net.solarnetwork.domain.CodedValue

public enum ChargeSessionEndReason extends Enum<ChargeSessionEndReason> implements net.solarnetwork.domain.CodedValue
Enumeration of charging session end reasons.
Version:
1.0
Author:
matt
  • Enum Constant Details

    • Unknown

      public static final ChargeSessionEndReason Unknown
      Unknown.
    • EmergencyStop

      public static final ChargeSessionEndReason EmergencyStop
      Emergency stop button was used.
    • EVDisconnected

      public static final ChargeSessionEndReason EVDisconnected
      The disconnecting of a cable, or vehicle moved away from inductive charge unit.
    • HardReset

      public static final ChargeSessionEndReason HardReset
      A hard reset command was received.
    • Local

      public static final ChargeSessionEndReason Local
      Stopped locally on request of the user at the Charge Point. This is a regular termination of a transaction. Examples: presenting an RFID tag, pressing a button to stop.
    • Other

      public static final ChargeSessionEndReason Other
      Any other reason.
    • PowerLoss

      public static final ChargeSessionEndReason PowerLoss
      Complete loss of power.
    • Reboot

      public static final ChargeSessionEndReason Reboot
      A locally initiated reset/reboot occurred (for instance watchdog kicked in).
    • Remote

      public static final ChargeSessionEndReason Remote
      Stopped remotely on request of the user. This is a regular termination of a transaction. Examples: termination using a smartphone app, exceeding a (non local) prepaid credit.
    • SoftReset

      public static final ChargeSessionEndReason SoftReset
      A soft reset command was received.
    • UnlockCommand

      public static final ChargeSessionEndReason UnlockCommand
      An unlock connector command was received.
    • DeAuthorized

      public static final ChargeSessionEndReason DeAuthorized
      The transaction was stopped because of the authorization status in a start transaction.
  • Method Details

    • values

      public static ChargeSessionEndReason[] 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 ChargeSessionEndReason 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
    • getCode

      public int getCode()
      Get the code value.
      Specified by:
      getCode in interface net.solarnetwork.domain.CodedValue
      Returns:
      the code value
    • forCode

      public static ChargeSessionEndReason forCode(int code)
      Get an enumeration value for a code value.
      Parameters:
      code - the code
      Returns:
      the status, never null and set to Unknown if not any other valid code