java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.kaco.blueplanet.hybrid10.core.BpCoreImpl
All Implemented Interfaces:
OpenemsComponent, BpCore, org.osgi.service.event.EventHandler

public class BpCoreImpl extends AbstractOpenemsComponent implements BpCore, OpenemsComponent, org.osgi.service.event.EventHandler
  • Constructor Details

    • BpCoreImpl

      public BpCoreImpl()
  • Method Details

    • deactivate

      protected void deactivate()
      Description copied from class: AbstractOpenemsComponent
      Handles @Deactivate of implementations. Prints log output.
      Overrides:
      deactivate in class AbstractOpenemsComponent
    • getBpData

      public BpData getBpData()
      Description copied from interface: BpCore
      Gets the BpData, including BatteryData, InverterData, etc.
      Specified by:
      getBpData in interface BpCore
      Returns:
      BpData, null if data is not available - e.g. on communication error
    • getStableVersion

      public StableVersion getStableVersion()
      Description copied from interface: BpCore
      Gets the StableVersion.
      Specified by:
      getStableVersion in interface BpCore
      Returns:
      StableVersion
    • isDefaultUser

      public boolean isDefaultUser()
      Description copied from interface: BpCore
      Is the default user logged in?.
      Specified by:
      isDefaultUser in interface BpCore
      Returns:
      true if the default password for user was not changed
    • getMatchingLocalInetAddress

      public static InetAddress getMatchingLocalInetAddress(InetAddress inetAddress)
      Gets a local IP address which is able to access the given remote IP.
      Parameters:
      inetAddress - the remote IP
      Returns:
      a local IP address or null if no match was found
    • handleEvent

      public void handleEvent(org.osgi.service.event.Event event)
      Specified by:
      handleEvent in interface org.osgi.service.event.EventHandler