|
||||||||||
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.seq.db.AbstractSequenceDB
org.biojava.bio.seq.distributed.DistributedSequenceDB
public class DistributedSequenceDB
Sequence database from the meta-DAS system.
Field Summary | |
---|---|
static ChangeType |
DATASOURCE
|
static ChangeType |
DATASOURCE_SELECTION
|
Fields inherited from interface org.biojava.bio.seq.db.SequenceDBLite |
---|
SEQUENCES |
Constructor Summary | |
---|---|
DistributedSequenceDB()
|
Method Summary | |
---|---|
void |
addDataSource(DistDataSource dds)
Add a distributed data source. |
void |
addSequence(Sequence seq)
Adds a sequence to the database. |
protected ChangeSupport |
getChangeSupport()
|
Set |
getDataSources()
Get the current set of all currently registered data sources. |
String |
getName()
Get the name of this sequence database. |
Sequence |
getSequence(String id)
Retrieve a single sequence by its id. |
protected boolean |
hasChangeSupport()
|
Set |
ids()
Get an immutable set of all of the IDs in the database. |
void |
removeDataSource(DistDataSource dds)
Remove a distributed data source. |
void |
removeSequence(String id)
Remove the sequence associated with an ID from the database. |
Methods inherited from class org.biojava.bio.seq.db.AbstractSequenceDB |
---|
filter, sequenceIterator |
Methods inherited from class org.biojava.utils.AbstractChangeable |
---|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.biojava.bio.seq.db.SequenceDB |
---|
filter, sequenceIterator |
Methods inherited from interface org.biojava.utils.Changeable |
---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
Field Detail |
---|
public static final ChangeType DATASOURCE
public static final ChangeType DATASOURCE_SELECTION
Constructor Detail |
---|
public DistributedSequenceDB()
Method Detail |
---|
protected boolean hasChangeSupport()
protected ChangeSupport getChangeSupport()
public Set getDataSources()
The returned Set is totaly independant of any future changes made to the distributed sequence DB.
public void addDataSource(DistDataSource dds) throws ChangeVetoException
dds
- the DistDataSource to add
ChangeVetoException
- if the data source could not be addedpublic void removeDataSource(DistDataSource dds) throws ChangeVetoException
dds
- the DistributedDataSource to remove
ChangeVetoException
- if the data source could not be removedpublic String getName()
SequenceDBLite
getName
in interface SequenceDBLite
public void addSequence(Sequence seq) throws ChangeVetoException
SequenceDBLite
addSequence
in interface SequenceDBLite
addSequence
in class AbstractSequenceDB
seq
- the Sequence to add
ChangeVetoException
- if either the database does not allow
sequences to be added or the modification was vetoedpublic void removeSequence(String id) throws ChangeVetoException
SequenceDBLite
removeSequence
in interface SequenceDBLite
removeSequence
in class AbstractSequenceDB
id
- the ID of the sequence to remove
ChangeVetoException
- if either the database does not allow
sequences to be removed or the modification was vetoedpublic Sequence getSequence(String id) throws IllegalIDException, BioException
SequenceDBLite
getSequence
in interface SequenceDBLite
id
- the id to retrieve by
IllegalIDException
- if the database doesn't know about the id
BioException
- if there was a failure in retrieving the sequencepublic Set ids()
SequenceDB
ids
in interface SequenceDB
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |