|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.AnnotatedEntity
de.jstacs.results.Result
de.jstacs.results.SimpleResult
de.jstacs.results.NumericalResult
public class NumericalResult
Class for numerical Result
values. Possible data types are the
numerical data types of DataType
.
Field Summary |
---|
Fields inherited from class de.jstacs.results.SimpleResult |
---|
result |
Fields inherited from class de.jstacs.AnnotatedEntity |
---|
comment, datatype, name |
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
String |
getXMLTag()
This method returns a tag used as outer tag of the XML description. |
String |
toString()
|
Methods inherited from class de.jstacs.results.SimpleResult |
---|
appendFurtherInfos, compareTo, equals, extractFurtherInfos, getValue |
Methods inherited from class de.jstacs.results.Result |
---|
checkDatatype, createResult, isCastableResult, isComparableResult |
Methods inherited from class de.jstacs.AnnotatedEntity |
---|
getComment, getDatatype, getName, toXML |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NumericalResult(StringBuffer representation) throws NonParsableException
Storable
.
Constructs a NumericalResult
from its XML representation.
representation
- the XML representation as StringBuffer
NonParsableException
- 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)
Method Detail |
---|
public String toString()
toString
in class SimpleResult
public String getXMLTag()
AnnotatedEntity
getXMLTag
in class AnnotatedEntity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |