|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.util.sweep.SweepGroup
public class SweepGroup
A class faciliating iteration across several parameter dimensions, supporting multiple runs per parameter set. This class assumes that the total group size will almost always be quite small (10 dimensions or so at most), so the implementation uses a number of large O methods.
Constructor Summary | |
---|---|
SweepGroup()
|
Method Summary | |
---|---|
void |
addMember(Sweepable sweep)
Adds the 'sweepable' (sweep iterator) to the group. |
Sweepable |
getMember(int pos)
Returns the 'sweepable' (sweep iterator) at the specified position. |
int |
getRunCount()
Sets the runs per, or number of runs per each sweep setting. |
int |
getRunsPer()
Sets the runs per, or number of runs per each sweep setting. |
int |
getSize()
Counts the number of members; memebers may be dimensions, links, or other implementoprs of the sweepable interface. |
Sweepable |
getUnlinkedMember(int pos)
Sweepables can be SweepLinks, which means that more than one sweep dimension might exist for a given member. |
int |
getUnlinkedSize()
Returns the 'unrolled' size, that is counting all of the dimensions in each link. |
boolean |
hasNext()
Are there more sweep settings in this group? |
java.lang.Object |
next()
Iterates to the next sweep setting in this group. |
void |
reset()
Sets the entire swep group back to its initial state. |
void |
setRunsPer(int runsPer)
Returns the runs per, or number of runs per each sweep setting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SweepGroup()
Method Detail |
---|
public void addMember(Sweepable sweep)
public Sweepable getMember(int pos)
public Sweepable getUnlinkedMember(int pos)
public void reset()
reset
in interface Sweepable
public int getRunsPer()
public int getRunCount()
public void setRunsPer(int runsPer)
public boolean hasNext()
hasNext
in interface Sweepable
public java.lang.Object next()
next
in interface Sweepable
public int getUnlinkedSize()
public int getSize()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |