|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.mutations.drivers.MutationDriverCache
MutationDriver cache. This astract class provides the following cahing mechanism:
| Nested Class Summary | |
protected class |
MutationDriverCache.CachedMutants
Keeps the mutants and the time at which they entered the cache. |
| Constructor Summary | |
MutationDriverCache()
|
|
| Method Summary | |
protected java.util.Map |
getAccessionCodeMap(java.lang.String origin)
|
protected Mutant[] |
getCachedMutants(java.lang.String origin,
java.lang.String accession_code)
|
abstract DriverInformation |
getInformation()
|
protected Mutant[] |
getMutants(java.lang.String origin,
java.lang.String accession_code)
Checks wether the mutants are in the cache, returns them if they were found there, otherwise delegate to the subclass. |
protected abstract Mutant[] |
getMutantsFor(java.lang.String origin,
java.lang.String accession_code)
Not Cached, implemented by each driver specialization. |
Mutant[] |
getMutantsFor(java.lang.String origin,
java.lang.String accession_code,
short pure_type_signature,
boolean filter_by_pure_signature,
short cumulative_type_signature,
boolean filter_by_cumulative_signature,
boolean filter_by_exact_cumulative_signature)
Cached, implemented by the abstract driver class. |
Mutation[][] |
getMutationsFor(java.lang.String origin,
java.lang.String accession_code,
short pure_type_signature,
boolean filter_by_pure_signature,
short cumulative_type_signature,
boolean filter_by_cumulative_signature,
boolean filter_by_exact_cumulative_signature)
Cached, implemented by the abstract driver class. |
protected void |
pushInCache(java.lang.String origin,
java.lang.String accession_code,
Mutant[] mutants)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MutationDriverCache()
| Method Detail |
public abstract DriverInformation getInformation()
getInformation in interface MutationDriverprotected abstract Mutant[] getMutantsFor(java.lang.String origin, java.lang.String accession_code) throws SourceNotAvailable, ProtocolError, UnsupportedOrigin
public final Mutation[][] getMutationsFor(java.lang.String origin, java.lang.String accession_code, short pure_type_signature, boolean filter_by_pure_signature, short cumulative_type_signature, boolean filter_by_cumulative_signature, boolean filter_by_exact_cumulative_signature) throws SourceNotAvailable, ProtocolError, UnsupportedOrigin
getMutationsFor in interface MutationDriverorigin - Orgin of the sequence for which the mutation server
is queried.accession_code - Accession code, relative to the origin,
for which the mutation server is queried.pure_type_signature - Mutants that are returned must have
this pure_type_signature.cumulative_type_signature - Mutants that are returned must
have this cumulative_type_signature. The semantic of "have" is defined
below.filter_by_pure_signature - If true, the query results are
filtered according to the pure signature, if false the pure
signature is ignored.filter_by_exact_cumulative_signature - If true, the query results
are filtered according to the exact cumulative signature (the match
can only be accepted when
cumulative_type_signature == mutant.cumulative_signature).
If false the cumulative signature is ignored.filter_by_cumulative_signature - If true, the query results
are filtered according to the cumulative signature, i.e. (cumulative_type_signature & mutant.cumulative_signature)!=0. If false the
cumulative signature is ignored.
SourceNotAvailable
ProtocolError
UnsupportedOriginMutantpublic final Mutant[] getMutantsFor(java.lang.String origin, java.lang.String accession_code, short pure_type_signature, boolean filter_by_pure_signature, short cumulative_type_signature, boolean filter_by_cumulative_signature, boolean filter_by_exact_cumulative_signature) throws SourceNotAvailable, ProtocolError, UnsupportedOrigin
getMutantsFor in interface MutationDriverorigin - Orgin of the sequence for which the mutation server
is queried.accession_code - Accession code, relative to the origin,
for which the mutation server is queried.pure_type_signature - Mutants that are returned must have
this pure_type_signature.cumulative_type_signature - Mutants that are returned must
have this cumulative_type_signature. The semantic of "have" is defined
below.filter_by_pure_signature - If true, the query results are
filtered according to the pure signature, if false the pure
signature is ignored.filter_by_exact_cumulative_signature - If true, the query results
are filtered according to the exact cumulative signature (the match
can only be accepted when
cumulative_type_signature == mutant.cumulative_signature).
If false the cumulative signature is ignored.filter_by_cumulative_signature - If true, the query results
are filtered according to the cumulative signature, i.e. (cumulative_type_signature & mutant.cumulative_signature)!=0. If false the
cumulative signature is ignored.
SourceNotAvailable
ProtocolError
UnsupportedOriginMutantprotected Mutant[] getMutants(java.lang.String origin, java.lang.String accession_code) throws SourceNotAvailable, ProtocolError, UnsupportedOrigin
protected void pushInCache(java.lang.String origin,
java.lang.String accession_code,
Mutant[] mutants)
protected Mutant[] getCachedMutants(java.lang.String origin, java.lang.String accession_code)
protected java.util.Map getAccessionCodeMap(java.lang.String origin)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||