|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.utils.AbstractChangeable
org.biojava.bio.search.SimpleSeqSimilaritySearchResult
public class SimpleSeqSimilaritySearchResult
SimpleSeqSimilaritySearchResult objects represent a
result of a search of a SymbolList against the
sequences within a SequenceDB object. The core data
(query sequence, database, search parameters, hits) have accessors,
while supplementary data are stored in the Annotation
object. Supplementary data are typically the more loosely formatted
details which vary from one search program to another (and between
versions of those programs).
AbstractChangeable,
SeqSimilaritySearchResult,
Annotatable| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojava.bio.Annotatable |
|---|
Annotatable.AnnotationForwarder |
| Field Summary | |
|---|---|
protected ChangeForwarder |
annotationForwarder
|
| Fields inherited from interface org.biojava.bio.Annotatable |
|---|
ANNOTATION |
| Constructor Summary | |
|---|---|
SimpleSeqSimilaritySearchResult(Sequence querySequence,
SequenceDB sequenceDB,
Map searchParameters,
List hits,
Annotation annotation)
Creates a new SimpleSeqSimilaritySearchResult. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
Annotation |
getAnnotation()
getAnnotation returns the Annotation associated
with this hit. |
protected ChangeSupport |
getChangeSupport(ChangeType ct)
Called to retrieve the ChangeSupport for this object. |
List |
getHits()
Return all hits in this sequence similarity search result. |
Sequence |
getQuerySequence()
Returns the query sequence which was used to perform the search. |
Map |
getSearchParameters()
Returns the search parameters used in the search that produced this search result. |
SequenceDB |
getSequenceDB()
Returns the sequence database against which the search was performed. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class org.biojava.utils.AbstractChangeable |
|---|
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.biojava.utils.Changeable |
|---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Field Detail |
|---|
protected transient ChangeForwarder annotationForwarder
| Constructor Detail |
|---|
public SimpleSeqSimilaritySearchResult(Sequence querySequence,
SequenceDB sequenceDB,
Map searchParameters,
List hits,
Annotation annotation)
SimpleSeqSimilaritySearchResult.
querySequence - a Sequence.sequenceDB - a SequenceDB.searchParameters - a Map.annotation - an Annotation.hits - a List.| Method Detail |
|---|
public Sequence getQuerySequence()
SeqSimilaritySearchResult
getQuerySequence in interface SeqSimilaritySearchResultSequence object used to search the
SequenceDB. Never returns null.public SequenceDB getSequenceDB()
SeqSimilaritySearchResult
getSequenceDB in interface SeqSimilaritySearchResultSequenceDB object against which the
search was carried out. Never returns null.public Map getSearchParameters()
SeqSimilaritySearchResult
getSearchParameters in interface SeqSimilaritySearchResultMap
object. May return null.public List getHits()
SeqSimilaritySearchResult
getHits in interface SeqSimilaritySearchResultList of
SeqSimilaritySearchHit objects containing all hits
in the search result. Never returns null but may return an
empty list.public Annotation getAnnotation()
getAnnotation returns the Annotation associated
with this hit.
getAnnotation in interface AnnotatableAnnotation.public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectprotected ChangeSupport getChangeSupport(ChangeType ct)
AbstractChangeable
Your implementation of this method should have the following structure:
It is usual for the forwarding listeners (someForwarder in this example) to
be transient and lazily instantiated. Be sure to register & unregister the
forwarder in the code that does the ChangeEvent handling in setter methods.
ChangeSupport cs = super.getChangeSupport(ct);
if(someForwarder == null && ct.isMatching(SomeInterface.SomeChangeType)) {
someForwarder = new ChangeForwarder(...
this.stateVariable.addChangeListener(someForwarder, VariableInterface.AChange);
}
return cs;
getChangeSupport in class AbstractChangeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||