Package net.solarnetwork.ocpp.domain
Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe transaction was stopped because of the authorization status in a start transaction.Emergency stop button was used.The disconnecting of a cable, or vehicle moved away from inductive charge unit.A hard reset command was received.Stopped locally on request of the user at the Charge Point.Any other reason.Complete loss of power.A locally initiated reset/reboot occurred (for instance watchdog kicked in).Stopped remotely on request of the user.A soft reset command was received.Unknown.An unlock connector command was received. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChargeSessionEndReasonforCode(int code) Get an enumeration value for a code value.intgetCode()Get the code value.static ChargeSessionEndReasonReturns the enum constant of this class with the specified name.static ChargeSessionEndReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Unknown
Unknown. -
EmergencyStop
Emergency stop button was used. -
EVDisconnected
The disconnecting of a cable, or vehicle moved away from inductive charge unit. -
HardReset
A hard reset command was received. -
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
Any other reason. -
PowerLoss
Complete loss of power. -
Reboot
A locally initiated reset/reboot occurred (for instance watchdog kicked in). -
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
A soft reset command was received. -
UnlockCommand
An unlock connector command was received. -
DeAuthorized
The transaction was stopped because of the authorization status in a start transaction.
-
-
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
-
getCode
public int getCode()Get the code value.- Specified by:
getCodein interfacenet.solarnetwork.domain.CodedValue- Returns:
- the code value
-
forCode
Get an enumeration value for a code value.- Parameters:
code- the code- Returns:
- the status, never null and set to
Unknownif not any other valid code
-