| org.cougaar.core.qos.metrics.Metric
All known Subclasses: org.cougaar.core.qos.rss.DataWrapper, org.cougaar.core.qos.metrics.MetricImpl,
Metric | public interface Metric (Code) | | Metrics are the information abstraction for the values manipulated
by the MetricsService. This includes the value itself, which can
be of various types, and meta-data about the value: how credible it
is, where it come from, when it was collected, etc.
|
booleanValue | boolean booleanValue()(Code) | | Returns the value as a boolean. The caller is assumed to know
that the value is, in fact, a boolean.
|
byteValue | byte byteValue()(Code) | | Returns the value as a byte. The caller is assumed to know
that the value is, in fact, a number that can coerced to a
byte.
|
charValue | char charValue()(Code) | | Returns the value as a char. The caller is assumed to know
that the value is, in fact, a char.
|
doubleValue | double doubleValue()(Code) | | Returns the value as a double. The caller is assumed to know
that the value is, in fact, a number that can be coerced to a
double.
|
floatValue | float floatValue()(Code) | | Returns the value as a float. The caller is assumed to know
that the value is, in fact, a number that can be coerced to a
float.
|
getCredibility | double getCredibility()(Code) | | Returns the credibility of the value, as double in the range
0.0 (no knowledge) to 1.0 (perfect knowledge).
|
getHalflife | long getHalflife()(Code) | | Returns a numeric measure of how long the value is good for.
|
getProvenance | String getProvenance()(Code) | | Returns the source of the value, as a string with no semantics.
|
getRawValue | Object getRawValue()(Code) | | Returns the raw value. Use this only if you don't know what
type the value should be.
|
getTimestamp | long getTimestamp()(Code) | | Returns the time the value was collected or generated.
|
getUnits | String getUnits()(Code) | | Returns the units of the value. This is not currently used in
Cougaar
|
intValue | int intValue()(Code) | | Returns the value as an int. The caller is assumed to know
that the value is, in fact, a number that can be coerced to an
int.
|
longValue | long longValue()(Code) | | Returns the value as a long. The caller is assumed to know
that the value is, in fact, a number that can be coerced to a
long.
|
shortValue | short shortValue()(Code) | | Returns the value as a short. The caller is assumed to know
that the value is, in fact, a number that can be coerced to a
short.
|
stringValue | String stringValue()(Code) | | Returns the value as a String. The caller is assumed to know
that the value is, in fact, a String.
|
|
|