use of com.sri.ai.grinder.sgdpllt.library.Equality in project aic-expresso by aic-sri-international.
the class AbstractSingleVariableNumericConstraintFeasibilityRegionStepSolver method getDisequals.
protected ArrayList<Expression> getDisequals() {
if (disequals == null) {
AbstractSingleVariableConstraint abstractSingleVariableConstraint = (AbstractSingleVariableConstraint) constraint;
Iterator<Expression> disequalsIterator = functionIterator(predicateIterator(abstractSingleVariableConstraint.getNegativeNormalizedAtoms(), // negative equality is disequality
e -> e.hasFunctor(FunctorConstants.EQUALITY)), e -> e.get(1));
disequals = arrayListFrom(disequalsIterator);
}
return disequals;
}
use of com.sri.ai.grinder.sgdpllt.library.Equality in project aic-expresso by aic-sri-international.
the class AbstractSingleVariableNumericConstraintFeasibilityRegionStepSolver method getEquals.
protected ArrayList<Expression> getEquals() {
if (equals == null) {
AbstractSingleVariableConstraint abstractSingleVariableConstraint = (AbstractSingleVariableConstraint) constraint;
Iterator<Expression> equalsIterator = functionIterator(predicateIterator(abstractSingleVariableConstraint.getPositiveNormalizedAtoms(), e -> e.hasFunctor(EQUALITY)), e -> e.get(1));
equals = arrayListFrom(equalsIterator);
}
return equals;
}
Aggregations