|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.bezier.math.combinatorics.CombinatoricsBase
de.bezier.math.combinatorics.CombinatoricsBaseSet
public abstract class CombinatoricsBaseSet
Base class for all sets of CombinatoricsBases. Used for CombinationSet and VariationSet
A set means a group of. For example CombinationSet will represent a group of Combinations, ..
You should not need to use this class on it's own ..
Constructor Summary | |
---|---|
CombinatoricsBaseSet(int elements)
Same as using new CombinatoricsBaseSet( elements, 0, elements ) |
|
CombinatoricsBaseSet(int elements,
int from,
int to)
See intro to CombinationSet for an explaination. |
Method Summary | |
---|---|
boolean |
hasMore()
Check to see if there are more results available to be read, for example: |
int[] |
next()
Read next result (if there is one) and update internal counter. |
Methods inherited from class de.bezier.math.combinatorics.CombinatoricsBase |
---|
nextAndStep, numberOfElements, position, positionAsInt, positionAsLong, positionInPercent, positionInPercent, rewind, total, totalAsInt, totalAsLong |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CombinatoricsBaseSet(int elements)
public CombinatoricsBaseSet(int elements, int from, int to)
elements
- Number of elements each CombinatoricsBase in this set should representfrom
- Length of smallest: CombinatoricsBase( elements, from )to
- Length of largest included: CombinatoricsBase( elements, to )CombinationSet
Method Detail |
---|
public boolean hasMore()
while ( cset.hasMore() ) { int res[] = cset.next(); // do something extraordinary with it here .. }
hasMore
in class CombinatoricsBase
public int[] next()
next
in class CombinatoricsBase
CombinationSet
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |