Documentation ¶
Index ¶
- Constants
- type CEVC
- func (e *CEVC) AddFeatures()
- func (e *CEVC) ChargePlan(entity spineapi.EntityRemoteInterface) (ucapi.ChargePlan, error)
- func (e *CEVC) ChargePlanConstraints(entity spineapi.EntityRemoteInterface) ([]ucapi.DurationSlotValue, error)
- func (e *CEVC) ChargeStrategy(entity spineapi.EntityRemoteInterface) ucapi.EVChargeStrategyType
- func (e *CEVC) EnergyDemand(entity spineapi.EntityRemoteInterface) (ucapi.Demand, error)
- func (e *CEVC) HandleEvent(payload spineapi.EventPayload)
- func (e *CEVC) IncentiveConstraints(entity spineapi.EntityRemoteInterface) (ucapi.IncentiveSlotConstraints, error)
- func (e *CEVC) TimeSlotConstraints(entity spineapi.EntityRemoteInterface) (ucapi.TimeSlotConstraints, error)
- func (e *CEVC) WriteIncentiveTableDescriptions(entity spineapi.EntityRemoteInterface, data []ucapi.IncentiveTariffDescription) error
- func (e *CEVC) WriteIncentives(entity spineapi.EntityRemoteInterface, data []ucapi.DurationSlotValue) error
- func (e *CEVC) WritePowerLimits(entity spineapi.EntityRemoteInterface, data []ucapi.DurationSlotValue) error
Constants ¶
View Source
const ( // Update of the list of remote entities supporting the Use Case // // Use `RemoteEntities` to get the current data UseCaseSupportUpdate api.EventType = "cem-cevc-UseCaseSupportUpdate" // EV provided an energy demand // // Use `EnergyDemand` to get the current data DataUpdateEnergyDemand api.EventType = "cem-cevc-DataUpdateEnergyDemand" // EV provided a charge plan constraints // // Use `TimeSlotConstraints` to get the current data DataUpdateTimeSlotConstraints api.EventType = "cem-cevc-DataUpdateTimeSlotConstraints" // EV incentive table data updated // // Use `IncentiveConstraints` to get the current data DataUpdateIncentiveTable api.EventType = "cem-cevc-DataUpdateIncentiveTable" // EV requested an incentive table, call to WriteIncentiveTableDescriptions required DataRequestedIncentiveTableDescription api.EventType = "cem-cevc-DataRequestedIncentiveTableDescription" // EV requested power limits, call to WritePowerLimits and WriteIncentives required DataRequestedPowerLimitsAndIncentives api.EventType = "cem-cevc-DataRequestedPowerLimitsAndIncentives" // EV provided a charge plan // // Use `ChargePlanConstraints` to get the current data DataUpdateChargePlanConstraints api.EventType = "cem-cevc-DataUpdateChargePlanConstraints" // EV provided a charge plan // // Use `ChargePlan` to get the current data DataUpdateChargePlan api.EventType = "cem-cevc-DataUpdateChargePlan" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CEVC ¶
type CEVC struct {
*usecase.UseCaseBase
}
func NewCEVC ¶
func NewCEVC(localEntity spineapi.EntityLocalInterface, eventCB api.EntityEventCallback) *CEVC
func (*CEVC) AddFeatures ¶
func (e *CEVC) AddFeatures()
func (*CEVC) ChargePlan ¶
func (e *CEVC) ChargePlan(entity spineapi.EntityRemoteInterface) (ucapi.ChargePlan, error)
func (*CEVC) ChargePlanConstraints ¶
func (e *CEVC) ChargePlanConstraints(entity spineapi.EntityRemoteInterface) ([]ucapi.DurationSlotValue, error)
func (*CEVC) ChargeStrategy ¶
func (e *CEVC) ChargeStrategy(entity spineapi.EntityRemoteInterface) ucapi.EVChargeStrategyType
returns the current charging strategy
func (*CEVC) EnergyDemand ¶
returns the current energy demand in Wh and the duration
func (*CEVC) HandleEvent ¶
func (e *CEVC) HandleEvent(payload spineapi.EventPayload)
handle SPINE events
func (*CEVC) IncentiveConstraints ¶
func (e *CEVC) IncentiveConstraints(entity spineapi.EntityRemoteInterface) (ucapi.IncentiveSlotConstraints, error)
returns the minimum and maximum number of incentive slots allowed
func (*CEVC) TimeSlotConstraints ¶
func (e *CEVC) TimeSlotConstraints(entity spineapi.EntityRemoteInterface) (ucapi.TimeSlotConstraints, error)
returns the constraints for the time slots
func (*CEVC) WriteIncentiveTableDescriptions ¶
func (e *CEVC) WriteIncentiveTableDescriptions(entity spineapi.EntityRemoteInterface, data []ucapi.IncentiveTariffDescription) error
inform the EVSE about used currency and boundary units
SPINE UC CoordinatedEVCharging 2.4.3
func (*CEVC) WriteIncentives ¶
func (e *CEVC) WriteIncentives(entity spineapi.EntityRemoteInterface, data []ucapi.DurationSlotValue) error
send incentives to the EV if no data is provided, default incentives with the same price for 7 days will be sent
func (*CEVC) WritePowerLimits ¶
func (e *CEVC) WritePowerLimits(entity spineapi.EntityRemoteInterface, data []ucapi.DurationSlotValue) error
send power limits to the EV if no data is provided, default power limits with the max possible value for 7 days will be sent
Click to show internal directories.
Click to hide internal directories.