Package net.solarnetwork.ocpp.domain
Enum Class ChargePointStatus
- All Implemented Interfaces:
Serializable,Comparable<ChargePointStatus>,Constable,net.solarnetwork.domain.CodedValue
public enum ChargePointStatus
extends Enum<ChargePointStatus>
implements net.solarnetwork.domain.CodedValue
Charge point status enumeration.
- 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 connector is available for a new user.When the contactor of a connector closes, allowing the vehicle to charge.When a Charge Point or connector has reported an error and is not available for energy delivery.When a Transaction has stopped at a connector, but the connector is not yet available for a new user, e.g.SeeCharging- removed in 1.6.When a connector becomes no longer available for a new user but there is no ongoing Transaction (yet).When a connector becomes reserved as a result of a ReserveNow command.When the EV is connected to the EVSE and the EVSE is offering energy but the EV is not taking any energy.When the EV is connected to the EVSE but the EVSE is not offering energy to the EV, e.g.When a connector becomes unavailable as the result of a Change Availability command or an event upon which the Charge Point transitions to unavailable at its discretion.The connector status it not known. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChargePointStatusforCode(int code) Get an enumeration value for a code value.intgetCode()Get the code value.static ChargePointStatusReturns the enum constant of this class with the specified name.static ChargePointStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Unknown
The connector status it not known. -
Available
The connector is available for a new user. -
Occupied
SeeCharging- removed in 1.6. -
Faulted
When a Charge Point or connector has reported an error and is not available for energy delivery. -
Reserved
When a connector becomes reserved as a result of a ReserveNow command. -
Preparing
When a connector becomes no longer available for a new user but there is no ongoing Transaction (yet). Typically a connector is in preparing state when a user presents a tag, inserts a cable or a vehicle occupies the parking bay. -
Charging
When the contactor of a connector closes, allowing the vehicle to charge. -
SuspendedEV
When the EV is connected to the EVSE and the EVSE is offering energy but the EV is not taking any energy. -
SuspendedEVSE
When the EV is connected to the EVSE but the EVSE is not offering energy to the EV, e.g. due to a smart charging restriction, local supply power constraints, or as the result of StartTransaction.conf indicating that charging is not allowed etc. -
Finishing
When a Transaction has stopped at a connector, but the connector is not yet available for a new user, e.g. the cable has not been removed or the vehicle has not left the parking bay.
-
-
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
-