Class InstanceNotEqualsConstraint

    • Constructor Detail

      • InstanceNotEqualsConstraint

        public InstanceNotEqualsConstraint()
      • InstanceNotEqualsConstraint

        public InstanceNotEqualsConstraint​(Pattern otherPattern)
    • Method Detail

      • 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
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • 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
      • getOtherPattern

        public Pattern getOtherPattern()
      • 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:
      • isAllowed

        public boolean isAllowed​(ContextEntry entry)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

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

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object