Package net.sf.basedb.core
Enum Class Formula.Type
- All Implemented Interfaces:
Serializable
,Comparable<Formula.Type>
,java.lang.constant.Constable
- Enclosing class:
- Formula
The type of formula indicats in which situations it can be used.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAn arbitrary expression that specify one formula only.An arbitraty expression that specify one formula only.The formula represents an intensity measurement expression.The formula represents a intensity transformation expression. -
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final String
private final boolean
private final int
private static final Map<Integer,
Formula.Type> Maps the integer that is stored in the database.private final Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
If a formula of this type can use coloring or not.static Formula.Type
fromValue
(int value) Get theFormula.Type
object when you know the integer code.int
getValue()
Get the integer value that is used when storing aFormula.Type
in the database.Get the type of values that formulas of this type must produce or null if it can be any type of values.boolean
If a formula of this type can be used in an average expression or not.toString()
(package private) abstract void
static Formula.Type
Returns the enum constant of this class with the specified name.static Formula.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTENSITY_EXPRESSION
The formula represents an intensity measurement expression. A raw data type and one formula for each channel must be specified. A formula of this type is typically used to create a root bioassay set from raw data. -
INTENSITY_TRANSFORMATION
The formula represents a intensity transformation expression. A raw data type or the number of channels and one formula for each channel are required. A formula of this type if typically used to transform the intensities of one bioassay set into a child bioassay set. -
COLUMN_EXPRESSION
An arbitrary expression that specify one formula only. A raw data type or the number of channels are also required. A formula of this type is typically used for displaying calculated values in a table view or plotting them in a plot tool. The formula can also be used to calculate extra values for a bioassay set. -
COLUMN_RESTRICTION
An arbitraty expression that specify one formula only. The formula is converted into aRestriction
. A raw data type or the number of channels must are also required. A formula of this type is typically used to create a filtered bioassay set.
-
-
Field Details
-
valueMapping
Maps the integer that is stored in the database. -
value
private final int value -
displayValue
-
canUseColoring
private final boolean canUseColoring -
supportsAverage
private final boolean supportsAverage -
valueType
-
-
Constructor Details
-
Type
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromValue
Get theFormula.Type
object when you know the integer code.- Parameters:
value
- The integer value.- Returns:
- The type object or null if the value is unknown
-
toString
- Overrides:
toString
in classEnum<Formula.Type>
-
getValue
public int getValue()Get the integer value that is used when storing aFormula.Type
in the database.- Returns:
- The integer value of this type
-
canUseColoring
public boolean canUseColoring()If a formula of this type can use coloring or not. Coloring is only possible for formulas which create one value. -
supportsAverage
public boolean supportsAverage()If a formula of this type can be used in an average expression or not. This is only possible for formulas which create one value.- Since:
- 2.4
-
getValueType
Get the type of values that formulas of this type must produce or null if it can be any type of values.- Since:
- 2.15
-
validate
- Throws:
InvalidDataException
-