2.8.1: 2008-09-10

net.sf.basedb.core.data
Class FormulaData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by net.sf.basedb.core.data.OwnedData
          extended by net.sf.basedb.core.data.SharedData
              extended by net.sf.basedb.core.data.CommonData
                  extended by net.sf.basedb.core.data.FormulaData
All Implemented Interfaces:
IdentifiableData, NameableData, OwnableData, RemovableData, ShareableData

public class FormulaData
extends CommonData

This class holds information about a formula used in the analysis of raw data and bioassay sets.

Version:
2.0
Author:
Nicklas
See Also:
Formula, Data API - Other classes
Hibernate: class
table="`Formulas`" lazy="false"

Field Summary
private  int averageMethod
           
private  int channels
           
private  ColoringData coloring
           
private  List<String> formulas
           
static int MAX_FORMULA_LENGTH
          The maximum allowed length of a formula.
static int MAX_RAWDATATYPE_LENGTH
          The maximum allowed length of the raw data type name.
private  int parser
           
private  String rawDataType
           
private  int type
           
 
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
 
Constructor Summary
FormulaData()
           
 
Method Summary
 int getAverageMethod()
          The average method for thid formula: 0 = none, Formula.AverageMethod.NONE; no average is defined for this formula 1 = geometric mean, Formula.AverageMethod.GEOMETRIC_MEAN; this formula uses geometric mean 2 = arithmetic mean, Formula.AverageMethod.ARITHMETIC_MEAN; this formula uses arithmetic mean 3 = min, Formula.AverageMethod.MIN; this formula uses the min value as a "mean" 4 = max, Formula.AverageMethod.MAX; this formula uses the max value as a "mean"
 int getChannels()
          The number of required channels in the experiment to use this formula, or 0 if the number of channels doesn't matter.
 ColoringData getColoring()
          Get the coloring information for this formula.
 List<String> getFormulas()
          Get the list of formulas.
 int getParser()
          Which parser to use to convert the formula to an expression or restriction. 1 = JEP
 String getRawDataType()
          The name of raw data type this formula can be used on, or null if it can be used on any raw data type.
 int getType()
          The type of formula: 1 = intensity expression; raw data type required, 1 formula for each channel 2 = analysis expression; raw data type or channels required, 1 formula for each channel 3 = column expression; raw data type or channels required, 1 formula only 4 = column restriction; raw data type or channels required, 1 formula only
 void setAverageMethod(int averageMethod)
           
 void setChannels(int channels)
           
 void setColoring(ColoringData coloring)
           
(package private)  void setFormulas(List<String> formulas)
           
 void setParser(int parser)
           
 void setRawDataType(String rawDataType)
           
 void setType(int type)
           
 
Methods inherited from class net.sf.basedb.core.data.CommonData
getDescription, getName, isRemoved, setDescription, setName, setRemoved
 
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
 
Methods inherited from class net.sf.basedb.core.data.OwnedData
getOwner, setOwner
 
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
 
Methods inherited from interface net.sf.basedb.core.data.OwnableData
getOwner, setOwner
 

Field Detail

averageMethod

private int averageMethod

type

private int type

parser

private int parser

MAX_RAWDATATYPE_LENGTH

public static final int MAX_RAWDATATYPE_LENGTH
The maximum allowed length of the raw data type name.

See Also:
Constant Field Values

rawDataType

private String rawDataType

channels

private int channels

MAX_FORMULA_LENGTH

public static final int MAX_FORMULA_LENGTH
The maximum allowed length of a formula.

See Also:
Constant Field Values

formulas

private List<String> formulas

coloring

private ColoringData coloring
Constructor Detail

FormulaData

public FormulaData()
Method Detail

getAverageMethod

public int getAverageMethod()
The average method for thid formula:

Since:
2.4
Hibernate: property
column="`average_method`" type="int" not-null="true"

setAverageMethod

public void setAverageMethod(int averageMethod)

getType

public int getType()
The type of formula:

Hibernate: property
column="`type`" type="int" not-null="true"

setType

public void setType(int type)

getParser

public int getParser()
Which parser to use to convert the formula to an expression or restriction. 1 = JEP

Hibernate: property
column="`parser`" type="int" not-null="true"

setParser

public void setParser(int parser)

getRawDataType

public String getRawDataType()
The name of raw data type this formula can be used on, or null if it can be used on any raw data type.

Hibernate: property
column="`rawdatatype`" type="string" length="255" not-null="false"

setRawDataType

public void setRawDataType(String rawDataType)

getChannels

public int getChannels()
The number of required channels in the experiment to use this formula, or 0 if the number of channels doesn't matter.

Hibernate: property
column="`channels`" type="int" not-null="true"

setChannels

public void setChannels(int channels)

getFormulas

public List<String> getFormulas()
Get the list of formulas.

Hibernate: list
table="`FormulaExpressions`" lazy="true"
Hibernate: collection-key
column="`formula_id`"
Hibernate: collection-index
column="`index`" type="int"
Hibernate: collection-element
column="`formula`" type="string" length="255" not-null="true"

setFormulas

void setFormulas(List<String> formulas)

getColoring

public ColoringData getColoring()
Get the coloring information for this formula.

Hibernate: component

setColoring

public void setColoring(ColoringData coloring)

2.8.1: 2008-09-10