Interface FOFormulaNegation
- All Superinterfaces:
FOFormula, fr.inria.rules.dlgpemodel.api.formulas.IFormula, fr.inria.rules.dlgpemodel.api.formulas.INegation, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, Substitutable<FOFormula>, TermCompound
- All Known Implementing Classes:
FONegationImpl
public non-sealed interface FOFormulaNegation
extends FOFormula, fr.inria.rules.dlgpemodel.api.formulas.INegation
Representation of the negation of a sub formula
- Author:
- Florent Tornil
-
Field Summary
Fields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITER -
Method Summary
Modifier and TypeMethodDescriptiondefault FOFormulaNegationapplySubstitution(Substitution substitution) Applies a substitution without evaluating nested functions.applySubstitution(Substitution substitution, boolean evaluate) Applies a substitution to this formula.The given set does not represent any meaning on the formula as conjunctions, disjunctions and negations will be merged together.element()Returns the negated sub-formula.Recursively list all constantsRecursively list all literalsStreams the predicates used by this formula.Recursively list all variablesdefault booleanIndicates whether this formula node is a negation.Methods inherited from interface FOFormula
asBooleanQuery, copy, isAtomic, isConjunction, isDisjunctionMethods inherited from interface fr.inria.rules.dlgpemodel.api.formulas.INegation
exports, getElementMethods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface TermCompound
getAllNestedTerms, getNestedTerms, getTerms
-
Method Details
-
isNegation
default boolean isNegation()Description copied from interface:FOFormulaIndicates whether this formula node is a negation.- Specified by:
isNegationin interfaceFOFormula- Returns:
- true iff this node of the formula is a negation
-
element
-
asAtomSet
Description copied from interface:FOFormulaThe given set does not represent any meaning on the formula as conjunctions, disjunctions and negations will be merged together.
This should only be used to prepare some indexes -
getPredicates
Description copied from interface:FOFormulaStreams the predicates used by this formula.- Specified by:
getPredicatesin interfaceFOFormula- Returns:
- the set of all the predicates of the atoms of this formula
-
getVariables
Description copied from interface:TermCompoundRecursively list all variables- Specified by:
getVariablesin interfaceTermCompound- Returns:
- the set of variables included in this term
-
getConstants
Description copied from interface:TermCompoundRecursively list all constants- Specified by:
getConstantsin interfaceTermCompound- Returns:
- the set of constants included in this term
-
getLiterals
Description copied from interface:TermCompoundRecursively list all literals- Specified by:
getLiteralsin interfaceTermCompound- Returns:
- the set of literals included in this term
-
applySubstitution
Description copied from interface:FOFormulaApplies a substitution without evaluating nested functions.- Specified by:
applySubstitutionin interfaceFOFormula- Specified by:
applySubstitutionin interfaceSubstitutable<FOFormula>- Parameters:
substitution- the substitution to apply- Returns:
- the substituted formula
-
applySubstitution
Description copied from interface:FOFormulaApplies a substitution to this formula.- Specified by:
applySubstitutionin interfaceFOFormula- Specified by:
applySubstitutionin interfaceSubstitutable<FOFormula>- Parameters:
substitution- the substitution to applyevaluate- whether evaluable functions should be evaluated- Returns:
- the substituted formula
-