public class EvcsClusterPeakShaving extends AbstractEvcsCluster implements OpenemsComponent, Evcs, org.osgi.service.event.EventHandler
AbstractEvcsCluster.ChannelId
Evcs.ChannelId
Modifier and Type | Field and Description |
---|---|
protected org.osgi.service.cm.ConfigurationAdmin |
cm |
protected ComponentManager |
componentManager |
protected Sum |
sum |
Constructor and Description |
---|
EvcsClusterPeakShaving() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEvcs(Evcs evcs) |
protected void |
deactivate()
Handles @Deactivate of implementations.
|
int |
getMaximumPowerToDistribute()
Maximum power to distribute.
|
int |
getMinimumChargePowerGuarantee()
Guaranteed minimum charge power.
|
java.util.List<Evcs> |
getSortedEvcss()
Sorted list of the EVCSs in the cluster.
|
void |
handleEvent(org.osgi.service.event.Event event)
Call it in the implementations.
|
boolean |
isDebugMode()
Debug mode.
|
protected void |
removeEvcs(Evcs evcs) |
activate, limitEvcss, logInfoInDebugmode
_channel, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_setActiveConsumptionEnergy, _setActiveConsumptionEnergy, _setChargePower, _setChargePower, _setChargingstationCommunicationFailed, _setChargingType, _setEnergySession, _setEnergySession, _setMaximumHardwarePower, _setMaximumHardwarePower, _setMaximumPower, _setMaximumPower, _setMinimumHardwarePower, _setMinimumHardwarePower, _setMinimumPower, _setMinimumPower, _setPhases, _setPhases, _setStatus, getActiveConsumptionEnergy, getActiveConsumptionEnergyChannel, getChargePower, getChargePowerChannel, getChargingstationCommunicationFailed, getChargingstationCommunicationFailedChannel, getChargingType, getChargingTypeChannel, getEnergySession, getEnergySessionChannel, getMaximumHardwarePower, getMaximumHardwarePowerChannel, getMaximumPower, getMaximumPowerChannel, getMinimumHardwarePower, getMinimumHardwarePowerChannel, getMinimumPower, getMinimumPowerChannel, getModbusSlaveNatureTable, getPhases, getPhasesChannel, getStatus, getStatusChannel
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, logDebug, logError, logInfo, logWarn, serviceFactoryPid, servicePid, updateConfigurationProperty, updateReferenceFilter
protected org.osgi.service.cm.ConfigurationAdmin cm
protected ComponentManager componentManager
protected Sum sum
protected void addEvcs(Evcs evcs)
protected void removeEvcs(Evcs evcs)
protected void deactivate()
AbstractOpenemsComponent
deactivate
in class AbstractOpenemsComponent
public void handleEvent(org.osgi.service.event.Event event)
AbstractEvcsCluster
handleEvent
in interface org.osgi.service.event.EventHandler
handleEvent
in class AbstractEvcsCluster
public java.util.List<Evcs> getSortedEvcss()
AbstractEvcsCluster
List of EVCSs that should be considered in the cluster sorted by prioritisation.
getSortedEvcss
in class AbstractEvcsCluster
public int getMaximumPowerToDistribute()
AbstractEvcsCluster
Calculate the maximum power to distribute, like excess power or excess power + storage.
getMaximumPowerToDistribute
in class AbstractEvcsCluster
public int getMinimumChargePowerGuarantee()
AbstractEvcsCluster
Minimum charge power that will be used by every EV that is able to charge with that minimum.
getMinimumChargePowerGuarantee
in class AbstractEvcsCluster
public boolean isDebugMode()
AbstractEvcsCluster
Logging a few important situations if this returns true. This value should be given by the configuration by runtime.
isDebugMode
in class AbstractEvcsCluster