|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Graphable
Represents a component of a graph. Graph components model "real life" entities. These entities are represented by an underyling object reference.
Graph
modules/extension/graph (gt-graph.jar)
Method Summary | |
---|---|
int |
getCount()
Returns the value of the counter for the component. |
int |
getID()
Returns an identifier for the component. |
Object |
getObject()
Returns the underlying object referenced by the graph component. |
Iterator |
getRelated()
Returns an iterator over any related components. |
boolean |
isVisited()
Determines if the component has been marked as visited. |
void |
setCount(int count)
Sets the value of the counter for the component. |
void |
setID(int id)
Sets the identifying integer for the component. |
void |
setObject(Object obj)
Sets the underlying object reference for the component. |
void |
setVisited(boolean visited)
Marks the component as being visited/unvisited. |
Method Detail |
---|
int getID()
void setID(int id)
id
- New identifying integer.boolean isVisited()
void setVisited(boolean visited)
visited
- True if visited(on), false if unvisited(off).int getCount()
void setCount(int count)
count
- The new value of the counter for the component.Object getObject()
void setObject(Object obj)
obj
- The entity being modelled by the graph component.Iterator getRelated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |