|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.usda.gdpc.AbstractDBElement
gov.usda.gdpc.Genotype
This is a database element representing a genotype.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary | |
static java.lang.String |
TYPE
|
| Fields inherited from class gov.usda.gdpc.AbstractDBElement |
myProperties |
| Method Summary | |
static java.lang.String |
buildKey(java.util.Map properties)
This builds the unique key for this phenotype based on the GenotypeProperty.DATA_SOURCE, GenotypeProperty.TAXON, and GenotypeProperty.GENOTYPE_EXPERIMENT. |
static java.lang.String |
buildKey(java.lang.String dataSource,
Taxon taxon,
GenotypeExperiment experiment)
This builds the unique key for this phenotype based on the GenotypeProperty.DATA_SOURCE, GenotypeProperty.TAXON, and GenotypeProperty.GENOTYPE_EXPERIMENT. |
AlleleList |
getAlleleList()
Returns the allele list of this genotype. |
static Genotype |
getCachedInstance(java.util.Map properties)
This returns the genotype instance given specified id and source. |
java.lang.String |
getDataSource()
Returns the data source of this genotype. |
GenotypeExperiment |
getGenotypeExperiment()
Returns the genotype experiment associated with this genotype. |
static Genotype |
getInstance(java.util.Map properties)
This returns the genotype instance given the specified list of properties. |
java.lang.String |
getName()
Returns the name of this genotype. |
Taxon |
getTaxon()
Returns the taxon associated with this genotype. |
java.lang.String |
getType()
Get type of this element. |
| Methods inherited from class gov.usda.gdpc.AbstractDBElement |
clear, compareTo, containsKey, containsValue, entrySet, equals, get, getID, getKey, getProperty, isEmpty, keySet, numProperties, properties, propsEqual, put, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
hashCode |
| Field Detail |
public static final java.lang.String TYPE
| Method Detail |
public static Genotype getInstance(java.util.Map properties)
properties - properties of this genotype. The keys are
the properties (type: GenotypeProperty) and the values are the
corresponding value. Properties can not have a value equal to
null. It is not allowed to have two keys that are the same.
The GenotypeProperty.DATA_SOURCE,
GenotypeProperty.TAXON, GenotypeProperty.GENOTYPE_EXPERIMENT, and
GenotypeProperty.VALUE properties must be defined.
public static Genotype getCachedInstance(java.util.Map properties)
properties - properties of this genotype. The keys are
the properties (type: GenotypeProperty) and the values are the
corresponding value. Properties can not have a value equal to
null. Only the GenotypeProperty.DATA_SOURCE,
GenotypeProperty.TAXON, and
GenotypeProperty.GENOTYPE_EXPERIMENT
are used to find a matching genotype in the cache.
public java.lang.String getName()
getName in interface DBElementgetName in class AbstractDBElementpublic static java.lang.String buildKey(java.util.Map properties)
properties - properties map
public static java.lang.String buildKey(java.lang.String dataSource,
Taxon taxon,
GenotypeExperiment experiment)
dataSource - data sourcetaxon - taxonexperiment - genotype experiment
public java.lang.String getDataSource()
getDataSource in interface DBElementgetDataSource in class AbstractDBElementpublic Taxon getTaxon()
public GenotypeExperiment getGenotypeExperiment()
public AlleleList getAlleleList()
public java.lang.String getType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||