Class EdgeConfigDiff

java.lang.Object
io.openems.common.types.EdgeConfigDiff

public class EdgeConfigDiff extends Object
  • Constructor Details

    • EdgeConfigDiff

      public EdgeConfigDiff()
  • Method Details

    • diff

      public static EdgeConfigDiff diff(EdgeConfig newConfig, EdgeConfig oldConfig)
      Find difference between two EdgeConfigs.
      Parameters:
      newConfig - the new EdgeConfig
      oldConfig - the old EdgeConfig
      Returns:
      an instance of EdgeConfigDiff
    • getAsHtml

      public String getAsHtml()
      Formats the Diff as a HTML table.
      Returns:
      a String with the HTML code
    • getAsText

      public String getAsText()
      Formats the Diff as Text.
      Returns:
      a String representing the Diff
    • getComponents

      public TreeMap<String,EdgeConfigDiff.ComponentDiff> getComponents()
    • isDifferent

      public boolean isDifferent()
      Gets whether this diff is not empty, i.e. the EdgeConfig instances were different.
      Returns:
      true for different EdgeConfigs.
    • toString

      public String toString()
      Overrides:
      toString in class Object