Perfecting parser, lexer, and parse-tree handling for policy files; Generating skelet...
[iot2.git] / iotjava / iotpolicy / tree / Walkable.java
1 package iotpolicy.tree;
2
3 /**
4  * The Walkable interface specifies a set of methods that defines a web.
5  */
6
7 public interface Walkable {
8
9   /**
10    * Returns the name of the node
11    */
12   public String getNodeName();
13
14
15   /**
16    * Returns the number of neighbors from this node
17    */
18   public int getNeighborCount();
19
20
21   /**
22    * Returns a specific neighbor
23    */
24   public Object getNeighbor(int index);
25
26   /**
27    * Returns a pretty print of the representation of the node.
28    *
29    * @param indent    number of blank spaces to skip for a new line
30    * @param recursive if true, recursively print children
31    */
32   public String PPrint(int indent, boolean recursive);
33 }
34