gov.nih.nci.caarray.domain.data
Class DataSet

java.lang.Object
  extended by gov.nih.nci.caarray.domain.AbstractCaArrayObject
      extended by gov.nih.nci.caarray.domain.data.DataSet
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, java.io.Serializable

public class DataSet
extends AbstractCaArrayObject

Contains hybridization data represented by an AbstractArrayData or as requested by a client.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
DEFAULT_BATCH_SIZE, DEFAULT_STRING_COLUMN_SIZE, LARGE_TEXT_FIELD_LENGTH
 
Constructor Summary
DataSet()
           
 
Method Summary
 HybridizationData addHybridizationData(Hybridization hybridization)
          Creates a new HybridizationData for this DataSet.
 void addQuantitationType(QuantitationType type)
          Adds a new type to this DataSet, creating the appropriate columns for all HybridizationDatas.
 void addQuantitationTypes(java.util.List<QuantitationType> types)
          Adds a list of new types to this DataSet, creating the appropriate columns for all HybridizationDatas.
 boolean datasLoaded(java.util.List<QuantitationType> types)
          Determine whether all columns for the given quantitation types in each HybridizationData in this DataSet have been loaded with data values.
 AbstractArrayData getArrayData()
           
 DesignElementList getDesignElementList()
           
 java.util.List<HybridizationData> getHybridizationDataList()
           
 java.util.List<QuantitationType> getQuantitationTypes()
           
 void prepareColumns(java.util.List<QuantitationType> types, int numberOfRows)
          Initialize the columns of each HybridizationData in this DataSet with empty value sets of given size.
 void setArrayData(AbstractArrayData arrayData)
           
 void setDesignElementList(DesignElementList designElementList)
           
 
Methods inherited from class gov.nih.nci.caarray.domain.AbstractCaArrayObject
equals, getCaBigId, getId, getPostLoadSecurityPolicies, getRemoteApiSecurityPolicies, hashCode, setCaBigId, setId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSet

public DataSet()
Method Detail

getArrayData

public AbstractArrayData getArrayData()
Returns:
the arrayData

setArrayData

public void setArrayData(AbstractArrayData arrayData)
Parameters:
arrayData - the arrayData to set

getHybridizationDataList

public java.util.List<HybridizationData> getHybridizationDataList()
Returns:
the hybridizationDatas

addHybridizationData

public HybridizationData addHybridizationData(Hybridization hybridization)
Creates a new HybridizationData for this DataSet.

Parameters:
hybridization - Hybridization associated with the data
Returns:
the new HybridizationData.

getQuantitationTypes

public java.util.List<QuantitationType> getQuantitationTypes()
Returns:
the quantitationTypes

addQuantitationType

public void addQuantitationType(QuantitationType type)
Adds a new type to this DataSet, creating the appropriate columns for all HybridizationDatas.

Parameters:
type - the type to add.

addQuantitationTypes

public void addQuantitationTypes(java.util.List<QuantitationType> types)
Adds a list of new types to this DataSet, creating the appropriate columns for all HybridizationDatas.

Parameters:
types - the types to add.

prepareColumns

public void prepareColumns(java.util.List<QuantitationType> types,
                           int numberOfRows)
Initialize the columns of each HybridizationData in this DataSet with empty value sets of given size.

Parameters:
types - the types of the columns to initialize
numberOfRows - the number of rows each columnn's array of values should have

datasLoaded

public boolean datasLoaded(java.util.List<QuantitationType> types)
Determine whether all columns for the given quantitation types in each HybridizationData in this DataSet have been loaded with data values.

Parameters:
types - the quantitation types of interest
Returns:
true if for each HybridizationData in this DataSet, each column whose type is in the given set of types has been loaded, e.g. column.isLoaded is true; false otherwise.

getDesignElementList

public DesignElementList getDesignElementList()
Returns:
the designElementList

setDesignElementList

public void setDesignElementList(DesignElementList designElementList)
Parameters:
designElementList - the designElementList to set