|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.noise.DoubleGauge
public class DoubleGauge
A gauge that holds doubles. This gauge also can apply noise functions to incoming data to simulate a noisy gauge.
| Constructor Summary | |
|---|---|
DoubleGauge()
Class constructor for unlimited, uninitialized, noiseless gauge. |
|
DoubleGauge(double value)
Class constructor for unlimited, noiseless gauge with initial value. |
|
DoubleGauge(double value,
double minValue,
double maxValue)
Class constructor for limited, initialized, noiseless gauge. |
|
DoubleGauge(double value,
double minValue,
double maxValue,
NoiseFunction noiseFunction)
Class Constructor for limited, initialized, noisy gauge. |
|
DoubleGauge(double value,
NoiseFunction noiseFunction)
Class constructor for unlimited, initialized gauge with noise. |
|
DoubleGauge(NoiseFunction noiseFunction)
Class constructor for unlimited, uninitialized gauge with noise. |
|
| Method Summary | |
|---|---|
double |
read()
Read the value of the gauge. |
void |
record(double recValue)
Records a value to the gauge, with noise according to the gauge's NoiseFunction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleGauge()
public DoubleGauge(NoiseFunction noiseFunction)
noiseFunction - the noise function this gauge will apply to valuespublic DoubleGauge(double value)
value - the initial value of the gauge
public DoubleGauge(double value,
NoiseFunction noiseFunction)
value - the initial value of the gaugenoiseFunction - the noise function this gauge will apply to values
public DoubleGauge(double value,
double minValue,
double maxValue)
value - the initial value of the gaugeminValue - the minimum value the gauge can store/readmaxValue - the maximum value the gauge can store/read
public DoubleGauge(double value,
double minValue,
double maxValue,
NoiseFunction noiseFunction)
value - the initial value of the gaugeminValue - the minimum value the gauge can store/readmaxValue - the maximum value the gauge can store/readnoiseFunction - the noise function this gauge will apply to values| Method Detail |
|---|
public double read()
public void record(double recValue)
NoiseFunction.
recValue - the value to be written to the gauge
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||