Class AbstractContext<PARENT extends OpenemsComponent>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PARENT getParent()
      Gets the parent OpenemsComponent.
      void logDebug​(org.slf4j.Logger log, java.lang.String message)
      Log a debug message including the Component ID.
      void logError​(org.slf4j.Logger log, java.lang.String message)
      Log an error message including the Component ID.
      void logInfo​(org.slf4j.Logger log, java.lang.String message)
      Log an info message including the Component ID.
      void logWarn​(org.slf4j.Logger log, java.lang.String message)
      Log a warn message including the Component ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractContext

        public AbstractContext()
        Constructs an AbstractContext without useful logging.
    • Method Detail

      • logDebug

        public void logDebug​(org.slf4j.Logger log,
                             java.lang.String message)
        Log a debug message including the Component ID.
        Parameters:
        log - the Logger instance
        message - the message
      • logInfo

        public void logInfo​(org.slf4j.Logger log,
                            java.lang.String message)
        Log an info message including the Component ID.
        Parameters:
        log - the Logger instance
        message - the message
      • logWarn

        public void logWarn​(org.slf4j.Logger log,
                            java.lang.String message)
        Log a warn message including the Component ID.
        Parameters:
        log - the Logger instance
        message - the message
      • logError

        public void logError​(org.slf4j.Logger log,
                             java.lang.String message)
        Log an error message including the Component ID.
        Parameters:
        log - the Logger instance
        message - the message