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, getUnitspublic 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 IntegerInputpublic int getNumberOfInputValues()
getNumberOfInputValues in class IntegerInputpublic int getPosition(int value)
IntegerInputgetPosition in class IntegerInputvalue - Input valuepublic int getThreshold()
public void setThreshold(int value)
public void mutate(ThresholdedIntegerInput.MutationType type)