Interface Constraint

    • Method Detail

      • getRequiredDeclarations

        Declaration[] getRequiredDeclarations()
        Returns all the declarations required by the given constraint implementation.
        Returns:
      • replaceDeclaration

        void replaceDeclaration​(Declaration oldDecl,
                                Declaration newDecl)
        When a rule contains multiple logical branches, i.e., makes use of 'OR' CE, it is required to clone patterns and declarations for each logical branch. Since this is done at ReteOO build type, when constraints were already created, eventually some constraints need to update their references to the declarations.
        Parameters:
        oldDecl -
        newDecl -
      • clone

        Constraint clone()
        Clones the constraint
        Returns:
      • isTemporal

        boolean isTemporal()
        Returns true in case this constraint is a temporal constraint
        Returns:
      • getListenedPropertyMask

        default BitMask getListenedPropertyMask​(Class modifiedClass,
                                                List<String> settableProperties)
      • registerEvaluationContext

        default void registerEvaluationContext​(BuildContext buildContext)
      • mergeEvaluationContext

        default void mergeEvaluationContext​(Constraint other)
      • addPackageNames

        default void addPackageNames​(Collection<String> otherPkgs)