|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectbaseCode.common.Visitable
baseCode.dataStructure.graph.AbstractGraphNode
Copyright (c) Columbia University
| Field Summary | |
protected Graph |
graph
|
protected java.lang.Object |
item
|
protected java.lang.Object |
key
|
protected static org.apache.commons.logging.Log |
log
|
protected boolean |
visited
|
| Constructor Summary | |
AbstractGraphNode(java.lang.Object key)
Create a new node when given only a key. |
|
AbstractGraphNode(java.lang.Object key,
java.lang.Object value,
Graph graph)
Create a new node with key and value given. |
|
| Method Summary | |
Graph |
getGraph()
|
java.lang.Object |
getItem()
Get the actual contents of the node. |
java.lang.Object |
getKey()
Get the key for the node. |
boolean |
isVisited()
|
void |
mark()
|
void |
setGraph(Graph graph)
Set the graph this belongs to. |
void |
setItem(java.lang.Object value)
Set the contents of the node. |
void |
setValue(java.lang.Object key,
java.lang.Object value)
Set the key and value associated with this node. |
java.lang.String |
toString()
|
void |
unMark()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Field Detail |
protected java.lang.Object key
protected java.lang.Object item
protected Graph graph
protected boolean visited
protected static org.apache.commons.logging.Log log
| Constructor Detail |
public AbstractGraphNode(java.lang.Object key,
java.lang.Object value,
Graph graph)
key - value - graph - public AbstractGraphNode(java.lang.Object key)
key - | Method Detail |
public java.lang.Object getItem()
getItem in interface GraphNodepublic java.lang.Object getKey()
getKey in interface GraphNodepublic void setGraph(Graph graph)
setGraph in interface GraphNodegraph - Graph
public void setValue(java.lang.Object key,
java.lang.Object value)
GraphNode
setValue in interface GraphNodekey - value - public void setItem(java.lang.Object value)
GraphNode
setItem in interface GraphNodevalue - public java.lang.String toString()
public Graph getGraph()
getGraph in interface GraphNodepublic void mark()
mark in class Visitablepublic void unMark()
unMark in class Visitablepublic boolean isVisited()
isVisited in class Visitable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||