public abstract class PropositionalNAryConstraint extends PropositionalConstraint
Modifier and Type | Field and Description |
---|---|
protected HashSet |
children
The children of the operator.
|
Constructor and Description |
---|
PropositionalNAryConstraint()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
This method returns a shallow clone.
|
void |
consolidateVariables(AbstractMap m)
Replaces all unquantified variables with the unique copy stored as a value of the given map;
also instantiates all quantified variables and stores them in the given map.
|
boolean |
contains(PropositionalConstraint c)
Determines whether the given constraint is a term of this constraint.
|
Constraint[] |
getChildren()
Returns the children of this constraint in an array.
|
int |
size()
Returns the number of terms in this constraint.
|
CNF, DNF, moreGeneralThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, moreSpecificThan, negate, simplify, toString, write
evaluate, runVisit
protected HashSet children
public PropositionalNAryConstraint()
public void consolidateVariables(AbstractMap m)
consolidateVariables
in class Constraint
m
- The map in which to find unique copies of the variables.public Constraint[] getChildren()
getChildren
in class Constraint
public boolean contains(PropositionalConstraint c)
c
- The given constraint.true
iff the given constraint is contained in this constraint.public int size()
public Object clone()
clone
in class PropositionalConstraint
Copyright © 2016. All rights reserved.