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 thisOutputFunction
is equal tothat
String
getName()
Returns the name of this functionCollection<OutputFunction>
getOperands()
Returns the operands of this function (its children in the function tree)int
hashCode()
Returns a hash code value for this objectString
toLatex()
Returns aLaTeX
representation of the function treeString
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 classObject
- Returns:
- a text representation of the function tree
-
toLatex
String toLatex()Returns aLaTeX
representation of the function tree- Returns:
- a
LaTeX
representation of the function tree
-
equals
boolean equals(Object that)Checks if thisOutputFunction
is equal tothat
- Overrides:
equals
in 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:
hashCode
in classObject
- Returns:
- a hash code value for this object
-