|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object 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.results.Result |
---|
comment, datatype, name |
Constructor Summary | |
---|---|
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 | |
---|---|
protected void |
fromXML(StringBuffer representation)
This method is used in Result.Result(StringBuffer) to extract the
information. |
String |
toString()
|
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer of an
instance of the implementing class. |
Methods inherited from class de.jstacs.results.SimpleResult |
---|
compareTo, equals, getResult |
Methods inherited from class de.jstacs.results.Result |
---|
appendMainInfo, checkDatatype, createResult, extractMainInfo, getComment, getDatatype, getName, isCastableResult, isComparableResult |
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 parsedpublic 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 StringBuffer toXML()
Storable
StringBuffer
of an
instance of the implementing class.
toXML
in interface Storable
toXML
in class SimpleResult
protected void fromXML(StringBuffer representation) throws NonParsableException
Result
Result.Result(StringBuffer)
to extract the
information. The method can be seen as opposite of
Storable.toXML()
and should not be made public.
fromXML
in class SimpleResult
representation
- the XML represenation of the Result
to be parsed
NonParsableException
- if the XML representation is not parsableResult.extractMainInfo(StringBuffer)
public String toString()
toString
in class SimpleResult
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |