|
||||||||||
| 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.SampleResult
public class SampleResult
Result that contains a Sample. This Sample e.g. may have been created by Model.emitSample(int, int...), or
may be a Sample that has been annotated in a classification.
| Field Summary |
|---|
| Fields inherited from class de.jstacs.results.Result |
|---|
comment, datatype, name |
| Constructor Summary | |
|---|---|
SampleResult(StringBuffer source)
Re-creates a SampleResult from its XML-representation as returned by toXML(). |
|
SampleResult(String name,
String comment,
Sample data)
Creates a new SampleResult from a Sample with the annotation name and comment. |
|
| Method Summary | |
|---|---|
protected void |
fromXML(StringBuffer rep)
This method is used in Result.Result(StringBuffer) to extract the information. |
Sample |
getResult()
Returns the value of the result. |
StringBuffer |
toXML()
This method returns an XML-representation of an instance of the implementing class. |
| 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SampleResult(String name,
String comment,
Sample data)
SampleResult from a Sample with the annotation name and comment.
name - the name of the Resultcomment - the comment on the Resultdata - the Sample that is the result of some computation
public SampleResult(StringBuffer source)
throws NonParsableException
SampleResult from its XML-representation as returned by toXML().
source - the XML-representation
NonParsableException - is thrown if the XML-code could not be parsed| Method Detail |
|---|
protected void fromXML(StringBuffer rep)
throws NonParsableException
ResultResult.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 Resultrep - a xml represenation
NonParsableException - if the xml representation is not parsableResult.extractMainInfo(StringBuffer)public Sample getResult()
Result
getResult in class Resultpublic StringBuffer toXML()
Storable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||