|
||||||||||
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.SampleResult
public class SampleResult
Result
that contains a Sample
. This Sample
e.g. may
have been created by Model.emitSample(int, int...)
,
or maybe 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)
The standard constructor for the interface Storable . |
|
SampleResult(String name,
String comment,
Sample data)
Creates a new SampleResult from a Sample with the
annotation name and comment . |
|
SampleResult(String name,
String comment,
Sample data,
SequenceAnnotationParser parser)
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. |
SequenceAnnotationParser |
getParser()
Returns the SequenceAnnotationParser that can be used to
write this SampleResult including annotations on the contained Sequence s
to a file. |
Sample |
getResult()
Returns the value of the Result . |
void |
setParser(SequenceAnnotationParser parser)
Sets the SequenceAnnotationParser that can be used to
write this SampleResult including annotations on the contained Sequence s
to a file |
StringBuffer |
toXML()
This method returns an XML representation as StringBuffer 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 Result
comment
- the comment on the Result
data
- the Sample
that is the result of some computationpublic SampleResult(String name, String comment, Sample data, SequenceAnnotationParser parser)
SampleResult
from a Sample
with the
annotation name
and comment
.
name
- the name of the Result
comment
- the comment on the Result
data
- the Sample
that is the result of some computationparser
- a SequenceAnnotationParser
that can be used to store and parse the annotations of data
public SampleResult(StringBuffer source) throws NonParsableException
Storable
.
Recreates a SampleResult
from its XML representation as returned
by toXML()
.
source
- the XML representation as StringBuffer
NonParsableException
- if the XML code could not be parsedMethod Detail |
---|
protected void fromXML(StringBuffer rep) 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 Result
rep
- the XML represenation of the Result
to be parsed
NonParsableException
- if the XML representation is not parsableResult.extractMainInfo(StringBuffer)
public Sample getResult()
Result
Result
.
getResult
in class Result
Result
public StringBuffer toXML()
Storable
StringBuffer
of an
instance of the implementing class.
public SequenceAnnotationParser getParser()
SequenceAnnotationParser
that can be used to
write this SampleResult
including annotations on the contained Sequence
s
to a file.
SequenceAnnotationParser
public void setParser(SequenceAnnotationParser parser)
SequenceAnnotationParser
that can be used to
write this SampleResult
including annotations on the contained Sequence
s
to a file
parser
- the new SequenceAnnotationParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |