public class ExtraValueTypeData extends BasicData implements NameableData, RemovableData, RegisteredData
ExtraValueType
,
Developer documentation: Experiments and analysisModifier and Type | Field and Description |
---|---|
private int |
averageMethod |
private ColoringData |
coloring |
private java.lang.String |
description |
private java.util.Date |
entryDate |
private java.lang.String |
externalId |
private java.util.Set<ExtraValueData> |
extraValues |
static int |
MAX_EXTERNAL_ID_LENGTH
The maximum length of the external id that can be stored in the database.
|
private java.lang.String |
name |
private java.lang.Integer |
removedBy |
private int |
valueType |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Constructor and Description |
---|
ExtraValueTypeData() |
Modifier and Type | Method and Description |
---|---|
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"
|
ColoringData |
getColoring()
Get the coloring information for this extra value type.
|
java.lang.String |
getDescription()
Get the description for the item.
|
java.util.Date |
getEntryDate()
Get the date this item was added to the database.
|
java.lang.String |
getExternalId()
Get the external id for this
ExtraValueType item. |
(package private) java.util.Set<ExtraValueData> |
getExtraValues()
This is the inverse end.
|
java.lang.String |
getName()
Get the name of the item.
|
java.lang.Integer |
getRemovedBy()
Get the ID of the user that removed this item.
|
int |
getValueType()
The code for the value type.
|
void |
setAverageMethod(int averageMethod) |
void |
setColoring(ColoringData coloring) |
void |
setDescription(java.lang.String description)
Set the description for the item.
|
void |
setEntryDate(java.util.Date entryDate) |
void |
setExternalId(java.lang.String externalId) |
(package private) void |
setExtraValues(java.util.Set<ExtraValueData> extraValues) |
void |
setName(java.lang.String name)
Set the name of the item.
|
void |
setRemovedBy(java.lang.Integer removedBy)
Set the ID of the user that removed this item or null
to restore the item.
|
void |
setValueType(int valueType) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private java.lang.String name
private java.lang.String description
private java.lang.Integer removedBy
private java.util.Date entryDate
public static final int MAX_EXTERNAL_ID_LENGTH
setExternalId(String)
,
Constant Field Valuesprivate java.lang.String externalId
private int valueType
private ColoringData coloring
private int averageMethod
private java.util.Set<ExtraValueData> extraValues
public java.lang.String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(java.lang.String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic java.lang.String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(java.lang.String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic java.lang.Integer getRemovedBy()
RemovableData
getRemovedBy
in interface RemovableData
public void setRemovedBy(java.lang.Integer removedBy)
RemovableData
setRemovedBy
in interface RemovableData
public java.util.Date getEntryDate()
RegisteredData
getEntryDate
in interface RegisteredData
public void setEntryDate(java.util.Date entryDate)
public java.lang.String getExternalId()
ExtraValueType
item.public void setExternalId(java.lang.String externalId)
public int getValueType()
public void setValueType(int valueType)
public ColoringData getColoring()
public void setColoring(ColoringData coloring)
public int getAverageMethod()
Formula.AverageMethod.NONE
;
no average is defined for this formula
Formula.AverageMethod.GEOMETRIC_MEAN
;
this formula uses geometric mean
Formula.AverageMethod.ARITHMETIC_MEAN
;
this formula uses arithmetic mean
Formula.AverageMethod.MIN
;
this formula uses the min value as a "mean"
Formula.AverageMethod.MAX
;
this formula uses the max value as a "mean"
public void setAverageMethod(int averageMethod)
java.util.Set<ExtraValueData> getExtraValues()
ExtraValueData.getExtraValueType()
void setExtraValues(java.util.Set<ExtraValueData> extraValues)