|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 FormConstructor 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 Graphable
id
- New identifying integer.Graphable.setID(int)
public int getID()
getID
in interface Graphable
Graphable.getID()
public void setVisited(boolean visited)
Graphable
setVisited
in interface Graphable
visited
- True if visited(on), false if unvisited(off).Graphable.setVisited(boolean)
public boolean isVisited()
Graphable
isVisited
in interface Graphable
Graphable.isVisited()
public void setCount(int count)
setCount
in interface Graphable
count
- The new value of the counter for the component.Graphable.setCount(int)
public int getCount()
Graphable
getCount
in interface Graphable
Graphable.getCount()
public void setObject(java.lang.Object obj)
setObject
in interface Graphable
obj
- The entity being modelled by the graph component.Graphable.setObject(Object)
public java.lang.Object getObject()
getObject
in interface Graphable
Graphable.getObject()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |