public class Measurement extends AbstractMOAObject
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected double |
value |
Constructor and Description |
---|
Measurement(String name,
double value) |
Modifier and Type | Method and Description |
---|---|
static Measurement[] |
averageMeasurements(Measurement[][] toAverage) |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
static Measurement |
getMeasurementNamed(String name,
Measurement[] measurements) |
static void |
getMeasurementsDescription(Measurement[] measurements,
StringBuilder out,
int indent) |
String |
getName() |
double |
getValue() |
copy, copy, measureByteSize, measureByteSize, toString
protected String name
protected double value
public Measurement(String name, double value)
public String getName()
public double getValue()
public static Measurement getMeasurementNamed(String name, Measurement[] measurements)
public static void getMeasurementsDescription(Measurement[] measurements, StringBuilder out, int indent)
public static Measurement[] averageMeasurements(Measurement[][] toAverage)
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.