Package adams.data.random
Interface RandomIntegerRangeGenerator<T extends Number>
-
- Type Parameters:
T
- the type of random number to return
- All Superinterfaces:
Destroyable
,OptionHandler
,RandomNumberGenerator<T>
,ShallowCopySupporter<RandomNumberGenerator>
- All Known Implementing Classes:
JavaRandomInt
,JavaRandomIntUnseeded
public interface RandomIntegerRangeGenerator<T extends Number> extends RandomNumberGenerator<T>
Interface for random number generators that support returning random integers within a certain range.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getMaxValue()
Returns the maximum value of the numbers to generate.int
getMinValue()
Returns the minimum value of the numbers to generate.String
maxValueTipText()
Returns the tip text for this property.String
minValueTipText()
Returns the tip text for this property.void
setMaxValue(int value)
Sets the maximum value of the numbers to generate.void
setMinValue(int value)
Sets the minimum value of the numbers to generate.-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.data.random.RandomNumberGenerator
next, reset
-
Methods inherited from interface adams.core.ShallowCopySupporter
shallowCopy, shallowCopy
-
-
-
-
Method Detail
-
setMinValue
void setMinValue(int value)
Sets the minimum value of the numbers to generate.- Parameters:
value
- the minimum
-
getMinValue
int getMinValue()
Returns the minimum value of the numbers to generate.- Returns:
- the minimum
-
minValueTipText
String minValueTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setMaxValue
void setMaxValue(int value)
Sets the maximum value of the numbers to generate.- Parameters:
value
- the maximum
-
getMaxValue
int getMaxValue()
Returns the maximum value of the numbers to generate.- Returns:
- the maximum
-
maxValueTipText
String maxValueTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
-