ambit2.core.data.experiment
Class Study

Package class diagram package Study
java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by ambit2.base.data.AmbitBean
          extended by ambit2.core.data.experiment.Study
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, java.io.Serializable
Direct Known Subclasses:
AQUIREStudy

public class Study
extends ambit2.base.data.AmbitBean

A single study, defined by its template Template and conditions. The template defines only condition names (e.g. "Species", "Duration") and here in the Study class the condition values have to be specified. (e.g. Species="Fathead Minnow", "Duration"="96h"). Conditions are stored in a Hashtable. Also, study results are stored in another Hashtable, but this is for completeness, since the actual results per molecule are stored in Experiment.

See Also:
Serialized Form

Field Summary
protected  int id
           
protected  java.lang.String name
           
protected  java.util.Hashtable studyResults
           
protected  ambit2.base.data.Template template
           
 
Constructor Summary
Study()
           
Study(java.lang.String name, int id, ambit2.base.data.Template template)
           
Study(java.lang.String name, ambit2.base.data.Template template)
           
 
Method Summary
 void clear()
           
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 int getId()
           
 java.lang.String getName()
           
 java.util.Hashtable getStudyResults()
           
 ambit2.base.data.Template getTemplate()
           
 java.lang.String getTemplateName()
           
 void setId(int id)
           
 void setName(java.lang.String name)
           
 void setStudyResults(java.util.Hashtable studyResults)
           
 void setTemplate(ambit2.base.data.Template template)
           
 void setTemplateName(java.lang.String templatename)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

template

protected ambit2.base.data.Template template

studyResults

protected java.util.Hashtable studyResults

name

protected java.lang.String name

id

protected int id
Constructor Detail

Study

public Study()

Study

public Study(java.lang.String name,
             ambit2.base.data.Template template)
Parameters:
name -

Study

public Study(java.lang.String name,
             int id,
             ambit2.base.data.Template template)
Parameters:
name -
id -
Method Detail

getId

public int getId()

setId

public void setId(int id)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getTemplate

public ambit2.base.data.Template getTemplate()

setTemplate

public void setTemplate(ambit2.base.data.Template template)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class ambit2.base.data.AmbitBean
Throws:
java.lang.CloneNotSupportedException

clear

public void clear()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getStudyResults

public java.util.Hashtable getStudyResults()

setStudyResults

public void setStudyResults(java.util.Hashtable studyResults)

getTemplateName

public java.lang.String getTemplateName()

setTemplateName

public void setTemplateName(java.lang.String templatename)