Class NegConstraint

    • Constructor Detail

      • NegConstraint

        public NegConstraint()
      • NegConstraint

        public NegConstraint​(boolean operator)
    • Method Detail

      • getRequiredDeclarations

        public Declaration[] getRequiredDeclarations()
        Description copied from interface: Constraint
        Returns all the declarations required by the given constraint implementation.
        Specified by:
        getRequiredDeclarations in interface Constraint
        Returns:
      • replaceDeclaration

        public void replaceDeclaration​(Declaration oldDecl,
                                       Declaration newDecl)
        Description copied from interface: Constraint
        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.
        Specified by:
        replaceDeclaration in interface Constraint
      • clone

        public NegConstraint clone()
        Description copied from interface: Constraint
        Clones the constraint
        Specified by:
        clone in interface Constraint
        Overrides:
        clone in class java.lang.Object
        Returns:
      • isTemporal

        public boolean isTemporal()
        Description copied from interface: Constraint
        Returns true in case this constraint is a temporal constraint
        Specified by:
        isTemporal in interface Constraint
        Returns:
      • setInUse

        public boolean setInUse()
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object