Class CompoundFOFormula
java.lang.Object
fr.inria.rules.integraal.model.formula.api.CompoundFOFormula
- All Implemented Interfaces:
fr.inria.rules.dlgpemodel.api.formulas.IFormula, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, FOFormula, Substitutable<FOFormula>, TermCompound
- Direct Known Subclasses:
FOConjunctionImpl, FODisjunctionImpl
-
Field Summary
Fields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITER -
Constructor Summary
ConstructorsConstructorDescriptionCompoundFOFormula(Collection<? extends FOFormula> subformulas) Constructor using sub formulas -
Method Summary
Modifier and TypeMethodDescriptionThe given set does not represent any meaning on the formula as conjunctions, disjunctions and negations will be merged together.abstract StringReturns the textual representation of the connector used between sub-formulas.Streams the predicates used by this formula.Collection<? extends FOFormula> Returns the direct sub-formulas of this compound formula.getTerms()Streams the first-level terms contained in this object.toString()//////////////////////////////////////////////Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface FOFormula
applySubstitution, applySubstitution, asBooleanQuery, copy, isAtomic, isConjunction, isDisjunction, isNegationMethods inherited from interface fr.inria.rules.dlgpemodel.api.formulas.IFormula
exportsMethods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface TermCompound
getAllNestedTerms, getConstants, getLiterals, getNestedTerms, getVariables
-
Constructor Details
-
CompoundFOFormula
Constructor using sub formulas- Parameters:
subformulas- the sub formulas
-
-
Method Details
-
getConnectorRepresentation
Returns the textual representation of the connector used between sub-formulas.- Returns:
- the string representation of the connector
-
getSubElements
Returns the direct sub-formulas of this compound formula.- Returns:
- the sub formulas
-
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
-
getTerms
Description copied from interface:TermCompoundStreams the first-level terms contained in this object.- Specified by:
getTermsin interfaceTermCompound- Returns:
- a stream over all the non-nested terms (i.e., all terms that are not themselves in a compound term) For instance, for p(a,g(b)), it returns a and g(b) but not b.
-
toString
-