Constructor and Description |
---|
NegatedCondition(Condition initCondition)
Creates a new negated condition with the condition provided as argument
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if the current instance and the object are identical, and false
otherwise
|
RuleGrounding |
getGroundings(Assignment input)
Returns the set of possible groundings derived from the condition, based on
the given assignment.
|
Condition |
getInitCondition()
Returns the condition to negate
|
java.util.Collection<Template> |
getInputVariables()
Returns the input variables for the condition (which are the same as the ones
for the condition to negate)
|
java.util.Set<java.lang.String> |
getSlots()
Returns the list of slots in the condition
|
int |
hashCode()
Returns the hashcode for the condition
|
boolean |
isSatisfiedBy(Assignment input)
Returns true if the condition to negate is *not* satisfied, and false if it is
satisfied
|
java.lang.String |
toString()
Returns the string representation of the condition
|
public NegatedCondition(Condition initCondition)
initCondition
- the condition to negatepublic java.util.Collection<Template> getInputVariables()
getInputVariables
in interface Condition
public RuleGrounding getGroundings(Assignment input)
Condition
getGroundings
in interface Condition
input
- the assignment from which to calculate the groundingspublic boolean isSatisfiedBy(Assignment input)
isSatisfiedBy
in interface Condition
input
- the input assignment to verifypublic Condition getInitCondition()
public java.util.Set<java.lang.String> getSlots()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to compare