|
|||||||||
| 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.sample.SampleAdapter
public class SampleAdapter
I am a simple adapter gui that serves as a minimal sample that people can use to understand how a data adapter works, and cut-and-paste from, if neccessary.
| Field Summary | |
|---|---|
static java.lang.String |
NUMBER_OF_FEATURES
|
| Fields inherited from class apollo.dataadapter.AbstractApolloAdapter |
|---|
curation_set, logger, 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 | |
|---|---|
SampleAdapter()
|
|
| Method Summary | |
|---|---|
CurationSet |
getCurationSet()
This is the main method: we create some fake features, add them to the CurationSet's results, and create a fake sequence for them. |
DataInputType |
getInputType()
This is queried by Apollo's FileMenu |
java.util.Properties |
getStateInformation()
When the data load is done, this adapter is queried for any state information: this information is then written to a text file which stores a history of this adapter's state (see ApolloRunner.writeAdapterHistory). |
org.bdgp.io.IOOperation[] |
getSupportedOperations()
From bdgp DataAdapter. |
java.lang.String |
getType()
From bdgp DataAdapter. |
org.bdgp.io.DataAdapterUI |
getUI(org.bdgp.io.IOOperation op)
From bdgp DataAdapter. |
void |
init()
From org.bdgp.DataAdapter interface. |
void |
setStateInformation(java.util.Properties properties)
This is a convenient way of passing in the adapter's state: each part of the state is a key-value pair in the input Properties. |
| 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 |
|---|
public static final java.lang.String NUMBER_OF_FEATURES
| Constructor Detail |
|---|
public SampleAdapter()
| Method Detail |
|---|
public java.lang.String getType()
getType in interface org.bdgp.io.DataAdaptergetType in class AbstractApolloAdapterpublic org.bdgp.io.IOOperation[] getSupportedOperations()
public org.bdgp.io.DataAdapterUI getUI(org.bdgp.io.IOOperation op)
public void setStateInformation(java.util.Properties properties)
setStateInformation in interface ApolloDataAdapterIsetStateInformation in class AbstractApolloAdapterpublic void init()
init in interface org.bdgp.io.DataAdapterinit in class AbstractApolloAdapter
public CurationSet getCurationSet()
throws ApolloAdapterException
getCurationSet in interface ApolloDataAdapterIgetCurationSet in class AbstractApolloAdapterApolloAdapterExceptionpublic DataInputType getInputType()
getInputType in interface ApolloDataAdapterIgetInputType in class AbstractApolloAdapterShould this go into org.bdgp.io.DataAdapter?public java.util.Properties getStateInformation()
getStateInformation in interface ApolloDataAdapterIgetStateInformation in class AbstractApolloAdapter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||