Package com.semedy.reasoner.api.logic
Class Function
java.lang.Object
com.semedy.reasoner.api.logic.Compound
com.semedy.reasoner.api.logic.Function
- All Implemented Interfaces:
Serializable
,Cloneable
object for a functional term
- Author:
- angele
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class com.semedy.reasoner.api.logic.Compound
boundArguments, clearInternalBuffer, equals, getArgument, getArguments, getArity, getInternalBuffer, getSubstitutedArgument, getSymbol, getSymbolAsString, getVariableOccurrences, getVariables, getVariablesAsBits, hashCode, isArgumentGround, isGround, toString
-
Constructor Details
-
Function
-
Function
-
Function
-
Function
public Function(long symbol)
-
-
Method Details
-
setSymbol
public void setSymbol(long code) set the code for the function symbol- Parameters:
code
-
-
getNormalized
return a normalized version (all variables are renamed to Xi)- Overrides:
getNormalized
in classCompound
- Returns:
-
clone
clone the function -
getFunctionSymbol
return the full qualified symbol with name and arity like add|2- Returns:
-
maxDepth
public int maxDepth()max depth of function- Returns:
-