|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascape.model.space.BFSWithinIterator
public class BFSWithinIterator
User: milesparker Date: Aug 11, 2005 Time: 4:10:17 PM To change this template use File | Settings | File Templates.
| Constructor Summary | |
|---|---|
BFSWithinIterator(Discrete space,
Location origin,
Conditional condition,
boolean includeSelf,
double distance)
Instantiates a new BFS within iterator. |
|
| Method Summary | |
|---|---|
int |
getDepth()
Gets the depth. |
protected int |
getInternalDepth()
Gets the internal depth. |
Location |
getOrigin()
Gets the origin. |
java.util.Iterator |
getSearchIterator()
Gets the search iterator. |
Discrete |
getSpace()
Gets the space. |
protected java.util.Collection |
getVisited()
Gets the visited. |
boolean |
hasNext()
|
protected void |
initialize()
Initialize. |
void |
loadNext()
Load next. |
java.lang.Object |
next()
|
java.util.Iterator |
nextDepth()
Next depth. |
void |
remove()
|
protected void |
setDepth(int depth)
Sets the depth. |
protected void |
setLastDepth(int lastDepth)
Sets the last depth. |
void |
setSearchIterator(java.util.Iterator searchIterator)
Sets the search iterator. |
void |
visit(Node candidate)
Visit. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BFSWithinIterator(Discrete space,
Location origin,
Conditional condition,
boolean includeSelf,
double distance)
space - the spaceorigin - the origincondition - the conditionincludeSelf - the include selfdistance - the distance| Method Detail |
|---|
protected void initialize()
public void loadNext()
public void visit(Node candidate)
candidate - the candidatepublic java.util.Iterator nextDepth()
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic Discrete getSpace()
public int getDepth()
protected int getInternalDepth()
protected void setDepth(int depth)
depth - the new depthprotected void setLastDepth(int lastDepth)
lastDepth - the new last depthpublic Location getOrigin()
protected java.util.Collection getVisited()
public java.util.Iterator getSearchIterator()
public void setSearchIterator(java.util.Iterator searchIterator)
searchIterator - the new search iteratorpublic void remove()
remove in interface java.util.Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||