Class AbstractLogicalFunctionalTermImpl
java.lang.Object
fr.inria.rules.integraal.model.logicalElements.impl.functionalTerms.AbstractLogicalFunctionalTermImpl
- All Implemented Interfaces:
fr.inria.rules.dlgpemodel.api.elems.ITerm, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, Standardizable, LogicalFunctionalTerm, Substitutable<Term>, Term, TermCompound, TermSequenceCompound
- Direct Known Subclasses:
GroundFunctionalTermImpl, SpecializableLogicalFunctionalTermImpl
public abstract class AbstractLogicalFunctionalTermImpl
extends Object
implements LogicalFunctionalTerm
Common methods for the implementation of a FunctionalTerm
- Author:
- Federico Ulliana
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringName of the function symbol.Ordered arguments of the function term.Fields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITER -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLogicalFunctionalTermImpl(String function_name, List<Term> sub_terms) Default constructor -
Method Summary
Methods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface LogicalFunctionalTerm
homomorphism, isFunctionalTerm, isGround, toStandardFormMethods inherited from interface Standardizable
toStandardFormMethods inherited from interface Term
applySubstitution, applySubstitution, isConstant, isEvaluableFunction, isFrozen, isLiteral, isVariableMethods inherited from interface TermCompound
getAllNestedTerms, getConstants, getLiterals, getNestedTerms, getVariablesMethods inherited from interface TermSequenceCompound
getTerm, getTerms, homomorphism
-
Field Details
-
function_name
Name of the function symbol. -
sub_terms
-
-
Constructor Details
-
AbstractLogicalFunctionalTermImpl
-
-
Method Details
-
label
-
getFunctionName
Description copied from interface:LogicalFunctionalTermReturns the function symbol of this term.- Specified by:
getFunctionNamein interfaceLogicalFunctionalTerm- Returns:
- a string representing the function name
-
getTermSequence
Description copied from interface:TermSequenceCompoundReturns the direct term sequence of this compound.- 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.
-
hashCode
-
equals
-
toString
-