|
19 | 19 | */ |
20 | 20 | public enum ConfigurationKeyEnum { |
21 | 21 | // From Ocpp 1.2 |
22 | | - HeartBeatInterval("HeartBeatInterval", "in seconds", RW , newHashSet(V_12, V_15, V_16)), |
23 | | - ConnectionTimeOut("ConnectionTimeOut", "in seconds", RW , newHashSet(V_12, V_15, V_16)), |
24 | | - ProximityContactRetries("ProximityContactRetries", "in times", RW , newHashSet(V_12, V_15, V_16)), |
25 | | - ProximityLockRetries("ProximityLockRetries", "in times", RW , newHashSet(V_12, V_15, V_16)), |
26 | | - ResetRetries("ResetRetries", "in times", RW , newHashSet(V_12, V_15, V_16)), |
27 | | - BlinkRepeat("BlinkRepeat", "in times", RW , newHashSet(V_12, V_15, V_16)), |
28 | | - LightIntensity("LightIntensity", "in %", RW , newHashSet(V_12, V_15, V_16)), |
29 | | - ChargePointId("ChargePointId", "string", RW , newHashSet(V_12, V_15, V_16)), |
30 | | - MeterValueSampleInterval("MeterValueSampleInterval", "in seconds", RW , newHashSet(V_12, V_15, V_16)), |
| 22 | + HeartBeatInterval("HeartBeatInterval", "in seconds", RW, newHashSet(V_12, V_15, V_16)), |
| 23 | + ConnectionTimeOut("ConnectionTimeOut", "in seconds", RW, newHashSet(V_12, V_15, V_16)), |
| 24 | + ProximityContactRetries("ProximityContactRetries", "in times", RW, newHashSet(V_12, V_15, V_16)), |
| 25 | + ProximityLockRetries("ProximityLockRetries", "in times", RW, newHashSet(V_12, V_15, V_16)), |
| 26 | + ResetRetries("ResetRetries", "in times", RW, newHashSet(V_12, V_15, V_16)), |
| 27 | + BlinkRepeat("BlinkRepeat", "in times", RW, newHashSet(V_12, V_15, V_16)), |
| 28 | + LightIntensity("LightIntensity", "in %", RW, newHashSet(V_12, V_15, V_16)), |
| 29 | + ChargePointId("ChargePointId", "string", RW, newHashSet(V_12, V_15, V_16)), |
| 30 | + MeterValueSampleInterval("MeterValueSampleInterval", "in seconds", RW, newHashSet(V_12, V_15, V_16)), |
31 | 31 |
|
32 | 32 | // New in Ocpp 1.5 |
33 | | - ClockAlignedDataInterval("ClockAlignedDataInterval", "in seconds", RW , newHashSet(V_15, V_16)), |
34 | | - MeterValuesSampledData("MeterValuesSampledData", "comma seperated list", RW , newHashSet(V_15, V_16)), |
35 | | - MeterValuesAlignedData("MeterValuesAlignedData", "comma seperated list", RW , newHashSet(V_15, V_16)), |
36 | | - StopTxnSampledData("StopTxnSampledData", "comma seperated list", RW , newHashSet(V_15, V_16)), |
37 | | - StopTxnAlignedData("StopTxnAlignedData", "comma seperated list", RW , newHashSet(V_15, V_16)), |
| 33 | + ClockAlignedDataInterval("ClockAlignedDataInterval", "in seconds", RW, newHashSet(V_15, V_16)), |
| 34 | + MeterValuesSampledData("MeterValuesSampledData", "comma seperated list", RW, newHashSet(V_15, V_16)), |
| 35 | + MeterValuesAlignedData("MeterValuesAlignedData", "comma seperated list", RW, newHashSet(V_15, V_16)), |
| 36 | + StopTxnSampledData("StopTxnSampledData", "comma seperated list", RW, newHashSet(V_15, V_16)), |
| 37 | + StopTxnAlignedData("StopTxnAlignedData", "comma seperated list", RW, newHashSet(V_15, V_16)), |
38 | 38 |
|
39 | 39 | // New in Ocpp 1.6 |
40 | | - AllowOfflineTxForUnknownId("AllowOfflineTxForUnknownId", "boolean", RW , newHashSet(V_16)), |
41 | | - AuthorizationCacheEnabled("AuthorizationCacheEnabled", "boolean", RW , newHashSet(V_16)), |
42 | | - //AuthorizeRemoteTxRequests Read or Read-Write is up to Charge Point implementation so set to RW for now |
43 | | - AuthorizeRemoteTxRequests("AuthorizeRemoteTxRequests", "boolean", RW , newHashSet(V_16)), |
44 | | - ConnectorPhaseRotation("ConnectorPhaseRotation", "comma seperated list", RW , newHashSet(V_16)), |
45 | | - ConnectorPhaseRotationMaxLength("ConnectorPhaseRotationMaxLength", "integer", R , newHashSet(V_16)), |
46 | | - GetConfigurationMaxKeys("GetConfigurationMaxKeys", "integer", R , newHashSet(V_16)), |
47 | | - LocalAuthorizeOffline("LocalAuthorizeOffline", "boolean", RW , newHashSet(V_16)), |
48 | | - LocalPreAuthorize("LocalPreAuthorize", "boolean", RW , newHashSet(V_16)), |
49 | | - MaxEnergyOnInvalidId("MaxEnergyOnInvalidId", "in Wh", RW , newHashSet(V_16)), |
50 | | - MeterValuesAlignedDataMaxLength("MeterValuesAlignedDataMaxLength", "integer", R , newHashSet(V_16)), |
51 | | - MeterValuesSampledDataMaxLength("MeterValuesSampledDataMaxLength", "integer", R , newHashSet(V_16)), |
52 | | - MinimumStatusDuration("MinimumStatusDuration", "in seconds", RW , newHashSet(V_16)), |
53 | | - NumberOfConnectors("NumberOfConnectors", "integer", R , newHashSet(V_16)), |
54 | | - StopTransactionOnEVSideDisconnect("StopTransactionOnEVSideDisconnect", "boolean", RW , newHashSet(V_16)), |
55 | | - StopTransactionOnInvalidId("StopTransactionOnInvalidId", "boolean", RW , newHashSet(V_16)), |
56 | | - StopTxnAlignedDataMaxLength("StopTxnAlignedDataMaxLength", "integer", R , newHashSet(V_16)), |
57 | | - StopTxnSampledDataMaxLength("StopTxnSampledDataMaxLength", "integer", R , newHashSet(V_16)), |
58 | | - SupportedFeatureProfiles("SupportedFeatureProfiles", "comma seperated list", R , newHashSet(V_16)), |
59 | | - SupportedFeatureProfilesMaxLength("SupportedFeatureProfilesMaxLength", "integer", R , newHashSet(V_16)), |
60 | | - TransactionMessageAttempts("TransactionMessageAttempts", "in times", RW , newHashSet(V_16)), |
61 | | - TransactionMessageRetryInterval("TransactionMessageRetryInterval", "in seconds", RW , newHashSet(V_16)), |
62 | | - UnlockConnectorOnEVSideDisconnect("UnlockConnectorOnEVSideDisconnect", "boolean", RW , newHashSet(V_16)), |
63 | | - WebSocketPingInterval("WebSocketPingInterval", "in seconds", RW , newHashSet(V_16)), |
64 | | - LocalAuthListEnabled("LocalAuthListEnabled", "boolean", RW , newHashSet(V_16)), |
65 | | - LocalAuthListMaxLength("LocalAuthListMaxLength", "integer", R , newHashSet(V_16)), |
66 | | - SendLocalListMaxLength("SendLocalListMaxLength", "integer", R , newHashSet(V_16)), |
67 | | - ReserveConnectorZeroSupported("ReserveConnectorZeroSupported", "boolean", R , newHashSet(V_16)), |
68 | | - ChargeProfileMaxStackLevel("ChargeProfileMaxStackLevel", "integer", R , newHashSet(V_16)), |
69 | | - ChargingScheduleAllowedChargingRateUnit("ChargingScheduleAllowedChargingRateUnit", "comma seperated list", R , newHashSet(V_16)), |
70 | | - ChargingScheduleMaxPeriods("ChargingScheduleMaxPeriods", "integer", R , newHashSet(V_16)), |
71 | | - ConnectorSwitch3to1PhaseSupported("ConnectorSwitch3to1PhaseSupported", "boolean", R , newHashSet(V_16)), |
72 | | - MaxChargingProfilesInstalled("MaxChargingProfilesInstalled", "integer", R , newHashSet(V_16)); |
| 40 | + AllowOfflineTxForUnknownId("AllowOfflineTxForUnknownId", "boolean", RW, newHashSet(V_16)), |
| 41 | + AuthorizationCacheEnabled("AuthorizationCacheEnabled", "boolean", RW, newHashSet(V_16)), |
| 42 | + // AuthorizeRemoteTxRequests Read or Read-Write is up to Charge Point implementation so set to RW for now |
| 43 | + AuthorizeRemoteTxRequests("AuthorizeRemoteTxRequests", "boolean", RW, newHashSet(V_16)), |
| 44 | + ConnectorPhaseRotation("ConnectorPhaseRotation", "comma seperated list", RW, newHashSet(V_16)), |
| 45 | + ConnectorPhaseRotationMaxLength("ConnectorPhaseRotationMaxLength", "integer", R, newHashSet(V_16)), |
| 46 | + GetConfigurationMaxKeys("GetConfigurationMaxKeys", "integer", R, newHashSet(V_16)), |
| 47 | + LocalAuthorizeOffline("LocalAuthorizeOffline", "boolean", RW, newHashSet(V_16)), |
| 48 | + LocalPreAuthorize("LocalPreAuthorize", "boolean", RW, newHashSet(V_16)), |
| 49 | + MaxEnergyOnInvalidId("MaxEnergyOnInvalidId", "in Wh", RW, newHashSet(V_16)), |
| 50 | + MeterValuesAlignedDataMaxLength("MeterValuesAlignedDataMaxLength", "integer", R, newHashSet(V_16)), |
| 51 | + MeterValuesSampledDataMaxLength("MeterValuesSampledDataMaxLength", "integer", R, newHashSet(V_16)), |
| 52 | + MinimumStatusDuration("MinimumStatusDuration", "in seconds", RW, newHashSet(V_16)), |
| 53 | + NumberOfConnectors("NumberOfConnectors", "integer", R, newHashSet(V_16)), |
| 54 | + StopTransactionOnEVSideDisconnect("StopTransactionOnEVSideDisconnect", "boolean", RW, newHashSet(V_16)), |
| 55 | + StopTransactionOnInvalidId("StopTransactionOnInvalidId", "boolean", RW, newHashSet(V_16)), |
| 56 | + StopTxnAlignedDataMaxLength("StopTxnAlignedDataMaxLength", "integer", R, newHashSet(V_16)), |
| 57 | + StopTxnSampledDataMaxLength("StopTxnSampledDataMaxLength", "integer", R, newHashSet(V_16)), |
| 58 | + SupportedFeatureProfiles("SupportedFeatureProfiles", "comma seperated list", R, newHashSet(V_16)), |
| 59 | + SupportedFeatureProfilesMaxLength("SupportedFeatureProfilesMaxLength", "integer", R, newHashSet(V_16)), |
| 60 | + TransactionMessageAttempts("TransactionMessageAttempts", "in times", RW, newHashSet(V_16)), |
| 61 | + TransactionMessageRetryInterval("TransactionMessageRetryInterval", "in seconds", RW, newHashSet(V_16)), |
| 62 | + UnlockConnectorOnEVSideDisconnect("UnlockConnectorOnEVSideDisconnect", "boolean", RW, newHashSet(V_16)), |
| 63 | + WebSocketPingInterval("WebSocketPingInterval", "in seconds", RW, newHashSet(V_16)), |
| 64 | + LocalAuthListEnabled("LocalAuthListEnabled", "boolean", RW, newHashSet(V_16)), |
| 65 | + LocalAuthListMaxLength("LocalAuthListMaxLength", "integer", R, newHashSet(V_16)), |
| 66 | + SendLocalListMaxLength("SendLocalListMaxLength", "integer", R, newHashSet(V_16)), |
| 67 | + ReserveConnectorZeroSupported("ReserveConnectorZeroSupported", "boolean", R, newHashSet(V_16)), |
| 68 | + ChargeProfileMaxStackLevel("ChargeProfileMaxStackLevel", "integer", R, newHashSet(V_16)), |
| 69 | + ChargingScheduleAllowedChargingRateUnit("ChargingScheduleAllowedChargingRateUnit", "comma seperated list", R, newHashSet(V_16)), |
| 70 | + ChargingScheduleMaxPeriods("ChargingScheduleMaxPeriods", "integer", R, newHashSet(V_16)), |
| 71 | + ConnectorSwitch3to1PhaseSupported("ConnectorSwitch3to1PhaseSupported", "boolean", R, newHashSet(V_16)), |
| 72 | + MaxChargingProfilesInstalled("MaxChargingProfilesInstalled", "integer", R, newHashSet(V_16)); |
73 | 73 |
|
74 | 74 | private final String value; |
75 | 75 | private final String text; |
@@ -108,8 +108,7 @@ private static Map<String, String> asMap(OcppVersion version, ConfigurationKeyRe |
108 | 108 | for (ConfigurationKeyEnum c : ConfigurationKeyEnum.values()) { |
109 | 109 | if (c.versions.contains(version) && c.rw == rw) { |
110 | 110 | map.put(c.value, c.text); |
111 | | - } |
112 | | - else if (c.versions.contains(version) && rw == ConfigurationKeyReadWriteEnum.R){ |
| 111 | + } else if (c.versions.contains(version) && rw == ConfigurationKeyReadWriteEnum.R) { |
113 | 112 | map.put(c.value, c.text); |
114 | 113 | } |
115 | 114 | } |
|
0 commit comments