public class ThresholdedIntegerInput extends IntegerInput
Modifier and Type | Class and Description |
---|---|
static class |
ThresholdedIntegerInput.MutationType |
Constructor and Description |
---|
ThresholdedIntegerInput(int min,
int max,
int nUnit,
int threshold) |
ThresholdedIntegerInput(int min,
int max,
int nUnit,
NESRandom generator) |
Modifier and Type | Method and Description |
---|---|
ThresholdedIntegerInput |
clone() |
int |
getNumberOfInputValues() |
int |
getPosition(int value)
Returns position of value in sorted input values.
|
int |
getThreshold() |
void |
mutate(ThresholdedIntegerInput.MutationType type) |
void |
setThreshold(int value) |
getMax, getMin, getUnits
public ThresholdedIntegerInput(int min, int max, int nUnit, NESRandom generator)
public ThresholdedIntegerInput(int min, int max, int nUnit, int threshold)
public ThresholdedIntegerInput clone()
clone
in class IntegerInput
public int getNumberOfInputValues()
getNumberOfInputValues
in class IntegerInput
public int getPosition(int value)
IntegerInput
getPosition
in class IntegerInput
value
- Input valuepublic int getThreshold()
public void setThreshold(int value)
public void mutate(ThresholdedIntegerInput.MutationType type)