Skip to content
This repository was archived by the owner on Jun 29, 2024. It is now read-only.

Commit 7d59c49

Browse files
Update usecase event name values to be unique (#42)
This allows the messages to be handled in a combined handler
2 parents c6abbbc + f97e616 commit 7d59c49

File tree

15 files changed

+64
-64
lines changed

15 files changed

+64
-64
lines changed

uccevc/types.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,39 @@ const (
88
// EV provided an energy demand
99
//
1010
// Use `EnergyDemand` to get the current data
11-
DataUpdateEnergyDemand api.EventType = "DataUpdateEnergyDemand"
11+
DataUpdateEnergyDemand api.EventType = "uccevc-DataUpdateEnergyDemand"
1212

1313
// Scenario 2
1414

1515
// EV provided a charge plan constraints
1616
//
1717
// Use `TimeSlotConstraints` to get the current data
18-
DataUpdateTimeSlotConstraints api.EventType = "DataUpdateTimeSlotConstraints"
18+
DataUpdateTimeSlotConstraints api.EventType = "uccevc-DataUpdateTimeSlotConstraints"
1919

2020
// Scenario 3
2121

2222
// EV incentive table data updated
2323
//
2424
// Use `IncentiveConstraints` to get the current data
25-
DataUpdateIncentiveTable api.EventType = "DataUpdateIncentiveTable"
25+
DataUpdateIncentiveTable api.EventType = "uccevc-DataUpdateIncentiveTable"
2626

2727
// EV requested an incentive table, call to WriteIncentiveTableDescriptions required
28-
DataRequestedIncentiveTableDescription api.EventType = "DataRequestedIncentiveTableDescription"
28+
DataRequestedIncentiveTableDescription api.EventType = "uccevc-DataRequestedIncentiveTableDescription"
2929

3030
// Scenario 2 & 3
3131

3232
// EV requested power limits, call to WritePowerLimits and WriteIncentives required
33-
DataRequestedPowerLimitsAndIncentives api.EventType = "DataRequestedPowerLimitsAndIncentives"
33+
DataRequestedPowerLimitsAndIncentives api.EventType = "uccevc-DataRequestedPowerLimitsAndIncentives"
3434

3535
// Scenario 4
3636

3737
// EV provided a charge plan
3838
//
3939
// Use `ChargePlanConstraints` to get the current data
40-
DataUpdateChargePlanConstraints api.EventType = "DataUpdateChargePlanConstraints"
40+
DataUpdateChargePlanConstraints api.EventType = "uccevc-DataUpdateChargePlanConstraints"
4141

4242
// EV provided a charge plan
4343
//
4444
// Use `ChargePlan` to get the current data
45-
DataUpdateChargePlan api.EventType = "DataUpdateChargePlan"
45+
DataUpdateChargePlan api.EventType = "uccevc-DataUpdateChargePlan"
4646
)

ucevcc/types.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -15,57 +15,57 @@ const (
1515
// An EV was connected
1616
//
1717
// Use Case EVCC, Scenario 1
18-
EvConnected api.EventType = "EvConnected"
18+
EvConnected api.EventType = "ucevcc-EvConnected"
1919

2020
// An EV was disconnected
2121
//
2222
// Note: The ev entity is no longer connected to the device!
2323
//
2424
// Use Case EVCC, Scenario 8
25-
EvDisconnected api.EventType = "EvDisconnected"
25+
EvDisconnected api.EventType = "ucevcc-EvDisconnected"
2626

2727
// EV charge state data was updated
2828
//
2929
// Use `ChargeState` to get the current data
30-
DataUpdateChargeState api.EventType = "DataUpdateChargeState"
30+
DataUpdateChargeState api.EventType = "ucevcc-DataUpdateChargeState"
3131

3232
// EV communication standard data was updated
3333
//
3434
// Use `CommunicationStandard` to get the current data
3535
//
3636
// Use Case EVCC, Scenario 2
37-
DataUpdateCommunicationStandard api.EventType = "DataUpdateCommunicationStandard"
37+
DataUpdateCommunicationStandard api.EventType = "ucevcc-DataUpdateCommunicationStandard"
3838

3939
// EV asymmetric charging data was updated
4040
//
4141
// Use `AsymmetricChargingSupport` to get the current data
42-
DataUpdateAsymmetricChargingSupport api.EventType = "DataUpdateAsymmetricChargingSupport"
42+
DataUpdateAsymmetricChargingSupport api.EventType = "ucevcc-DataUpdateAsymmetricChargingSupport"
4343

4444
// EV identificationdata was updated
4545
//
4646
// Use `Identifications` to get the current data
4747
//
4848
// Use Case EVCC, Scenario 4
49-
DataUpdateIdentifications api.EventType = "DataUpdateIdentifications"
49+
DataUpdateIdentifications api.EventType = "ucevcc-DataUpdateIdentifications"
5050

5151
// EV manufacturer data was updated
5252
//
5353
// Use `ManufacturerData` to get the current data
5454
//
5555
// Use Case EVCC, Scenario 5
56-
DataUpdateManufacturerData api.EventType = "DataUpdateManufacturerData"
56+
DataUpdateManufacturerData api.EventType = "ucevcc-DataUpdateManufacturerData"
5757

5858
// EV charging power limits
5959
//
6060
// Use `ChargingPowerLimits` to get the current data
6161
//
6262
// Use Case EVCC, Scenario 6
63-
DataUpdateCurrentLimits api.EventType = "DataUpdateCurrentLimits"
63+
DataUpdateCurrentLimits api.EventType = "ucevcc-DataUpdateCurrentLimits"
6464

6565
// EV permitted power limits updated
6666
//
6767
// Use `IsInSleepMode` to get the current data
6868
//
6969
// Use Case EVCC, Scenario 7
70-
DataUpdateIsInSleepMode api.EventType = "DataUpdateIsInSleepMode"
70+
DataUpdateIsInSleepMode api.EventType = "ucevcc-DataUpdateIsInSleepMode"
7171
)

ucevcem/types.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ const (
88
// Use `PhasesConnected` to get the current data
99
//
1010
// Use Case EVCEM, Scenario 1
11-
DataUpdatePhasesConnected api.EventType = "DataUpdatePhasesConnected"
11+
DataUpdatePhasesConnected api.EventType = "ucevcem-DataUpdatePhasesConnected"
1212

1313
// EV current measurement data updated
1414
//
1515
// Use `CurrentPerPhase` to get the current data
1616
//
1717
// Use Case EVCEM, Scenario 1
18-
DataUpdateCurrentPerPhase api.EventType = "DataUpdateCurrentPerPhase"
18+
DataUpdateCurrentPerPhase api.EventType = "ucevcem-DataUpdateCurrentPerPhase"
1919

2020
// EV power measurement data updated
2121
//
2222
// Use `PowerPerPhase` to get the current data
2323
//
2424
// Use Case EVCEM, Scenario 2
25-
DataUpdatePowerPerPhase api.EventType = "DataUpdatePowerPerPhase"
25+
DataUpdatePowerPerPhase api.EventType = "ucevcem-DataUpdatePowerPerPhase"
2626

2727
// EV charging energy measurement data updated
2828
//
2929
// Use `EnergyCharged` to get the current data
3030
//
3131
// Use Case EVCEM, Scenario 3
32-
DataUpdateEnergyCharged api.EventType = "DataUpdateEnergyCharged"
32+
DataUpdateEnergyCharged api.EventType = "ucevcem-DataUpdateEnergyCharged"
3333
)

ucevsecc/types.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import "github.com/enbility/cemd/api"
44

55
const (
66
// An EVSE was connected
7-
EvseConnected api.EventType = "EvseConnected"
7+
EvseConnected api.EventType = "ucevsecc-EvseConnected"
88

99
// An EVSE was disconnected
10-
EvseDisconnected api.EventType = "EvseDisconnected"
10+
EvseDisconnected api.EventType = "ucevsecc-EvseDisconnected"
1111

1212
// EVSE manufacturer data was updated
1313
//
@@ -16,7 +16,7 @@ const (
1616
// Use Case EVSECC, Scenario 1
1717
//
1818
// The entity of the message is the entity of the EVSE
19-
DataUpdateManufacturerData api.EventType = "DataUpdateManufacturerData"
19+
DataUpdateManufacturerData api.EventType = "ucevsecc-DataUpdateManufacturerData"
2020

2121
// EVSE operation state was updated
2222
//
@@ -25,5 +25,5 @@ const (
2525
// Use Case EVSECC, Scenario 2
2626
//
2727
// The entity of the message is the entity of the EVSE
28-
DataUpdateOperatingState api.EventType = "DataUpdateOperatingState"
28+
DataUpdateOperatingState api.EventType = "ucevsecc-DataUpdateOperatingState"
2929
)

ucevsoc/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ const (
88
// Use `StateOfCharge` to get the current data
99
//
1010
// Use Case EVSOC, Scenario 1
11-
DataUpdateStateOfCharge api.EventType = "DataUpdateStateOfCharge"
11+
DataUpdateStateOfCharge api.EventType = "ucevsoc-DataUpdateStateOfCharge"
1212
)

uclpc/types.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ const (
88
// Use `ConsumptionLimit` to get the current data
99
//
1010
// Use Case LPC, Scenario 1
11-
DataUpdateLimit api.EventType = "DataUpdateLimit"
11+
DataUpdateLimit api.EventType = "uclpc-DataUpdateLimit"
1212

1313
// Failsafe limit for the consumed active (real) power of the
1414
// Controllable System data updated
1515
//
1616
// Use `FailsafeConsumptionActivePowerLimit` to get the current data
1717
//
1818
// Use Case LPC, Scenario 2
19-
DataUpdateFailsafeConsumptionActivePowerLimit api.EventType = "DataUpdateFailsafeConsumptionActivePowerLimit"
19+
DataUpdateFailsafeConsumptionActivePowerLimit api.EventType = "uclpc-DataUpdateFailsafeConsumptionActivePowerLimit"
2020

2121
// Minimum time the Controllable System remains in "failsafe state" unless conditions
2222
// specified in this Use Case permit leaving the "failsafe state" data updated
2323
//
2424
// Use `FailsafeDurationMinimum` to get the current data
2525
//
2626
// Use Case LPC, Scenario 2
27-
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"
27+
DataUpdateFailsafeDurationMinimum api.EventType = "uclpc-DataUpdateFailsafeDurationMinimum"
2828
)

uclpcserver/types.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@ const (
88
// Use `ConsumptionLimit` to get the current data
99
//
1010
// Use Case LPC, Scenario 1
11-
DataUpdateLimit api.EventType = "DataUpdateLimit"
11+
DataUpdateLimit api.EventType = "uclpcserver-DataUpdateLimit"
1212

1313
// An incoming load control obligation limit needs to be approved or denied
1414
//
1515
// Use `PendingConsumptionLimits` to get the currently pending write approval requests
1616
// and invoke `ApproveOrDenyConsumptionLimit` for each
1717
//
1818
// Use Case LPC, Scenario 1
19-
WriteApprovalRequired api.EventType = "WriteApprovalRequired"
19+
WriteApprovalRequired api.EventType = "uclpcserver-WriteApprovalRequired"
2020

2121
// Failsafe limit for the consumed active (real) power of the
2222
// Controllable System data update received
2323
//
2424
// Use `FailsafeConsumptionActivePowerLimit` to get the current data
2525
//
2626
// Use Case LPC, Scenario 2
27-
DataUpdateFailsafeConsumptionActivePowerLimit api.EventType = "DataUpdateFailsafeConsumptionActivePowerLimit"
27+
DataUpdateFailsafeConsumptionActivePowerLimit api.EventType = "uclpcserver-DataUpdateFailsafeConsumptionActivePowerLimit"
2828

2929
// Minimum time the Controllable System remains in "failsafe state" unless conditions
3030
// specified in this Use Case permit leaving the "failsafe state" data update received
3131
//
3232
// Use `FailsafeDurationMinimum` to get the current data
3333
//
3434
// Use Case LPC, Scenario 2
35-
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"
35+
DataUpdateFailsafeDurationMinimum api.EventType = "uclpcserver-DataUpdateFailsafeDurationMinimum"
3636
)

uclpp/types.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ const (
88
// Use `ProductionLimit` to get the current data
99
//
1010
// Use Case LPC, Scenario 1
11-
DataUpdateLimit api.EventType = "DataUpdateLimit"
11+
DataUpdateLimit api.EventType = "uclpp-DataUpdateLimit"
1212

1313
// Failsafe limit for the produced active (real) power of the
1414
// Controllable System data updated
1515
//
1616
// Use `FailsafeProductionActivePowerLimit` to get the current data
1717
//
1818
// Use Case LPC, Scenario 2
19-
DataUpdateFailsafeProductionActivePowerLimit api.EventType = "DataUpdateFailsafeProductionActivePowerLimit"
19+
DataUpdateFailsafeProductionActivePowerLimit api.EventType = "uclpp-DataUpdateFailsafeProductionActivePowerLimit"
2020

2121
// Minimum time the Controllable System remains in "failsafe state" unless conditions
2222
// specified in this Use Case permit leaving the "failsafe state" data updated
2323
//
2424
// Use `FailsafeDurationMinimum` to get the current data
2525
//
2626
// Use Case LPC, Scenario 2
27-
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"
27+
DataUpdateFailsafeDurationMinimum api.EventType = "uclpp-DataUpdateFailsafeDurationMinimum"
2828
)

uclppserver/types.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@ const (
88
// Use `ProductionLimit` to get the current data
99
//
1010
// Use Case LPC, Scenario 1
11-
DataUpdateLimit api.EventType = "DataUpdateLimit"
11+
DataUpdateLimit api.EventType = "uclppserver-DataUpdateLimit"
1212

1313
// An incoming load control obligation limit needs to be approved or denied
1414
//
1515
// Use `PendingProductionLimits` to get the currently pending write approval requests
1616
// and invoke `ApproveOrDenyProductionLimit` for each
1717
//
1818
// Use Case LPC, Scenario 1
19-
WriteApprovalRequired api.EventType = "WriteApprovalRequired"
19+
WriteApprovalRequired api.EventType = "uclppserver-WriteApprovalRequired"
2020

2121
// Failsafe limit for the produced active (real) power of the
2222
// Controllable System data update received
2323
//
2424
// Use `FailsafeProductionActivePowerLimit` to get the current data
2525
//
2626
// Use Case LPC, Scenario 2
27-
DataUpdateFailsafeProductionActivePowerLimit api.EventType = "DataUpdateFailsafeProductionActivePowerLimit"
27+
DataUpdateFailsafeProductionActivePowerLimit api.EventType = "uclppserver-DataUpdateFailsafeProductionActivePowerLimit"
2828

2929
// Minimum time the Controllable System remains in "failsafe state" unless conditions
3030
// specified in this Use Case permit leaving the "failsafe state" data update received
3131
//
3232
// Use `FailsafeDurationMinimum` to get the current data
3333
//
3434
// Use Case LPC, Scenario 2
35-
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"
35+
DataUpdateFailsafeDurationMinimum api.EventType = "uclppserver-DataUpdateFailsafeDurationMinimum"
3636
)

ucmgcp/types.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,47 @@ const (
99
// Use `PowerLimitationFactor` to get the current data
1010
//
1111
// Use Case MGCP, Scenario 2
12-
DataUpdatePowerLimitationFactor api.EventType = "DataUpdatePowerLimitationFactor"
12+
DataUpdatePowerLimitationFactor api.EventType = "ucmgcp-DataUpdatePowerLimitationFactor"
1313

1414
// Grid momentary power consumption/production data updated
1515
//
1616
// Use `Power` to get the current data
1717
//
1818
// Use Case MGCP, Scenario 2
19-
DataUpdatePower api.EventType = "DataUpdatePower"
19+
DataUpdatePower api.EventType = "ucmgcp-DataUpdatePower"
2020

2121
// Total grid feed in energy data updated
2222
//
2323
// Use `EnergyFeedIn` to get the current data
2424
//
2525
// Use Case MGCP, Scenario 3
26-
DataUpdateEnergyFeedIn api.EventType = "DataUpdateEnergyFeedIn"
26+
DataUpdateEnergyFeedIn api.EventType = "ucmgcp-DataUpdateEnergyFeedIn"
2727

2828
// Total grid consumed energy data updated
2929
//
3030
// Use `EnergyConsumed` to get the current data
3131
//
3232
// Use Case MGCP, Scenario 4
33-
DataUpdateEnergyConsumed api.EventType = "DataUpdateEnergyConsumed"
33+
DataUpdateEnergyConsumed api.EventType = "ucmgcp-DataUpdateEnergyConsumed"
3434

3535
// Phase specific momentary current consumption/production phase detail data updated
3636
//
3737
// Use `CurrentPerPhase` to get the current data
3838
//
3939
// Use Case MGCP, Scenario 5
40-
DataUpdateCurrentPerPhase api.EventType = "DataUpdateCurrentPerPhase"
40+
DataUpdateCurrentPerPhase api.EventType = "ucmgcp-DataUpdateCurrentPerPhase"
4141

4242
// Phase specific voltage at the grid connection point
4343
//
4444
// Use `VoltagePerPhase` to get the current data
4545
//
4646
// Use Case MGCP, Scenario 6
47-
DataUpdateVoltagePerPhase api.EventType = "DataUpdateVoltagePerPhase"
47+
DataUpdateVoltagePerPhase api.EventType = "ucmgcp-DataUpdateVoltagePerPhase"
4848

4949
// Grid frequency data updated
5050
//
5151
// Use `Frequency` to get the current data
5252
//
5353
// Use Case MGCP, Scenario 7
54-
DataUpdateFrequency api.EventType = "DataUpdateFrequency"
54+
DataUpdateFrequency api.EventType = "ucmgcp-DataUpdateFrequency"
5555
)

0 commit comments

Comments
 (0)