Class Function

java.lang.Object
com.semedy.reasoner.api.logic.Compound
com.semedy.reasoner.api.logic.Function
All Implemented Interfaces:
Serializable, Cloneable

public class Function extends Compound implements Cloneable, Serializable
object for a functional term
Author:
angele
See Also:
  • Constructor Details

    • Function

      public Function(String s, long symbol, Object[] arguments)
    • Function

      public Function(String s, Object[] arguments)
    • Function

      public Function(long symbol, Object[] arguments)
    • Function

      public Function(long symbol)
  • Method Details

    • setSymbol

      public void setSymbol(long code)
      set the code for the function symbol
      Parameters:
      code -
    • getNormalized

      public Function getNormalized()
      return a normalized version (all variables are renamed to Xi)
      Overrides:
      getNormalized in class Compound
      Returns:
    • clone

      public Function clone()
      clone the function
      Overrides:
      clone in class Compound
      Returns:
      clone of the compound
    • getFunctionSymbol

      public String getFunctionSymbol()
      return the full qualified symbol with name and arity like add|2
      Returns:
    • maxDepth

      public int maxDepth()
      max depth of function
      Returns: