Package output

Interface OutputFunction

All Known Implementing Classes:
Constant, EndpointFunction, OutputBinary, OutputCommutative, OutputParenthesizer, OutputString, OutputUnitary, Variable

public interface OutputFunction
The OutputFunction is the core of the system for outputting function trees in a readable way
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(Object that)
    Checks if this OutputFunction is equal to that
    String getName()
    Returns the name of this function
    Collection<OutputFunction> getOperands()
    Returns the operands of this function (its children in the function tree)
    int hashCode()
    Returns a hash code value for this object
    String toLatex()
    Returns a LaTeX representation of the function tree
    String toString()
    Returns a text representation of the function tree
  • Method Details

    • getName

      String getName()
      Returns the name of this function
      Returns:
      the name of this function
    • getOperands

      Collection<OutputFunction> getOperands()
      Returns the operands of this function (its children in the function tree)
      Returns:
      a collection of operands
    • toString

      String toString()
      Returns a text representation of the function tree
      Overrides:
      toString in class Object
      Returns:
      a text representation of the function tree
    • toLatex

      String toLatex()
      Returns a LaTeX representation of the function tree
      Returns:
      a LaTeX representation of the function tree
    • equals

      boolean equals​(Object that)
      Checks if this OutputFunction is equal to that
      Overrides:
      equals in class Object
      Parameters:
      that - the object to be compared against
      Returns:
      true if they're equal
    • hashCode

      int hashCode()
      Returns a hash code value for this object
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object