Class AtomImpl
java.lang.Object
fr.inria.rules.integraal.model.logicalElements.impl.AtomImpl
- All Implemented Interfaces:
fr.inria.rules.dlgpemodel.api.formulas.IAtom, fr.inria.rules.dlgpemodel.api.formulas.IFormula, fr.inria.rules.dlgpemodel.api.formulas.IPredicated, fr.inria.rules.dlgpemodel.api.formulas.IStandardAtom, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, FOFormula, Atom, Substitutable<FOFormula>, TermCompound, TermSequenceCompound
-
Field Summary
Fields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplySubstitution(Substitution substitution, boolean evaluate) Applies a substitution to this atom.booleanTests whether a term occurs in this atom.copy()Creates a deep copy of this formula.boolean//////////////////////////////////////////////getTerm(int index) Returns the term at the given position in the sequence.Returns the direct term sequence of this compound.inthashCode()//////////////////////////////////////////////int[]Returns every position at which a term occurs in this atom.int//////////////////////////////////////////////toString()Methods inherited from interface Atom
applySubstitution, asAtomSet, getPredicates, homomorphism, isAtomic, isComputedAtomMethods inherited from interface FOFormula
asBooleanQuery, isConjunction, isDisjunction, isNegationMethods inherited from interface fr.inria.rules.dlgpemodel.api.formulas.IPredicated
isPatternedMethods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface fr.inria.rules.dlgpemodel.api.formulas.IStandardAtom
exportsMethods inherited from interface TermCompound
getAllNestedTerms, getConstants, getLiterals, getNestedTerms, getVariablesMethods inherited from interface TermSequenceCompound
getTerms, homomorphism
-
Constructor Details
-
AtomImpl
-
AtomImpl
-
-
Method Details
-
indexOf
////////////////////////////////////////////// -
contains
-
indexesOf
Description copied from interface:AtomReturns every position at which a term occurs in this atom. -
getTerm
Description copied from interface:TermSequenceCompoundReturns the term at the given position in the sequence.- Specified by:
getTermin interfaceTermSequenceCompound- Parameters:
index- the position of the term in the sequence- Returns:
- the
Termat the index position in the sequence.
-
getTermSequence
Description copied from interface:TermSequenceCompoundReturns the direct term sequence of this compound.- Specified by:
getTermSequencein interfacefr.inria.rules.dlgpemodel.api.formulas.IStandardAtom- Specified by:
getTermSequencein interfaceTermSequenceCompound- Returns:
- the sequence of first level 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.
-
getPredicate
//////////////////////////////////////////////- Specified by:
getPredicatein interfaceAtom- Specified by:
getPredicatein interfacefr.inria.rules.dlgpemodel.api.formulas.IPredicated- Returns:
- the
Predicateassociated to this atom.
-
hashCode
-
equals
-
toString
-
applySubstitution
Description copied from interface:AtomApplies a substitution to this atom.- Specified by:
applySubstitutionin interfaceAtom- Specified by:
applySubstitutionin interfaceFOFormula- Specified by:
applySubstitutionin interfaceSubstitutable<FOFormula>- Parameters:
substitution- the substitution to applyevaluate- whether evaluable functions should be evaluated- Returns:
- the substituted atom
-
copy
-