|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.graph.structure.opt.OptGraphable
Root of class hierarchy for optimized implementation of graph components.
The optimizations reduce the space taken up by graph components:
Graphable,
Serialized Form| Constructor Summary | |
OptGraphable()
Constructs a new optimized graphable object. |
|
| Method Summary | |
int |
getCount()
Returns the value of the counter for the component. |
int |
getID()
Returns 0. |
java.lang.Object |
getObject()
Returns null. |
boolean |
isVisited()
Determines if the component has been marked as visited. |
void |
setCount(int count)
To minimize space, the counter is stored as a byte. |
void |
setID(int id)
Does nothing. |
void |
setObject(java.lang.Object obj)
Does nothing. |
void |
setVisited(boolean visited)
Marks the component as being visited/unvisited. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.geotools.graph.structure.Graphable |
getRelated |
| Constructor Detail |
public OptGraphable()
| Method Detail |
public void setID(int id)
setID in interface Graphableid - New identifying integer.Graphable.setID(int)public int getID()
getID in interface GraphableGraphable.getID()public void setVisited(boolean visited)
Graphable
setVisited in interface Graphablevisited - True if visited(on), false if unvisited(off).Graphable.setVisited(boolean)public boolean isVisited()
Graphable
isVisited in interface GraphableGraphable.isVisited()public void setCount(int count)
setCount in interface Graphablecount - The new value of the counter for the component.Graphable.setCount(int)public int getCount()
Graphable
getCount in interface GraphableGraphable.getCount()public void setObject(java.lang.Object obj)
setObject in interface Graphableobj - The entity being modelled by the graph component.Graphable.setObject(Object)public java.lang.Object getObject()
getObject in interface GraphableGraphable.getObject()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||