Class TextExplorer
java.lang.Object
visualizer.TextExplorer
This class allows the manual exploration of trees. Either change the main method to select a different tree,
or use a different file or jshell to access this class for the exploration of trees in the console.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetrics(MetricKeeper... metrics) voiddepthCommand(String command) voiddiveCommand(String command) voidvoidexpandCommand(String command) voidexportCommand(String command) GameTreeNode<?, ?> intgetIntFromSplit(String[] split) GameTreeNode<?, ?> getRoot()booleanvoidstatic voidvoidvoidvoidvoidvoidprocessCommand(String command) voidGameTreeNode<?, ?> selectNode(int index) voidsetDepth(int depth) voidvoidsetTree(GameTreeNode<?, ?> root) voidstart()void
-
Constructor Details
-
TextExplorer
-
-
Method Details
-
main
-
setMetrics
-
getMetrics
-
addMetrics
-
setTree
-
setDepth
public void setDepth(int depth) -
getRoot
-
getCurrent
-
start
public void start() -
currentToString
-
processCommand
-
exitCommand
public void exitCommand() -
initializeTTX
public void initializeTTX() -
exportCommand
- Throws:
IOException
-
upCommand
public void upCommand() -
rootCommand
public void rootCommand() -
optCommand
public void optCommand() -
opt2Command
public void opt2Command() -
pesCommand
public void pesCommand() -
metricCommand
public void metricCommand() -
expandCommand
-
depthCommand
-
diveCommand
-
getIntFromSplit
-
selectNode
-
hasAny
-