ITree

interface ITree : Serializable

Represents a Tree of Objects(Node) of generic type T. The Tree is represented as a single rootElement which points to a List

Inheritors

Functions

Link copied to clipboard
abstract fun assignVarValue(matches: Map<HashString, ITreeNode<out Any>>): ITree
This method substitutes variables present in matches map with their values.
Link copied to clipboard
abstract fun evaluation(matches: Map<HashString, ITreeNode<out Any>>): Double
This evaluates the expression.
Link copied to clipboard
abstract fun getRoot(): ITreeNode<out Any>
Return the root Node of the tree.
Link copied to clipboard
abstract fun toHashString(): HashString
Similar to toString(), but returns a HashString.