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 TypeMethodDescriptionint
arity()
<T> FunctionalQuery
<T> asFunction
(Class<T> type) static DnfBuilder
builder()
static DnfBuilder
static DnfBuilder
builderFrom
(Dnf original) boolean
equals
(LiteralEqualityHelper helper, Constraint other) boolean
equalsWithSubstitution
(DnfEqualityChecker callEqualityChecker, Dnf other) int
boolean
name()
static Dnf
of
(String name, Consumer<DnfBuilder> callback) static Dnf
of
(Consumer<DnfBuilder> callback) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface tools.refinery.logic.Constraint
aggregateBy, aggregateBy, call, call, call, callTransitive, count, count, invalidIndex, leftJoinBy, leftJoinBy
-
Method Details
-
name
- Specified by:
name
in interfaceConstraint
-
isExplicitlyNamed
public boolean isExplicitlyNamed() -
getUniqueName
-
getSymbolicParameters
-
getParameters
- Specified by:
getParameters
in interfaceConstraint
-
getFunctionalDependencies
-
arity
public int arity()- Specified by:
arity
in interfaceConstraint
-
getClauses
-
asRelation
-
asFunction
-
getReduction
- Specified by:
getReduction
in interfaceConstraint
-
equalsWithSubstitution
-
equals
- Specified by:
equals
in interfaceConstraint
-
hashCodeWithSubstitution
public int hashCodeWithSubstitution() -
toString
-
toReferenceString
- Specified by:
toReferenceString
in interfaceConstraint
-
toDefinitionString
-
builder
-
builder
-
builderFrom
-
of
-
of
-