Package | Description |
---|---|
com.example.sulemaia.Activity | |
com.example.sulemaia.Model |
Modifier and Type | Field and Description |
---|---|
private PathManualTree.Node[][] |
GameScreen.nodes |
Modifier and Type | Field and Description |
---|---|
private PathManualTree.Node |
PathManualTree.anchor |
private PathManualTree.Node |
PathManualTree.Node.father |
Modifier and Type | Field and Description |
---|---|
private ArrayList<PathManualTree.Node> |
PathManualTree.Node.children |
private ArrayList<PathManualTree.Node> |
PathManualTree.expansionOrder |
private HashSet<PathManualTree.Node> |
PathManualTree.visitedInExpanded |
private HashSet<PathManualTree.Node> |
PathManualTree.visitedNodes |
Modifier and Type | Method and Description |
---|---|
PathManualTree.Node |
PathManualTree.Node.getFather()
Get the father node of a certain node.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<PathManualTree.Node> |
PathManualTree.Node.getChildren()
Return all of a node's children.
|
Modifier and Type | Method and Description |
---|---|
private void |
PathManualTree.Node.addChild(PathManualTree.Node child)
Add a node as the child of a father node.
|
void |
PathManualTree.addMovement(PathManualTree.Node child)
Create a step movement between father and child
|
void |
PathManualTree.addNode(PathManualTree.Node father,
PathManualTree.Node child)
This method adds a child to the specified node.
|
void |
PathManualTree.addNodeToInvalidNodes(PathManualTree.Node node)
this method adds a node to a list of inaccessible nodes
|
private void |
PathManualTree.drawTree(PathManualTree.Node node)
We draw the tree node by node checking which nodes are the actual node's children.
|
boolean |
PathManualTree.exists(PathManualTree.Node child)
Method to check if the node already exist as a child, so we wont repeat nodes,
or even that we have the chance to change it to another father to correct the
flow of the tree.
|
void |
PathManualTree.Node.setFather(PathManualTree.Node father)
Set a node as a father of another certain node.
|
void |
PathManualTree.setFinal(PathManualTree.Node node)
Set a certain node as the final node for the graphical implementation.
|
void |
PathManualTree.setInitial(PathManualTree.Node node)
Set a certain node as the initial node for the graphical implementation.
|
Constructor and Description |
---|
PathManualTree(PathManualTree.Node anchor)
Initialize a graphViz tree with an initial node received by parameter,
which is the anchor.
|