uk.co.agena.minerva.util.model
Class StringDataPoint
java.lang.Object
uk.co.agena.minerva.util.model.DataPoint
uk.co.agena.minerva.util.model.StringDataPoint
- All Implemented Interfaces:
- java.lang.Cloneable, Writable
public class StringDataPoint
- extends DataPoint
A DataPoint represents a single numerical value. The numerical value that a DataPoint encapsulates
has double precision.
Typically, a DataPoint is used to express a single probability value of an ExtendedState
(or a single piece of evidence entered on it).
Constructor Summary |
StringDataPoint()
Default constructor. |
StringDataPoint(java.lang.String label,
double value,
int connObjectId,
java.lang.String stringValue)
Creates a DataPoint with the specified label, connected object ID
(e.g. |
StringDataPoint(java.lang.String label,
int connObjectId,
java.lang.String stringValue)
|
Method Summary |
java.lang.Object |
clone()
Creates a copy of this DataPoint. |
java.lang.String |
getStringValue()
|
protected void |
readRestOfFields(java.util.StringTokenizer st)
|
void |
setStringValue(java.lang.String stringValue)
|
java.lang.String |
toString()
Returns a string representation of the DataPoint in the format:
[LABEL] = [VALUE] |
protected void |
writeRestOfFields(java.lang.StringBuffer sb)
|
Methods inherited from class uk.co.agena.minerva.util.model.DataPoint |
getAdjustedValue, getConnObjectId, getLabel, getValue, getVersion, read, setConnObjectId, setLabel, setValue, setVersion, toHTMLString, toString, write |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringDataPoint
public StringDataPoint()
- Default constructor.
StringDataPoint
public StringDataPoint(java.lang.String label,
double value,
int connObjectId,
java.lang.String stringValue)
- Creates a DataPoint with the specified label, connected object ID
(e.g. ExtendedState) and value.
- Parameters:
label
- the String label of the DataPointvalue
- the double value of the DataPointconnObjectId
- the ID of the object to which the DataPoint applies
StringDataPoint
public StringDataPoint(java.lang.String label,
int connObjectId,
java.lang.String stringValue)
toString
public java.lang.String toString()
- Returns a string representation of the DataPoint in the format:
[LABEL] = [VALUE]
- Overrides:
toString
in class DataPoint
- Returns:
- the String representation of the DataPoint
getStringValue
public java.lang.String getStringValue()
setStringValue
public void setStringValue(java.lang.String stringValue)
clone
public java.lang.Object clone()
- Creates a copy of this DataPoint.
- Overrides:
clone
in class DataPoint
- Returns:
- a copy of this DataPoint.
readRestOfFields
protected void readRestOfFields(java.util.StringTokenizer st)
- Overrides:
readRestOfFields
in class DataPoint
writeRestOfFields
protected void writeRestOfFields(java.lang.StringBuffer sb)
- Overrides:
writeRestOfFields
in class DataPoint
Copyright © 2006 Agena Ltd. All Rights Reserved.