public interface Structure
Modifier and Type | Method and Description |
---|---|
Node.Iterable |
findNodes()
Returns an iterable that contains all nodes in the tree.
|
Node.Iterable |
findNodes(int depth)
Returns an iterable that contains all nodes in the tree with the given depth.
|
Node |
findOrCreateNode(DirectedSymbol.Iterable path)
Finds or creates a node in the tree.
|
Node |
findOrCreateNode(Symbol symbol,
Direction direction)
Finds or creates a node in the tree.
|
Node |
findOrCreateNode(Symbol action,
TypedIterable<DirectedSymbol> path)
Finds or creates a node in the tree.
|
Node.Iterable |
findRootNodes()
Returns an iterable that contains the root nodes of this structure.
|
int |
getMaxDepth()
Returns the maximum depth of all nodes in the tree.
|
String |
getURI()
Returns the identifying URI of this structure.
|
void |
logNodes()
Logs all nodes in this structure.
|
void |
markExtensible(Node node)
Marks the given node as extensible.
|
String getURI()
Root.createInteractionContext(String, String, String, String)
Node findOrCreateNode(DirectedSymbol.Iterable path)
path
- The directed symbols that specify the path from the root of the tree to the requested nodeNode findOrCreateNode(Symbol action, TypedIterable<DirectedSymbol> path)
action
- The last actionpath
- The directed symbols that specify the path from node corresponding to the last action to the requested nodeNode findOrCreateNode(Symbol symbol, Direction direction)
symbol
- The symboldirection
- The directionNode.Iterable findNodes()
Node.Iterable findNodes(int depth)
depth
- The depth of the requested nodesNode.Iterable findRootNodes()
int getMaxDepth()
void markExtensible(Node node)
node
- The node to mark as extensiblevoid logNodes()
Copyright © 2013. All Rights Reserved.