|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pandora.knowledge.AbstractVertexIterator
public abstract class AbstractVertexIterator
Allow iteration over all related vertices and all descendants.
Constructor Summary | |
---|---|
AbstractVertexIterator()
|
Method Summary | |
---|---|
void |
addBreadth(Vertex vertex)
Add the vertex to the breadth set for traversal. |
int |
decrementDepth()
Decrement the current depth of traversal. |
java.util.Map<Vertex,Vertex> |
getBreadthSet()
Return the set of vertices for the next breadth first traversal level. |
int |
getDepth()
Return the current depth of traversal. |
boolean |
getIgnorePrimitives()
Return if should iterate on or over primitives. |
int |
getMaxDepth()
Return the max depth of relationships to traverse, -1 means all. |
int |
getMaxIterations()
Maximum number of vertices to iterator over. |
Path |
getPath()
Traversal path. |
void |
getPath(Path path)
Set the traversal path. |
java.util.Map<Vertex,Vertex> |
getTraversed()
Return the set of already traversed vertices. |
int |
incrementDepth()
Increment the current depth of traversal. |
boolean |
isMaxDepth()
Return if the iterator is at the max depth. |
boolean |
isMaxIterations()
Return if the iterator has iterated the max iterations. |
void |
setBreadthSet(java.util.Map<Vertex,Vertex> breadthSet)
Set of vertices for the next breadth first traversal level. |
void |
setDepth(int depth)
Set the current depth of traversal. |
void |
setIgnorePrimitives(boolean ignorePrimitives)
Set if should iterate on or over primitives. |
void |
setMaxIterations(int maxIterations)
Set the maximum number of vertices to iterator over. |
void |
setMxDepth(int maxDepth)
Set the max depth of relationships to traverse, -1 means all. |
void |
setTraversed(java.util.Map<Vertex,Vertex> traversed)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pandora.api.knowledge.VertexIterator |
---|
iterate |
Constructor Detail |
---|
public AbstractVertexIterator()
Method Detail |
---|
public boolean getIgnorePrimitives()
getIgnorePrimitives
in interface VertexIterator
public int getMaxIterations()
getMaxIterations
in interface VertexIterator
public boolean isMaxDepth()
isMaxDepth
in interface VertexIterator
public boolean isMaxIterations()
isMaxIterations
in interface VertexIterator
public int incrementDepth()
incrementDepth
in interface VertexIterator
public int decrementDepth()
decrementDepth
in interface VertexIterator
public int getDepth()
getDepth
in interface VertexIterator
public int getMaxDepth()
getMaxDepth
in interface VertexIterator
public void setIgnorePrimitives(boolean ignorePrimitives)
public void setMaxIterations(int maxIterations)
public void setDepth(int depth)
setDepth
in interface VertexIterator
public void setMxDepth(int maxDepth)
public Path getPath()
getPath
in interface VertexIterator
public void getPath(Path path)
public java.util.Map<Vertex,Vertex> getTraversed()
VertexIterator
getTraversed
in interface VertexIterator
public void setTraversed(java.util.Map<Vertex,Vertex> traversed)
public java.util.Map<Vertex,Vertex> getBreadthSet()
VertexIterator
getBreadthSet
in interface VertexIterator
public void setBreadthSet(java.util.Map<Vertex,Vertex> breadthSet)
VertexIterator
setBreadthSet
in interface VertexIterator
public void addBreadth(Vertex vertex)
addBreadth
in interface VertexIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |