Class GridContainerValidationUtils

java.lang.Object
edu.ie3.datamodel.utils.validation.ValidationUtils
edu.ie3.datamodel.utils.validation.GridContainerValidationUtils

public class GridContainerValidationUtils extends ValidationUtils
  • Method Details

    • check

      protected static void check(GridContainer gridContainer)
      Checks a complete grid data container
      Parameters:
      gridContainer - Grid model to check
    • checkRawGridElements

      protected static void checkRawGridElements(RawGridElements rawGridElements)
      Checks the validity of given RawGridElements. The single elements are checked as well as the fact, that none of the assets is connected to a node, that is not in the set of nodes.
      Parameters:
      rawGridElements - Raw grid elements
      Throws:
      InvalidGridException - If something is wrong
    • checkSystemParticipants

      protected static void checkSystemParticipants(SystemParticipants systemParticipants, Set<NodeInput> nodes)
      Checks the validity of each and every system participant. Moreover, it checks, if the systems are connected to a node that is not in the provided set
      Parameters:
      systemParticipants - The system participants
      nodes - Set of already known nodes
    • checkGraphicElements

      protected static void checkGraphicElements(GraphicElements graphicElements, Set<NodeInput> nodes, Set<LineInput> lines)
      Checks the given graphic elements for validity
      Parameters:
      graphicElements - Elements to check
      nodes - Already known and checked nodes
      lines - Already known and checked lines