|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.BasicItem<D>
org.proteios.core.OwnedItem<D>
org.proteios.core.SharedItem<D>
org.proteios.core.CommonItem<D>
org.proteios.core.AnnotatedItem<SearchResultData>
org.proteios.core.SearchResult
public class SearchResult
This class represent spectrumsearch.
| Field Summary | |
|---|---|
static int |
MAX_SCORETYPE_LENGTH
The maximum length of the scoreType string that can be stored in the database. |
static int |
MAX_SPECTRUMSTRINGID_LENGTH
|
static Item |
TYPE
The type of item represented by this class. |
| Fields inherited from interface org.proteios.core.Nameable |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Method Summary | |
|---|---|
void |
addPolyPeptide(PolyPeptide pp)
Add a PolyPeptide to the collection. |
void |
addReferencedResult(SearchResult referencedResult)
Add a result to the list of referenced results. |
int |
compareTo(SearchResult o)
|
Set<Annotatable> |
getAnnotatableParents()
Always null. |
Float |
getExpectationValue()
|
int |
getIndex()
|
int |
getInputSpectrumId()
|
PeakList |
getPeakList()
Get the PeakList this SearchResult is associated with. |
Set<Peptide> |
getPeptides()
Get the Peptide polypeptides. |
Set<PolyPeptide> |
getPolyPeptides()
|
Set<Protein> |
getProteins()
Get the Peptide polypeptides. |
static ItemQuery<SearchResult> |
getQuery()
Get a query that returns spectrumsearchset items. |
List<SearchResult> |
getReferencedResults()
Get the SearchResult referenced results. |
Float |
getScore()
|
String |
getScoreType()
Get the input filename of this SearchResult. |
SpectrumSearch |
getSpectrumSearch()
Get the SpectrumSearch this SearchResult is associated with. |
String |
getSpectrumStringId()
|
Item |
getType()
Get the type of item represented by the object. |
boolean |
isUsed()
Check that: no item has been created from this peaklistset |
void |
setExpectationValue(Float eValue)
|
void |
setIndex(int index)
|
void |
setInputSpectrumId(int inputSpectrumId)
|
void |
setPeakList(PeakList peakList)
Set the PeakList this SearchResult is associated with. |
void |
setPolyPeptides(Set<PolyPeptide> polyPeptides)
Set the PolyPeptide polypeptides |
void |
setReferencedResults(List<SearchResult> referencedResults)
Set the SearchResult referenced results. |
void |
setScore(Float score)
|
void |
setScoreType(String scoreType)
Set the scoreType for this SearchResult item. |
void |
setSpectrumSearch(SpectrumSearch spectrumSearch)
Set the SpectrumSearch this SearchResult is associated with. |
void |
setSpectrumStringId(String spectrumStringId)
Set the spectrumStringId for this SearchResult item. |
| Methods inherited from class org.proteios.core.CommonItem |
|---|
getDescription, getName, isRemoved, setDescription, setName, setRemoved |
| Methods inherited from class org.proteios.core.SharedItem |
|---|
getItemKey, getProjectKey, isShared, setItemKey, setProjectKey |
| Methods inherited from class org.proteios.core.OwnedItem |
|---|
getOwner, setOwner |
| Methods inherited from class org.proteios.core.BasicItem |
|---|
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.proteios.core.Identifiable |
|---|
getId, getVersion |
| Methods inherited from interface org.proteios.core.AccessControlled |
|---|
checkPermission, hasPermission |
| Methods inherited from interface org.proteios.core.Ownable |
|---|
getOwner, setOwner |
| Field Detail |
|---|
public static final Item TYPE
Item.PROTEIOS_SEARCHRESULT,
getType()public static final int MAX_SCORETYPE_LENGTH
setScoreType(String),
Constant Field Valuespublic static final int MAX_SPECTRUMSTRINGID_LENGTH
| Method Detail |
|---|
public int compareTo(SearchResult o)
compareTo in interface Comparable<SearchResult>public static ItemQuery<SearchResult> getQuery()
ItemQuery object.public Item getType()
IdentifiableItem enumeration.
getType in interface Identifiable
public Set<Annotatable> getAnnotatableParents()
throws BaseException
BaseException
public boolean isUsed()
throws BaseException
isUsed in class BasicItem<SearchResultData>BaseException
public PeakList getPeakList()
throws BaseException
PeakList this SearchResult is associated with.
PeakList item or null if not known
BaseException - If there is another error
public void setPeakList(PeakList peakList)
throws BaseException
PeakList this SearchResult is associated with.
peakList - The new PeakList item
BaseException - If there is another error
public SpectrumSearch getSpectrumSearch()
throws BaseException
SpectrumSearch this SearchResult is associated with.
SpectrumSearch item or null if not known
BaseException - If there is another error
public void setSpectrumSearch(SpectrumSearch spectrumSearch)
throws BaseException
SpectrumSearch this SearchResult is associated with.
spectrumSearch - The new SpectrumSearch item
BaseException - If there is another errorpublic int getIndex()
public void setIndex(int index)
index - The index for sorting.public int getInputSpectrumId()
public void setInputSpectrumId(int inputSpectrumId)
inputSpectrumId - The inputSpectrumId to set.public Float getScore()
public void setScore(Float score)
score - The primary score.public Float getExpectationValue()
public void setExpectationValue(Float eValue)
eValue - The primary expectation value.public String getScoreType()
SearchResult.
public void setScoreType(String scoreType)
throws InvalidDataException
SearchResult item. The value
may be null but must not be longer than the value specified by the
MAX_SCORETYPE_LENGTH constant.
scoreType - The new scoreType for this item
InvalidDataException - If the scoreType is longer than
MAX_SCORETYPE_LENGTHpublic String getSpectrumStringId()
public void setSpectrumStringId(String spectrumStringId)
throws InvalidDataException
SearchResult item. The
value may be null but must not be longer than the value specified by the
spectrumStringId - The spectrumStringId to set.
InvalidDataException - If the spectrumStringId is longer than
MAX_SPECTRUMSTRINGID_LENGTH
public List<SearchResult> getReferencedResults()
throws ItemNotFoundException,
BaseException
SearchResult referenced results.
SearchResult list object
BaseException - If there is another error
ItemNotFoundException
public void setReferencedResults(List<SearchResult> referencedResults)
throws InvalidDataException
SearchResult referenced results.
referencedResults - The new SearchResult list item
BaseException - If there is another error
InvalidDataExceptionpublic void addReferencedResult(SearchResult referencedResult)
public Set<PolyPeptide> getPolyPeptides()
throws ItemNotFoundException,
BaseException
ItemNotFoundException
BaseException
public void setPolyPeptides(Set<PolyPeptide> polyPeptides)
throws InvalidDataException
PolyPeptide polypeptides
polyPeptides - The new PolyPeptide set item
BaseException - If there is another error
InvalidDataExceptionpublic void addPolyPeptide(PolyPeptide pp)
pp - the PolyPeptide to set
public Set<Peptide> getPeptides()
throws ItemNotFoundException,
BaseException
Peptide polypeptides. Only returns peptides from the
polypeptide collection
Peptide set object
BaseException - If there is another error
ItemNotFoundException
public Set<Protein> getProteins()
throws ItemNotFoundException,
BaseException
Peptide polypeptides. Only returns peptides from the
polypeptide collection
Peptide set object
BaseException - If there is another error
ItemNotFoundException
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||