Package tools.refinery.logic.literal
Class EquivalenceLiteral
java.lang.Object
tools.refinery.logic.literal.AbstractLiteral
tools.refinery.logic.literal.EquivalenceLiteral
- All Implemented Interfaces:
CanNegate<EquivalenceLiteral>,Literal
public final class EquivalenceLiteral
extends AbstractLiteral
implements CanNegate<EquivalenceLiteral>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequalsWithSubstitution(LiteralEqualityHelper helper, Literal other) getInputVariables(Set<? extends Variable> positiveVariablesInClause) getLeft()getPrivateVariables(Set<? extends Variable> positiveVariablesInClause) getRight()intbooleannegate()reduce()substitute(Substitution substitution) toString()Methods inherited from class tools.refinery.logic.literal.AbstractLiteral
equals, hashCode
-
Constructor Details
-
EquivalenceLiteral
-
-
Method Details
-
isPositive
public boolean isPositive() -
getLeft
-
getRight
-
getOutputVariables
- Specified by:
getOutputVariablesin interfaceLiteral
-
getInputVariables
- Specified by:
getInputVariablesin interfaceLiteral
-
getPrivateVariables
- Specified by:
getPrivateVariablesin interfaceLiteral
-
negate
- Specified by:
negatein interfaceCanNegate<EquivalenceLiteral>
-
substitute
- Specified by:
substitutein interfaceLiteral
-
reduce
-
equalsWithSubstitution
- Specified by:
equalsWithSubstitutionin interfaceLiteral- Overrides:
equalsWithSubstitutionin classAbstractLiteral
-
hashCodeWithSubstitution
- Specified by:
hashCodeWithSubstitutionin interfaceLiteral- Overrides:
hashCodeWithSubstitutionin classAbstractLiteral
-
toString
-