gov.usda.gdpc
Class AbstractGenotypeExperimentGroup

java.lang.Object
  extended bygov.usda.gdpc.AbstractGroup
      extended bygov.usda.gdpc.AbstractDBElementGroup
          extended bygov.usda.gdpc.AbstractGenotypeExperimentGroup
All Implemented Interfaces:
java.util.Collection, DBElementGroup, GenotypeExperimentGroup, Group, java.util.List
Direct Known Subclasses:
DefaultGenotypeExperimentGroup

public abstract class AbstractGenotypeExperimentGroup
extends AbstractDBElementGroup
implements GenotypeExperimentGroup

This class provides a skeletal implementation of the GenotypeExperimentGroup interface to minimize the effort required to implement this interface.

Author:
terryc

Field Summary
 
Fields inherited from class gov.usda.gdpc.AbstractDBElementGroup
myIndex
 
Constructor Summary
AbstractGenotypeExperimentGroup()
          AbstractGenotypeExperimentGroup constructor.
AbstractGenotypeExperimentGroup(GenotypeExperiment[] experiments)
          AbstractGenotypeExperimentGroup constructor.
AbstractGenotypeExperimentGroup(GenotypeExperimentGroup[] groups)
          AbstractGenotypeExperimentGroup constructor.
AbstractGenotypeExperimentGroup(java.util.List list)
          AbstractGenotypeExperimentGroup constructor.
 
Method Summary
 GenotypeExperiment getGenotypeExperiment(java.lang.String dataSource, Identifier id)
          This returns the genotype experiment instance from this group that matches the specified id and source.
 GenotypeExperimentGroup getGenotypeExperimentGroup(GenotypeExperimentFilter filter)
          Get the genotype experiment group matching the given filter from this genotype experiment group.
 java.lang.String getType()
          Get type of this group.
 
Methods inherited from class gov.usda.gdpc.AbstractDBElementGroup
getDBElementGroup, getDBElements, getDefinedProperties, getDistinctProperties, index, toString
 
Methods inherited from class gov.usda.gdpc.AbstractGroup
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.usda.gdpc.DBElementGroup
getDBElements, getDefinedProperties, getDistinctProperties, index
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

AbstractGenotypeExperimentGroup

public AbstractGenotypeExperimentGroup(GenotypeExperiment[] experiments)
AbstractGenotypeExperimentGroup constructor.

Parameters:
experiments - list of genotype experiments to be a part of this group.

AbstractGenotypeExperimentGroup

public AbstractGenotypeExperimentGroup()
AbstractGenotypeExperimentGroup constructor. Creates an empty group.


AbstractGenotypeExperimentGroup

public AbstractGenotypeExperimentGroup(java.util.List list)
AbstractGenotypeExperimentGroup constructor.

Parameters:
list - list of objects to be a part of this group. Any null in the list will be discarded.

AbstractGenotypeExperimentGroup

public AbstractGenotypeExperimentGroup(GenotypeExperimentGroup[] groups)
AbstractGenotypeExperimentGroup constructor.

Parameters:
groups - groups to include in this new group.
Method Detail

getGenotypeExperimentGroup

public GenotypeExperimentGroup getGenotypeExperimentGroup(GenotypeExperimentFilter filter)
Get the genotype experiment group matching the given filter from this genotype experiment group.

Specified by:
getGenotypeExperimentGroup in interface GenotypeExperimentGroup
Parameters:
filter - filter
Returns:
genotype experiment group

getGenotypeExperiment

public GenotypeExperiment getGenotypeExperiment(java.lang.String dataSource,
                                                Identifier id)
This returns the genotype experiment instance from this group that matches the specified id and source. Null will be returned if its not in this group.

Specified by:
getGenotypeExperiment in interface GenotypeExperimentGroup
Parameters:
dataSource - data source
id - identifier
Returns:
genotype experiment or null if not in this group.

getType

public java.lang.String getType()
Get type of this group.

Specified by:
getType in interface DBElementGroup
Returns:
type