|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ascape.util.sweep.SweepLink
public class SweepLink
A sweep link allows two or more sweep dimensions to be iterated together. When next is called, all memebers of the sweep link are iterated. hasNext returns false when all memebers no longer return true for haveNext. So fo instance, the link composed of members with values {1.0, 1.1, 1.2} and {.1, .2, .3, .4} would set values to {(1.0, .1), (1.1, .2), (1.2, .3), (1.2, .4)}. SweepLinks may be nested, of course.
Constructor Summary | |
---|---|
SweepLink()
|
Method Summary | |
---|---|
void |
addMember(Sweepable sweep)
Adds the sweepable item to be iterated with the link. |
java.util.Enumeration |
elements()
Returns the memebers as an enumeration. |
Sweepable |
getMember(int pos)
Returns the sweepable at the provided location. |
int |
getSize()
Returns the size of the links. |
boolean |
hasNext()
Returns true if any memebrs still have next states. |
java.lang.Object |
next()
Sets all of the linked member's next state. |
void |
reset()
Resets the memebrs to their initial states. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SweepLink()
Method Detail |
---|
public void addMember(Sweepable sweep)
public Sweepable getMember(int pos)
public void reset()
reset
in interface Sweepable
public boolean hasNext()
hasNext
in interface Sweepable
public java.util.Enumeration elements()
public java.lang.Object next()
next
in interface Sweepable
public int getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |