Class AbstractEvcsCluster

    • Constructor Detail

      • AbstractEvcsCluster

        public AbstractEvcsCluster​(ChannelId[] firstInitialChannelIds,
                                   ChannelId[]... furtherInitialChannelIds)
    • Method Detail

      • activate

        protected void activate​(org.osgi.service.component.ComponentContext context,
                                java.lang.String id,
                                java.lang.String alias,
                                boolean enabled)
        Description copied from class: AbstractOpenemsComponent
        Handles @Activate of implementations. Prints log output.
        Overrides:
        activate in class AbstractOpenemsComponent
        Parameters:
        context - the OSGi ComponentContext
        id - the unique OpenEMS Component ID
        alias - Human-readable name of this Component. Typically 'config.alias()'. Defaults to 'id' if empty
        enabled - is the Component enabled?
      • handleEvent

        public void handleEvent​(org.osgi.service.event.Event event)
        Call it in the implementations.
        Specified by:
        handleEvent in interface org.osgi.service.event.EventHandler
      • limitEvcss

        protected void limitEvcss()
        Depending on the excess power, the EVCSs will be charged. Distributing the maximum allowed charge distribution power (given by the implementation) to each evcs.
      • getSortedEvcss

        public abstract java.util.List<Evcs> getSortedEvcss()
        Sorted list of the EVCSs in the cluster.

        List of EVCSs that should be considered in the cluster sorted by prioritisation.

        Returns:
        Sorted EVCS list
      • getMaximumPowerToDistribute

        public abstract int getMaximumPowerToDistribute()
        Maximum power to distribute.

        Calculate the maximum power to distribute, like excess power or excess power + storage.

        Returns:
        Maximum Power in Watt
      • getMinimumChargePowerGuarantee

        public abstract int getMinimumChargePowerGuarantee()
        Guaranteed minimum charge power.

        Minimum charge power that will be used by every EV that is able to charge with that minimum.

        Returns:
        Minimum guaranteed power in Watt
      • isDebugMode

        public abstract boolean isDebugMode()
        Debug mode.

        Logging a few important situations if this returns true. This value should be given by the configuration by runtime.

        Returns:
        Debug mode or not
      • logInfoInDebugmode

        protected void logInfoInDebugmode​(org.slf4j.Logger log,
                                          java.lang.String string)