1 package baseCode.dataStructure.graph;
2
3 public interface GraphNode {
4
5 /***
6 * @return the contents of the node.
7 */
8 public Object getItem();
9
10 /***
11 * @return the key for this node.
12 */
13 public Object getKey();
14
15 /***
16 * Set the contents of the node.
17 *
18 * @param value
19 */
20 public void setItem( Object value );
21
22 /***
23 * Set the key and value associated with this node.
24 *
25 * @param key
26 * @param value
27 */
28 public void setValue( Object key, Object value );
29
30 /***
31 * @return the Graph this belongs to.
32 */
33 public Graph getGraph();
34
35 /***
36 * @param graph
37 */
38 public void setGraph( Graph graph );
39 }