|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.simulator.MeasurementSuite
public class MeasurementSuite
The MeasurementSuite
is essentially a collection of measurements.
net.sourceforge.Measurement.Measurement
,
Serialized FormConstructor Summary | |
---|---|
MeasurementSuite()
Creates a new instance of MeasurementSuite. |
Method Summary | |
---|---|
void |
addMeasurement(Measurement measurement)
Adds a measurement to the suite. |
String |
getFile()
Get the current specified filename. |
SynchronizedOutputBuffer |
getOutputBuffer()
Get the current SynchronizedOutputBuffer. |
int |
getResolution()
Accessor for the resolution of the results. |
int |
getSamples()
Accessor for the number of samples to take for each measurement. |
void |
initialise()
Initialise the require output buffers for the MeasurementSuite. |
void |
measure(Algorithm algorithm)
Measure the provided Algorithm. |
void |
setFile(String file)
Sets the output file to record the measurements in. |
void |
setOutputBuffer(SynchronizedOutputBuffer buffer)
|
void |
setResolution(int resolution)
Sets the resolution of the results. |
void |
setSamples(int samples)
Sets the number of samples to take for each measurement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MeasurementSuite()
Method Detail |
---|
public void initialise()
public void setFile(String file)
file
- The name of the output file.public String getFile()
public void setSamples(int samples)
samples
- The number of samples.public int getSamples()
public void setResolution(int resolution)
resolution
- The result resolution.public int getResolution()
public SynchronizedOutputBuffer getOutputBuffer()
public void setOutputBuffer(SynchronizedOutputBuffer buffer)
public void addMeasurement(Measurement measurement)
measurement
- The measurement to be added.public void measure(Algorithm algorithm)
algorithm
- The Algorithm to measure.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |