Skip to content

Instantly share code, notes, and snippets.

@Jingbang-liu-lix
Last active January 3, 2020 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jingbang-liu-lix/c4404387de114934c7eaee3a08c979a2 to your computer and use it in GitHub Desktop.
Save Jingbang-liu-lix/c4404387de114934c7eaee3a08c979a2 to your computer and use it in GitHub Desktop.
Evaluation Tree Example
public interface AbstractEvalTree {
int size();
Object computeNode(int nodePosition, DslExecutionContext context);
AbstractEvalNode getRoot();
AbstractEvalNode getNode(int nodePosition);
IntList getChildPositions(int parentNodePosition);
int getChildListOffset(int nodeId);
int getChildCount(int nodePosition);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment