|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bdgp.io.AbstractDataAdapter
apollo.dataadapter.AbstractApolloAdapter
apollo.dataadapter.synteny.SyntenyAdapter
public class SyntenyAdapter
When the user selects "Synteny" from the datachooser menu, I am the adapter that's loaded. Note that all of my hard work is really done by my GUI - SyntenyAdapterGUI. In particular, the data-fetching is run by the doOperation method on the GUI.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
|
| Fields inherited from class apollo.dataadapter.AbstractApolloAdapter |
|---|
curation_set, region, style |
| Fields inherited from class org.bdgp.io.AbstractDataAdapter |
|---|
listeners |
| Fields inherited from interface apollo.dataadapter.ApolloDataAdapterI |
|---|
OP_APPEND_DATA, OP_READ_DATA, OP_READ_RAW_ANALYSIS, OP_READ_SEQUENCE, OP_WRITE_DATA |
| Constructor Summary | |
|---|---|
SyntenyAdapter()
|
|
| Method Summary | |
|---|---|
void |
clearStateInformation()
Does nothing yet, because the state info isn't being used on this adapter yet. |
void |
commitChanges(CompositeDataHolder cdh)
Write out composite data holder to multiple data adapters - called by DataLoader/FileMenu not SynAdapGUI |
void |
commitChanges(CurationSet curationSet)
I think this is now pase and should be deleted - always gets a CompositeDataHolder now - this is actually not called by SyntenyAdapterGUI.doOp(WRITE) - calls child adapter guis doOp this is called by DataLoader though |
java.util.Map |
getAdapters()
maps adapter "logical name"/label to the adapter itself |
ApolloDataAdapterI |
getChildAdapter(int i)
Throws not implemented exception as by default data adapter dont have species adapter (isComposite()=false). |
CurationSet |
getCurationSet()
Visit each child adapter and ask each one for its CurationSet. |
java.lang.String |
getInput()
Returns the input String passed to the DataAdapter, the input is of course associated with the input type Should this go into org.bdgp.io.DataAdapter? |
DataInputType |
getInputType()
This is an arcane requirement to get the File->Save menu to light up. |
java.lang.String |
getName()
Name label for use in Data Adapter Chooser. |
int |
getNumberOfChildAdapters()
From ApolloDataAdapterI |
java.lang.String |
getRawAnalysisResults(java.lang.String id)
|
SequenceI |
getSequence(DbXref dbxref)
|
SequenceI |
getSequence(DbXref dbxref,
int start,
int end)
|
SequenceI |
getSequence(java.lang.String id)
Strings for input types |
java.util.Vector |
getSequences(DbXref[] dbxref)
|
java.util.Vector |
getSequences(DbXref[] dbxref,
int[] start,
int[] end)
|
ApolloDataAdapterI |
getSpeciesAdapter(java.lang.String species)
|
java.util.Properties |
getStateInformation()
State info Properties carries all the info needed for the adapter to do its query This is an alternative to setDataInput. |
org.bdgp.io.IOOperation[] |
getSupportedOperations()
Returns a list of all operations supported by this data adapter |
java.lang.String |
getType()
From org.bdgp.io.DataAdapter. |
org.bdgp.io.DataAdapterUI |
getUI(org.bdgp.io.IOOperation op)
gets ui for op from cache. |
void |
init()
From org.bdgp.io.DataAdapter interface. |
boolean |
isComposite()
By default return false - data adapter is not composite. |
void |
loadNewSpeciesFromLink(SeqFeatureI link,
CompositeDataHolder compData)
From ApolloDataAdapterI. |
CompositeDataHolder |
loadSpeciesThatContainLinks(int numberOfSpecies)
Load data from dataadapters where the link information is embedded in the species data (rather than coming from a separate source). |
void |
setRegion(java.lang.String region)
This region doesnt seem to be used anywhere? |
void |
setStateInformation(java.util.Properties props)
This should set StateInformation object! see StateInformation for Strings to use for keys. |
| Methods inherited from class apollo.dataadapter.AbstractApolloAdapter |
|---|
addToCurationSet, cacheUI, canWriteData, clearOldData, commitChanges, commitChanges, commitChanges, commitChanges, getCachedUI, getChildAdapter, getCurationState, getDatabase, getDataInput, getDefaultStyle, getFilename, getNameAdapter, getSpecies, getStyle, hasLinkData, operationIsSupported, rollbackAnnotations, rollbackAnnotations, setCuration, setCurationNumber, setCurationState, setDatabase, setDataInput, setDataLoadListener, setInput, setInputType, setLocation, setName, setPadLeft, setPadRight, setSpecies, setStyle |
| Methods inherited from class org.bdgp.io.AbstractDataAdapter |
|---|
addProgressListener, fireProgressEvent, removeProgressListener, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.bdgp.io.VisualDataAdapter |
|---|
addProgressListener, fireProgressEvent, removeProgressListener |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public SyntenyAdapter()
| Method Detail |
|---|
public java.util.Map getAdapters()
getAdapters in interface ApolloDataAdapterIgetAdapters in class AbstractApolloAdapterpublic ApolloDataAdapterI getSpeciesAdapter(java.lang.String species)
public java.lang.String getName()
AbstractApolloAdapter
getName in interface org.bdgp.io.DataAdaptergetName in class AbstractApolloAdapterpublic java.lang.String getType()
AbstractApolloAdapter
getType in interface org.bdgp.io.DataAdaptergetType in class AbstractApolloAdapterpublic DataInputType getInputType()
getInputType in interface ApolloDataAdapterIgetInputType in class AbstractApolloAdapterShould this go into org.bdgp.io.DataAdapter?public java.lang.String getInput()
AbstractApolloAdapter
getInput in interface ApolloDataAdapterIgetInput in class AbstractApolloAdapterpublic org.bdgp.io.IOOperation[] getSupportedOperations()
org.bdgp.io.DataAdapter
public org.bdgp.io.DataAdapterUI getUI(org.bdgp.io.IOOperation op)
public void setRegion(java.lang.String region)
throws ApolloAdapterException
AbstractApolloAdapter
setRegion in interface ApolloDataAdapterIsetRegion in class AbstractApolloAdapterApolloAdapterExceptionpublic java.util.Properties getStateInformation()
ApolloDataAdapterI
getStateInformation in interface ApolloDataAdapterIgetStateInformation in class AbstractApolloAdapterpublic void setStateInformation(java.util.Properties props)
ApolloDataAdapterI
setStateInformation in interface ApolloDataAdapterIsetStateInformation in class AbstractApolloAdapter
public CurationSet getCurationSet()
throws ApolloAdapterException
getCurationSet in interface ApolloDataAdapterIgetCurationSet in class AbstractApolloAdapterApolloAdapterException
public SequenceI getSequence(java.lang.String id)
throws ApolloAdapterException
ApolloDataAdapterI
getSequence in interface ApolloDataAdapterIgetSequence in class AbstractApolloAdapterApolloAdapterException
public SequenceI getSequence(DbXref dbxref)
throws ApolloAdapterException
getSequence in interface ApolloDataAdapterIgetSequence in class AbstractApolloAdapterApolloAdapterException
public SequenceI getSequence(DbXref dbxref,
int start,
int end)
throws ApolloAdapterException
getSequence in interface ApolloDataAdapterIgetSequence in class AbstractApolloAdapterApolloAdapterException
public java.util.Vector getSequences(DbXref[] dbxref)
throws ApolloAdapterException
getSequences in interface ApolloDataAdapterIgetSequences in class AbstractApolloAdapterApolloAdapterException
public java.util.Vector getSequences(DbXref[] dbxref,
int[] start,
int[] end)
throws ApolloAdapterException
getSequences in interface ApolloDataAdapterIgetSequences in class AbstractApolloAdapterApolloAdapterException
public void commitChanges(CompositeDataHolder cdh)
throws ApolloAdapterException
commitChanges in interface ApolloDataAdapterIcommitChanges in class AbstractApolloAdapterApolloAdapterException
public void commitChanges(CurationSet curationSet)
throws ApolloAdapterException
commitChanges in interface ApolloDataAdapterIcommitChanges in class AbstractApolloAdapterApolloAdapterException
public java.lang.String getRawAnalysisResults(java.lang.String id)
throws ApolloAdapterException
getRawAnalysisResults in interface ApolloDataAdapterIgetRawAnalysisResults in class AbstractApolloAdapterApolloAdapterExceptionpublic void init()
AbstractApolloAdapter
init in interface org.bdgp.io.DataAdapterinit in class AbstractApolloAdapterpublic int getNumberOfChildAdapters()
getNumberOfChildAdapters in interface ApolloDataAdapterIgetNumberOfChildAdapters in class AbstractApolloAdapterpublic ApolloDataAdapterI getChildAdapter(int i)
AbstractApolloAdapter
getChildAdapter in interface ApolloDataAdapterIgetChildAdapter in class AbstractApolloAdapter
public CompositeDataHolder loadSpeciesThatContainLinks(int numberOfSpecies)
throws org.bdgp.io.DataAdapterException
org.bdgp.io.DataAdapterException
public void loadNewSpeciesFromLink(SeqFeatureI link,
CompositeDataHolder compData)
throws org.bdgp.io.DataAdapterException
loadNewSpeciesFromLink in interface ApolloDataAdapterIloadNewSpeciesFromLink in class AbstractApolloAdapterorg.bdgp.io.DataAdapterExceptionpublic void clearStateInformation()
clearStateInformation in class AbstractApolloAdapterpublic boolean isComposite()
AbstractApolloAdapter
isComposite in interface ApolloDataAdapterIisComposite in class AbstractApolloAdapter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||