|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.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)
Constructs a NumericalResult from its XML-representation. |
|
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 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
NumericalResult
from its XML-representation.
representation
- the XML-representation
NonParsableException
- a NonParsableException
is thrown if
representation
could not be parsedpublic NumericalResult(String name, String comment, double result)
name
- the namecomment
- the commentresult
- the resultpublic NumericalResult(String name, String comment, int result)
name
- the namecomment
- the commentresult
- the resultpublic NumericalResult(String name, String comment, Integer result)
name
- the namecomment
- the commentresult
- the resultpublic NumericalResult(String name, String comment, long result)
name
- the namecomment
- the commentresult
- the resultMethod Detail |
---|
public StringBuffer toXML()
Storable
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
- a xml represenation
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 |