Object HierarchyValidator

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean isValid(KpiHierarchy kpiHierarchy, Boolean strict) Validates the semantic structure of the given KpiHierarchy.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • isValid

         final Boolean isValid(KpiHierarchy kpiHierarchy, Boolean strict)

        Validates the semantic structure of the given KpiHierarchy.

        Checks edge weight sums (must always be 1.0).

        Uses KpiCalculationStrategy isValid method on each node.

        Parameters:
        kpiHierarchy - hierarchy to validate.
        strict - validation mode.
        Returns:

        if the hierarchy is valid.