Class EvcsClusterPeakShaving

    • Field Detail

      • cm

        protected org.osgi.service.cm.ConfigurationAdmin cm
      • sum

        protected Sum sum
    • Constructor Detail

      • EvcsClusterPeakShaving

        public EvcsClusterPeakShaving()
    • Method Detail

      • addEvcs

        protected void addEvcs​(Evcs evcs)
      • removeEvcs

        protected void removeEvcs​(Evcs evcs)
      • handleEvent

        public void handleEvent​(org.osgi.service.event.Event event)
        Description copied from class: AbstractEvcsCluster
        Call it in the implementations.
        Specified by:
        handleEvent in interface org.osgi.service.event.EventHandler
        Overrides:
        handleEvent in class AbstractEvcsCluster
      • getSortedEvcss

        public java.util.List<Evcs> getSortedEvcss()
        Description copied from class: AbstractEvcsCluster
        Sorted list of the EVCSs in the cluster.

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

        Specified by:
        getSortedEvcss in class AbstractEvcsCluster
        Returns:
        Sorted EVCS list
      • getMaximumPowerToDistribute

        public int getMaximumPowerToDistribute()
        Description copied from class: AbstractEvcsCluster
        Maximum power to distribute.

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

        Specified by:
        getMaximumPowerToDistribute in class AbstractEvcsCluster
        Returns:
        Maximum Power in Watt
      • getMinimumChargePowerGuarantee

        public int getMinimumChargePowerGuarantee()
        Description copied from class: AbstractEvcsCluster
        Guaranteed minimum charge power.

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

        Specified by:
        getMinimumChargePowerGuarantee in class AbstractEvcsCluster
        Returns:
        Minimum guaranteed power in Watt
      • isDebugMode

        public boolean isDebugMode()
        Description copied from class: AbstractEvcsCluster
        Debug mode.

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

        Specified by:
        isDebugMode in class AbstractEvcsCluster
        Returns:
        Debug mode or not