Class GridContainerValidationUtils
java.lang.Object
edu.ie3.datamodel.utils.validation.ValidationUtils
edu.ie3.datamodel.utils.validation.GridContainerValidationUtils
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
check
(GridContainer gridContainer) Checks a complete grid data containerprotected static void
checkGraphicElements
(GraphicElements graphicElements, Set<NodeInput> nodes, Set<LineInput> lines) Checks the given graphic elements for validityprotected static void
checkRawGridElements
(RawGridElements rawGridElements) Checks the validity of givenRawGridElements
.protected static void
checkSystemParticipants
(SystemParticipants systemParticipants, Set<NodeInput> nodes) Checks the validity of each and every system participant.Methods inherited from class edu.ie3.datamodel.utils.validation.ValidationUtils
check, checkForDuplicateUuids, checkNonNull, checkNotImplementedException, detectMalformedQuantities, detectNegativeQuantities, detectPositiveQuantities, detectZeroOrNegativeQuantities, distinctByKey
-
Method Details
-
check
Checks a complete grid data container- Parameters:
gridContainer
- Grid model to check
-
checkRawGridElements
Checks the validity of givenRawGridElements
. 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 participantsnodes
- 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 checknodes
- Already known and checked nodeslines
- Already known and checked lines
-