Interface LogicalFunctionalTerm
- All Superinterfaces:
fr.inria.rules.dlgpemodel.api.sentences.IPrintable, fr.inria.rules.dlgpemodel.api.elems.ITerm, Standardizable, Substitutable<Term>, Term, TermCompound, TermSequenceCompound
- All Known Subinterfaces:
SpecializableLogicalFunctionalTerm
- All Known Implementing Classes:
AbstractLogicalFunctionalTermImpl, GroundFunctionalTermImpl, SpecializableLogicalFunctionalTermImpl
A term representing the application of a logical function to other terms.
- Author:
- Florent Tornil, Federico Ulliana
-
Field Summary
Fields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITER -
Method Summary
Modifier and TypeMethodDescriptionReturns the function symbol of this term.default Optional<Substitution> homomorphism(TermSequenceCompound target, Substitution toExtend) Allows computing the homomorphism from this logical functional term to a target one if it existsdefault booleanIndicates whether this term is a logical functional term.default booleanisGround()Indicates whether this term contains no variables.default StringtoStandardForm(Boolean shortForm) Returns the standardized textual form.Methods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface Standardizable
toStandardFormMethods inherited from interface Term
applySubstitution, applySubstitution, isConstant, isEvaluableFunction, isFrozen, isLiteral, isVariable, labelMethods inherited from interface TermCompound
getAllNestedTerms, getConstants, getLiterals, getNestedTerms, getVariablesMethods inherited from interface TermSequenceCompound
getTerm, getTerms, getTermSequence, homomorphism
-
Method Details
-
isFunctionalTerm
default boolean isFunctionalTerm()Description copied from interface:TermIndicates whether this term is a logical functional term.- Specified by:
isFunctionalTermin interfaceTerm- Returns:
- true iff this object is a
LogicalFunctionalTerm
-
isGround
-
getFunctionName
String getFunctionName()Returns the function symbol of this term.- Returns:
- a string representing the function name
-
homomorphism
Allows computing the homomorphism from this logical functional term to a target one if it exists- Specified by:
homomorphismin interfaceTermSequenceCompound- Parameters:
target- the logical functional term on which we want to maptoExtend- a substitution that the homomorphism must extend- Returns:
- an optional containing a substitution representing the homomorphism if it exists, otherwise empty
-
toStandardForm
Description copied from interface:StandardizableReturns the standardized textual form.- Specified by:
toStandardFormin interfaceStandardizable- Parameters:
shortForm- indicates whether the generated form should take into account the prefix system- Returns:
- the standardized form
-