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 booleanequals(Object that)Checks if thisOutputFunctionis equal tothatStringgetName()Returns the name of this functionCollection<OutputFunction>getOperands()Returns the operands of this function (its children in the function tree)inthashCode()Returns a hash code value for this objectStringtoLatex()Returns aLaTeXrepresentation of the function treeStringtoString()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:
toStringin classObject- Returns:
- a text representation of the function tree
-
toLatex
String toLatex()Returns aLaTeXrepresentation of the function tree- Returns:
- a
LaTeXrepresentation of the function tree
-
equals
boolean equals(Object that)Checks if thisOutputFunctionis equal tothat- Overrides:
equalsin classObject- 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:
hashCodein classObject- Returns:
- a hash code value for this object
-