rafa.math.gen
Class NumberGeneratorFragment

java.lang.Object
  extended by rafa.math.gen.NumberGeneratorFragment

public class NumberGeneratorFragment
extends java.lang.Object

Fragment of values taken from a NumberGenerator .

Author:
rafa

Constructor Summary
NumberGeneratorFragment(NumberGenerator generator, int offset, int length)
          Constructor.
 
Method Summary
 NumberGenerator getGenerator()
           
 int getLength()
           
 int getOffset()
           
 void setGenerator(NumberGenerator generator)
           
 void setLength(int length)
           
 void setOffset(int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberGeneratorFragment

public NumberGeneratorFragment(NumberGenerator generator,
                               int offset,
                               int length)
Constructor.

Parameters:
generator - The generator providing values.
offset - The start index in the provider generator (first value taken from it).
length - The number of values in the fragment.
Method Detail

getGenerator

public NumberGenerator getGenerator()
Returns:

getLength

public int getLength()
Returns:

getOffset

public int getOffset()
Returns:

setGenerator

public void setGenerator(NumberGenerator generator)
Parameters:
generator -

setLength

public void setLength(int length)
Parameters:
length -

setOffset

public void setOffset(int offset)
Parameters:
offset -


Copyright © 2008-2009. All Rights Reserved.