public abstract class ViewSequenceFactory extends Object
ViewSequenceFactory
is a base class for creating
search handlers which create and cache views on the query and
subject sequences.Modifier and Type | Field and Description |
---|---|
protected String |
databaseID |
protected SequenceDB |
querySeqHolder |
protected Map |
queryViewCache |
protected SequenceDBInstallation |
subjectDBs |
protected Map |
subjectViewCache |
Constructor and Description |
---|
ViewSequenceFactory() |
Modifier and Type | Method and Description |
---|---|
SequenceDB |
getQuerySeqHolder()
getQuerySeqHolder returns the database of query
sequences used to retrieve sequences for creation of the
various result objects. |
SequenceDBInstallation |
getSubjectDBInstallation()
getSubjectDBInstallation returns the installation
in which all the databases searched may be
found. |
protected Sequence |
makeQueryViewSequence(String queryID) |
protected Sequence |
makeSubjectViewSequence(String subjectID) |
void |
setDatabaseID(String databaseID) |
void |
setQuerySeqHolder(SequenceDB querySeqHolder)
setQuerySeqHolder sets the query sequence holder
to a specific database. |
void |
setSubjectDBInstallation(SequenceDBInstallation subjectDBs)
setSubjectDBInstallation sets the subject database
holder to a specific installation. |
protected SequenceDBInstallation subjectDBs
protected SequenceDB querySeqHolder
protected String databaseID
protected Map queryViewCache
protected Map subjectViewCache
public ViewSequenceFactory()
public SequenceDB getQuerySeqHolder()
getQuerySeqHolder
returns the database of query
sequences used to retrieve sequences for creation of the
various result objects.SequenceDB
value.public void setQuerySeqHolder(SequenceDB querySeqHolder)
setQuerySeqHolder
sets the query sequence holder
to a specific database.querySeqHolder
- a SequenceDB
containing the
query sequence(s).public SequenceDBInstallation getSubjectDBInstallation()
getSubjectDBInstallation
returns the installation
in which all the databases searched may be
found. SequenceDB
s are retrieved for creation of
the various result objects.SequenceDBInstallation
containing the
subject database(s).public void setSubjectDBInstallation(SequenceDBInstallation subjectDBs)
setSubjectDBInstallation
sets the subject database
holder to a specific installation.subjectDBs
- a SequenceDBInstallation
containing the subject database(s)public void setDatabaseID(String databaseID)
protected Sequence makeQueryViewSequence(String queryID) throws BioException
BioException
protected Sequence makeSubjectViewSequence(String subjectID) throws BioException
BioException
Copyright © 2014 BioJava. All rights reserved.