org.objectstyle.ashwood.random
Class Roulette

java.lang.Object
  extended byorg.objectstyle.ashwood.random.Roulette
All Implemented Interfaces:
java.util.Iterator

public class Roulette
extends java.lang.Object
implements java.util.Iterator


Constructor Summary
Roulette(int sectorCount)
           
Roulette(int[] sectors, java.util.Random randomizer)
           
Roulette(int sectorCount, int sectorSelectionCount, java.util.Random randomizer)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Roulette

public Roulette(int sectorCount)

Roulette

public Roulette(int sectorCount,
                int sectorSelectionCount,
                java.util.Random randomizer)

Roulette

public Roulette(int[] sectors,
                java.util.Random randomizer)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator


  Copyright © 2003 ObjectStyle.org - ASHWOOD All Rights Reserved.