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

Commit

Permalink
Update usecase event name values to be unique (#42)
Browse files Browse the repository at this point in the history
This allows the messages to be handled in a combined handler
  • Loading branch information
DerAndereAndi committed May 23, 2024
2 parents c6abbbc + f97e616 commit 7d59c49
Show file tree
Hide file tree
Showing 15 changed files with 64 additions and 64 deletions.
14 changes: 7 additions & 7 deletions uccevc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,39 @@ const (
// EV provided an energy demand
//
// Use `EnergyDemand` to get the current data
DataUpdateEnergyDemand api.EventType = "DataUpdateEnergyDemand"
DataUpdateEnergyDemand api.EventType = "uccevc-DataUpdateEnergyDemand"

// Scenario 2

// EV provided a charge plan constraints
//
// Use `TimeSlotConstraints` to get the current data
DataUpdateTimeSlotConstraints api.EventType = "DataUpdateTimeSlotConstraints"
DataUpdateTimeSlotConstraints api.EventType = "uccevc-DataUpdateTimeSlotConstraints"

// Scenario 3

// EV incentive table data updated
//
// Use `IncentiveConstraints` to get the current data
DataUpdateIncentiveTable api.EventType = "DataUpdateIncentiveTable"
DataUpdateIncentiveTable api.EventType = "uccevc-DataUpdateIncentiveTable"

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

// Scenario 2 & 3

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

// Scenario 4

// EV provided a charge plan
//
// Use `ChargePlanConstraints` to get the current data
DataUpdateChargePlanConstraints api.EventType = "DataUpdateChargePlanConstraints"
DataUpdateChargePlanConstraints api.EventType = "uccevc-DataUpdateChargePlanConstraints"

// EV provided a charge plan
//
// Use `ChargePlan` to get the current data
DataUpdateChargePlan api.EventType = "DataUpdateChargePlan"
DataUpdateChargePlan api.EventType = "uccevc-DataUpdateChargePlan"
)
18 changes: 9 additions & 9 deletions ucevcc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,57 +15,57 @@ const (
// An EV was connected
//
// Use Case EVCC, Scenario 1
EvConnected api.EventType = "EvConnected"
EvConnected api.EventType = "ucevcc-EvConnected"

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

// EV charge state data was updated
//
// Use `ChargeState` to get the current data
DataUpdateChargeState api.EventType = "DataUpdateChargeState"
DataUpdateChargeState api.EventType = "ucevcc-DataUpdateChargeState"

// EV communication standard data was updated
//
// Use `CommunicationStandard` to get the current data
//
// Use Case EVCC, Scenario 2
DataUpdateCommunicationStandard api.EventType = "DataUpdateCommunicationStandard"
DataUpdateCommunicationStandard api.EventType = "ucevcc-DataUpdateCommunicationStandard"

// EV asymmetric charging data was updated
//
// Use `AsymmetricChargingSupport` to get the current data
DataUpdateAsymmetricChargingSupport api.EventType = "DataUpdateAsymmetricChargingSupport"
DataUpdateAsymmetricChargingSupport api.EventType = "ucevcc-DataUpdateAsymmetricChargingSupport"

// EV identificationdata was updated
//
// Use `Identifications` to get the current data
//
// Use Case EVCC, Scenario 4
DataUpdateIdentifications api.EventType = "DataUpdateIdentifications"
DataUpdateIdentifications api.EventType = "ucevcc-DataUpdateIdentifications"

// EV manufacturer data was updated
//
// Use `ManufacturerData` to get the current data
//
// Use Case EVCC, Scenario 5
DataUpdateManufacturerData api.EventType = "DataUpdateManufacturerData"
DataUpdateManufacturerData api.EventType = "ucevcc-DataUpdateManufacturerData"

// EV charging power limits
//
// Use `ChargingPowerLimits` to get the current data
//
// Use Case EVCC, Scenario 6
DataUpdateCurrentLimits api.EventType = "DataUpdateCurrentLimits"
DataUpdateCurrentLimits api.EventType = "ucevcc-DataUpdateCurrentLimits"

// EV permitted power limits updated
//
// Use `IsInSleepMode` to get the current data
//
// Use Case EVCC, Scenario 7
DataUpdateIsInSleepMode api.EventType = "DataUpdateIsInSleepMode"
DataUpdateIsInSleepMode api.EventType = "ucevcc-DataUpdateIsInSleepMode"
)
8 changes: 4 additions & 4 deletions ucevcem/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ const (
// Use `PhasesConnected` to get the current data
//
// Use Case EVCEM, Scenario 1
DataUpdatePhasesConnected api.EventType = "DataUpdatePhasesConnected"
DataUpdatePhasesConnected api.EventType = "ucevcem-DataUpdatePhasesConnected"

// EV current measurement data updated
//
// Use `CurrentPerPhase` to get the current data
//
// Use Case EVCEM, Scenario 1
DataUpdateCurrentPerPhase api.EventType = "DataUpdateCurrentPerPhase"
DataUpdateCurrentPerPhase api.EventType = "ucevcem-DataUpdateCurrentPerPhase"

// EV power measurement data updated
//
// Use `PowerPerPhase` to get the current data
//
// Use Case EVCEM, Scenario 2
DataUpdatePowerPerPhase api.EventType = "DataUpdatePowerPerPhase"
DataUpdatePowerPerPhase api.EventType = "ucevcem-DataUpdatePowerPerPhase"

// EV charging energy measurement data updated
//
// Use `EnergyCharged` to get the current data
//
// Use Case EVCEM, Scenario 3
DataUpdateEnergyCharged api.EventType = "DataUpdateEnergyCharged"
DataUpdateEnergyCharged api.EventType = "ucevcem-DataUpdateEnergyCharged"
)
8 changes: 4 additions & 4 deletions ucevsecc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import "github.com/enbility/cemd/api"

const (
// An EVSE was connected
EvseConnected api.EventType = "EvseConnected"
EvseConnected api.EventType = "ucevsecc-EvseConnected"

// An EVSE was disconnected
EvseDisconnected api.EventType = "EvseDisconnected"
EvseDisconnected api.EventType = "ucevsecc-EvseDisconnected"

// EVSE manufacturer data was updated
//
Expand All @@ -16,7 +16,7 @@ const (
// Use Case EVSECC, Scenario 1
//
// The entity of the message is the entity of the EVSE
DataUpdateManufacturerData api.EventType = "DataUpdateManufacturerData"
DataUpdateManufacturerData api.EventType = "ucevsecc-DataUpdateManufacturerData"

// EVSE operation state was updated
//
Expand All @@ -25,5 +25,5 @@ const (
// Use Case EVSECC, Scenario 2
//
// The entity of the message is the entity of the EVSE
DataUpdateOperatingState api.EventType = "DataUpdateOperatingState"
DataUpdateOperatingState api.EventType = "ucevsecc-DataUpdateOperatingState"
)
2 changes: 1 addition & 1 deletion ucevsoc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ const (
// Use `StateOfCharge` to get the current data
//
// Use Case EVSOC, Scenario 1
DataUpdateStateOfCharge api.EventType = "DataUpdateStateOfCharge"
DataUpdateStateOfCharge api.EventType = "ucevsoc-DataUpdateStateOfCharge"
)
6 changes: 3 additions & 3 deletions uclpc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ const (
// Use `ConsumptionLimit` to get the current data
//
// Use Case LPC, Scenario 1
DataUpdateLimit api.EventType = "DataUpdateLimit"
DataUpdateLimit api.EventType = "uclpc-DataUpdateLimit"

// Failsafe limit for the consumed active (real) power of the
// Controllable System data updated
//
// Use `FailsafeConsumptionActivePowerLimit` to get the current data
//
// Use Case LPC, Scenario 2
DataUpdateFailsafeConsumptionActivePowerLimit api.EventType = "DataUpdateFailsafeConsumptionActivePowerLimit"
DataUpdateFailsafeConsumptionActivePowerLimit api.EventType = "uclpc-DataUpdateFailsafeConsumptionActivePowerLimit"

// Minimum time the Controllable System remains in "failsafe state" unless conditions
// specified in this Use Case permit leaving the "failsafe state" data updated
//
// Use `FailsafeDurationMinimum` to get the current data
//
// Use Case LPC, Scenario 2
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"
DataUpdateFailsafeDurationMinimum api.EventType = "uclpc-DataUpdateFailsafeDurationMinimum"
)
8 changes: 4 additions & 4 deletions uclpcserver/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ const (
// Use `ConsumptionLimit` to get the current data
//
// Use Case LPC, Scenario 1
DataUpdateLimit api.EventType = "DataUpdateLimit"
DataUpdateLimit api.EventType = "uclpcserver-DataUpdateLimit"

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

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

// Minimum time the Controllable System remains in "failsafe state" unless conditions
// specified in this Use Case permit leaving the "failsafe state" data update received
//
// Use `FailsafeDurationMinimum` to get the current data
//
// Use Case LPC, Scenario 2
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"
DataUpdateFailsafeDurationMinimum api.EventType = "uclpcserver-DataUpdateFailsafeDurationMinimum"
)
6 changes: 3 additions & 3 deletions uclpp/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ const (
// Use `ProductionLimit` to get the current data
//
// Use Case LPC, Scenario 1
DataUpdateLimit api.EventType = "DataUpdateLimit"
DataUpdateLimit api.EventType = "uclpp-DataUpdateLimit"

// Failsafe limit for the produced active (real) power of the
// Controllable System data updated
//
// Use `FailsafeProductionActivePowerLimit` to get the current data
//
// Use Case LPC, Scenario 2
DataUpdateFailsafeProductionActivePowerLimit api.EventType = "DataUpdateFailsafeProductionActivePowerLimit"
DataUpdateFailsafeProductionActivePowerLimit api.EventType = "uclpp-DataUpdateFailsafeProductionActivePowerLimit"

// Minimum time the Controllable System remains in "failsafe state" unless conditions
// specified in this Use Case permit leaving the "failsafe state" data updated
//
// Use `FailsafeDurationMinimum` to get the current data
//
// Use Case LPC, Scenario 2
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"
DataUpdateFailsafeDurationMinimum api.EventType = "uclpp-DataUpdateFailsafeDurationMinimum"
)
8 changes: 4 additions & 4 deletions uclppserver/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ const (
// Use `ProductionLimit` to get the current data
//
// Use Case LPC, Scenario 1
DataUpdateLimit api.EventType = "DataUpdateLimit"
DataUpdateLimit api.EventType = "uclppserver-DataUpdateLimit"

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

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

// Minimum time the Controllable System remains in "failsafe state" unless conditions
// specified in this Use Case permit leaving the "failsafe state" data update received
//
// Use `FailsafeDurationMinimum` to get the current data
//
// Use Case LPC, Scenario 2
DataUpdateFailsafeDurationMinimum api.EventType = "DataUpdateFailsafeDurationMinimum"
DataUpdateFailsafeDurationMinimum api.EventType = "uclppserver-DataUpdateFailsafeDurationMinimum"
)
14 changes: 7 additions & 7 deletions ucmgcp/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,47 @@ const (
// Use `PowerLimitationFactor` to get the current data
//
// Use Case MGCP, Scenario 2
DataUpdatePowerLimitationFactor api.EventType = "DataUpdatePowerLimitationFactor"
DataUpdatePowerLimitationFactor api.EventType = "ucmgcp-DataUpdatePowerLimitationFactor"

// Grid momentary power consumption/production data updated
//
// Use `Power` to get the current data
//
// Use Case MGCP, Scenario 2
DataUpdatePower api.EventType = "DataUpdatePower"
DataUpdatePower api.EventType = "ucmgcp-DataUpdatePower"

// Total grid feed in energy data updated
//
// Use `EnergyFeedIn` to get the current data
//
// Use Case MGCP, Scenario 3
DataUpdateEnergyFeedIn api.EventType = "DataUpdateEnergyFeedIn"
DataUpdateEnergyFeedIn api.EventType = "ucmgcp-DataUpdateEnergyFeedIn"

// Total grid consumed energy data updated
//
// Use `EnergyConsumed` to get the current data
//
// Use Case MGCP, Scenario 4
DataUpdateEnergyConsumed api.EventType = "DataUpdateEnergyConsumed"
DataUpdateEnergyConsumed api.EventType = "ucmgcp-DataUpdateEnergyConsumed"

// Phase specific momentary current consumption/production phase detail data updated
//
// Use `CurrentPerPhase` to get the current data
//
// Use Case MGCP, Scenario 5
DataUpdateCurrentPerPhase api.EventType = "DataUpdateCurrentPerPhase"
DataUpdateCurrentPerPhase api.EventType = "ucmgcp-DataUpdateCurrentPerPhase"

// Phase specific voltage at the grid connection point
//
// Use `VoltagePerPhase` to get the current data
//
// Use Case MGCP, Scenario 6
DataUpdateVoltagePerPhase api.EventType = "DataUpdateVoltagePerPhase"
DataUpdateVoltagePerPhase api.EventType = "ucmgcp-DataUpdateVoltagePerPhase"

// Grid frequency data updated
//
// Use `Frequency` to get the current data
//
// Use Case MGCP, Scenario 7
DataUpdateFrequency api.EventType = "DataUpdateFrequency"
DataUpdateFrequency api.EventType = "ucmgcp-DataUpdateFrequency"
)
Loading

0 comments on commit 7d59c49

Please sign in to comment.