|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Number
org.mbs.util.wireadmin.Primitive
org.mbs.util.wireadmin.MeasurementEnvelope
public class MeasurementEnvelope
Can be used for representing a value with an error, a unit and a time-stamp. The value and error are represented as doubles and the time is measured in milliseconds since midnight, January 1, 1970 UTC.
| Field Summary | |
|---|---|
protected double |
error
|
protected double |
maxValue
|
protected double |
minValue
|
protected long |
time
|
protected Unit |
unit
|
protected double |
value
|
| Fields inherited from class org.mbs.util.wireadmin.Primitive |
|---|
BOOLEAN, BYTE, CHARACTER, DOUBLE, FLOAT, identification, INTEGER, LONG, scope, SHORT |
| Constructor Summary | |
|---|---|
MeasurementEnvelope(java.lang.String scope,
java.lang.Object identification,
double value,
double minValue,
double maxValue,
double error,
Unit unit,
long time)
Creates a new measurement envelope of type Primitive.DOUBLE |
|
MeasurementEnvelope(java.lang.String scope,
java.lang.Object identification,
double value,
double error,
Unit unit)
Creates a new measurement envelope of type Primitive.DOUBLE. |
|
| Method Summary | |
|---|---|
double |
doubleValue()
Returns the value of the specified state as a double. |
double |
getError()
Retrieves the error state |
long |
getTime()
Retrieves the creation time |
Unit |
getUnit()
Retrieves the measurement unit |
double |
maxValue()
Maximum allowed value |
double |
minValue()
Minimum allowed value |
| Methods inherited from class org.mbs.util.wireadmin.Primitive |
|---|
booleanValue, byteValue, charValue, floatValue, getIdentification, getScope, getType, getValue, intValue, longValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double value
protected double minValue
protected double maxValue
protected double error
protected long time
protected Unit unit
| Constructor Detail |
|---|
public MeasurementEnvelope(java.lang.String scope,
java.lang.Object identification,
double value,
double error,
Unit unit)
Primitive.DOUBLE. This
constructor defines the default range from Double.MIN_VALUE to
Double.MAX_VALUE and initializes the creation time to the current
time.
scope - scope the scope of the primitiveidentification - the identificationvalue - the valueerror - an error stateunit - the measurement unitMeasurementEnvelope(String, Object, double, double, double, double,
Unit, long)
public MeasurementEnvelope(java.lang.String scope,
java.lang.Object identification,
double value,
double minValue,
double maxValue,
double error,
Unit unit,
long time)
Primitive.DOUBLE
scope - scope the scope of the primitiveidentification - the identificationvalue - the valueminValue - the minimum valuemaxValue - the maximum allowed valueerror - an error stateunit - the measurement unittime - the creation timePrimitive.Primitive(int, String, Object)| Method Detail |
|---|
public double minValue()
public double maxValue()
public double getError()
public Unit getUnit()
public long getTime()
public double doubleValue()
Primitive
doubleValue in class PrimitivePrimitive.doubleValue()
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||