public class NumericalResult extends SimpleResult
resultcomment, datatype, name| Modifier | Constructor and Description |
|---|---|
protected |
NumericalResult(DataType datatype,
String name,
String comment,
Comparable result)
Creates a
NumericalResult of a primitive numerical data type. |
|
NumericalResult(StringBuffer representation)
The standard constructor for the interface
Storable. |
|
NumericalResult(String name,
String comment,
double result)
The simplified constructor for the primitive type
double. |
|
NumericalResult(String name,
String comment,
int result)
The simplified constructor for the primitive type
int. |
|
NumericalResult(String name,
String comment,
Integer result)
The simplified constructor for the type
Integer. |
|
NumericalResult(String name,
String comment,
long result)
The simplified constructor for the primitive type
long. |
| Modifier and Type | Method and Description |
|---|---|
String |
getXMLTag()
This method returns a tag used as outer tag of the XML description.
|
String |
toString() |
appendFurtherInfos, compareTo, equals, extractFurtherInfos, getValuecheckDatatype, createResult, getOriginalName, isCastableResult, isComparableResult, renamegetComment, getDatatype, getName, toXMLpublic NumericalResult(StringBuffer representation) throws NonParsableException
Storable.
Constructs a NumericalResult from its XML representation.representation - the XML representation as StringBufferNonParsableException - if the StringBuffer representation could
not be parsedprotected NumericalResult(DataType datatype, String name, String comment, Comparable result)
NumericalResult of a primitive numerical data type.datatype - the data typename - the name of the resultcomment - a comment on the resultresult - the result itselfpublic NumericalResult(String name, String comment, double result)
double.name - the name of the resultcomment - a comment on the resultresult - the result itselfNumericalResult(DataType, String, String, Comparable)public NumericalResult(String name, String comment, int result)
int.name - the name of the resultcomment - a comment on the resultresult - the result itselfNumericalResult(DataType, String, String, Comparable)public NumericalResult(String name, String comment, Integer result)
Integer.name - the name of the resultcomment - a comment on the resultresult - the result itselfNumericalResult(DataType, String, String, Comparable)public NumericalResult(String name, String comment, long result)
long.name - the name of the resultcomment - a comment on the resultresult - the result itselfNumericalResult(DataType, String, String, Comparable)public String toString()
toString in class SimpleResultpublic String getXMLTag()
AnnotatedEntitygetXMLTag in class AnnotatedEntity