public abstract class MeasurementEvolution
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COLUMN_LENGTH
Number of characters that is used for representing each column
|
private static java.text.DecimalFormat |
METRIC_FORMAT
Format of the double values printed in the text file for representing
the sociogrametric values.
|
protected java.lang.String[] |
metrics
Names of the metrics.
|
private int |
numIterations
Number of iterations
|
protected double[][] |
values
Measurement values of the metrics for each iteration, in which
values[iteration][metric] represents for a particular iteration the
measurement value of the corresponding metric number.
|
Constructor and Description |
---|
MeasurementEvolution(int numIterations,
int numMetrics)
Constructor of the class.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
recordValues()
The implementation must record the measurment values specific of
each simulator.
|
void |
recordValues(int iteration,
double[] valuesIter)
Records the measurement values of a particular iteration
|
void |
saveValues(java.io.PrintStream out)
Save the all the recorded measurement values by printing these in an
open PrintStream
|
protected java.lang.String[] metrics
private int numIterations
protected double[][] values
private static java.text.DecimalFormat METRIC_FORMAT
public static int COLUMN_LENGTH
public MeasurementEvolution(int numIterations, int numMetrics)
numIterations
- Number of iterations and the number of metrics.public abstract void recordValues()
public void recordValues(int iteration, double[] valuesIter)
iteration
- The number of the iteration in which the measurement
values are recorded.valuesIter
- The measurement values of a particular iteration
following the same order of metrics as the given in the constructor.public void saveValues(java.io.PrintStream out)
out
- The stream where the measurement values are printed.