Package tools.refinery.logic.dnf
Class Dnf
java.lang.Object
tools.refinery.logic.dnf.Dnf
- All Implemented Interfaces:
Constraint
A disjunctive normal form (DNF) is a disjunction of conjunctions of literals.
-
Method Summary
Modifier and TypeMethodDescriptionintarity()<T> FunctionalQuery<T> asFunction(Class<T> type) static DnfBuilderbuilder()static DnfBuilderstatic DnfBuilderbuilderFrom(Dnf original) booleanequals(LiteralEqualityHelper helper, Constraint other) booleanequalsWithSubstitution(DnfEqualityChecker callEqualityChecker, Dnf other) intbooleanname()static Dnfof(String name, Consumer<DnfBuilder> callback) static Dnfof(Consumer<DnfBuilder> callback) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tools.refinery.logic.Constraint
aggregateBy, aggregateBy, call, call, call, callTransitive, count, count, invalidIndex, leftJoinBy, leftJoinBy
-
Method Details
-
name
- Specified by:
namein interfaceConstraint
-
isExplicitlyNamed
public boolean isExplicitlyNamed() -
getUniqueName
-
getSymbolicParameters
-
getParameters
- Specified by:
getParametersin interfaceConstraint
-
getFunctionalDependencies
-
arity
public int arity()- Specified by:
arityin interfaceConstraint
-
getClauses
-
asRelation
-
asFunction
-
getReduction
- Specified by:
getReductionin interfaceConstraint
-
equalsWithSubstitution
-
equals
- Specified by:
equalsin interfaceConstraint
-
hashCodeWithSubstitution
public int hashCodeWithSubstitution() -
toString
-
toReferenceString
- Specified by:
toReferenceStringin interfaceConstraint
-
toDefinitionString
-
builder
-
builder
-
builderFrom
-
of
-
of
-