rafa.math.gen
Interface INumberGenerator

All Superinterfaces:
Dependent, java.util.EventListener, Listened, Named, java.beans.PropertyChangeListener
All Known Implementing Classes:
FilteredGenerator, NumberGenerator

public interface INumberGenerator
extends Dependent, Named, Listened, java.beans.PropertyChangeListener

Author:
rafa

Nested Class Summary
static class INumberGenerator.Property
          Properties offered by this object to change listeners.
 
Method Summary
 void generate()
          Performs an iteration of value generation.
 java.lang.Number getValue(int index)
           
 java.util.List<java.lang.Number> getValues()
           
 void reset()
          Resets the generator to initial values.
 
Methods inherited from interface rafa.dep.Dependent
getDependencies
 
Methods inherited from interface rafa.Named
getName, setName
 
Methods inherited from interface rafa.Listened
addListener, removeListener
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

generate

void generate()
              throws java.lang.Exception
Performs an iteration of value generation.

Throws:
java.lang.Exception

getValue

java.lang.Number getValue(int index)
                          throws java.lang.Exception
Parameters:
index - The value index
Returns:
The requested value
Throws:
java.lang.Exception

getValues

java.util.List<java.lang.Number> getValues()
Returns:
Returns the values.

reset

void reset()
           throws java.lang.Exception
Resets the generator to initial values.

Throws:
java.lang.Exception


Copyright © 2008-2009. All Rights Reserved.