public class SpeciesFrequencyUIModel extends AbstractTuttiTableUIModel<SpeciesBatchRowModel,SpeciesFrequencyRowModel,SpeciesFrequencyUIModel>
| Modifier and Type | Field and Description |
|---|---|
protected SpeciesBatchRowModel |
batch
Batch that contains frequencies.
|
protected FrequencyConfigurationMode |
configurationMode
Fill mode.
|
protected Set<SpeciesFrequencyRowModel> |
emptyRows |
protected Caracteristic |
lengthStepCaracteristic
Length step caracteristic.
|
protected Float |
maxStep
Max step to auto generate length steps.
|
protected Float |
minStep
Min step to auto generate length steps.
|
protected Map<Float,org.apache.commons.lang3.mutable.MutableInt> |
nbOfRowsByLengthStep
Number of rows for each lengthstep
|
protected Integer |
nextEditableRowIndex
The index of the next editable row (null if none).
|
static String |
PROPERTY_AUTO_GEN_MODE |
static String |
PROPERTY_BATCH |
static String |
PROPERTY_CAN_GENERATE |
static String |
PROPERTY_CONFIGURATION_MODE |
static String |
PROPERTY_EMPTY_ROWS |
static String |
PROPERTY_LENGHT_STEP_CARACTERISTIC |
static String |
PROPERTY_NEXT_EDITABLE_ROW_INDEX |
static String |
PROPERTY_RAFALE_MODE |
static String |
PROPERTY_SIMPLE_COUNT |
static String |
PROPERTY_SIMPLE_COUNTING_MODE |
static String |
PROPERTY_STEP |
static String |
PROPERTY_TOTAL_COMPUTED_OR_NOT_WEIGHT |
static String |
PROPERTY_TOTAL_COMPUTED_WEIGHT |
static String |
PROPERTY_TOTAL_NUMBER |
static String |
PROPERTY_TOTAL_WEIGHT |
protected SampleCategoryModel |
sampleCategoryModel
Sample categories model.
|
protected Integer |
simpleCount
Number in case of simple counting mode
|
protected float |
step
Default step to increment length step.
|
protected ComputableData<Float> |
totalComputedOrNotWeight
Sum of the weight of each valid row, or sample weight
|
protected Integer |
totalNumber
Sum of the number of each valid row
|
protected WeightUnit |
weightUnit
Weight unit.
|
protected Set<SpeciesFrequencyRowModel> |
withWeightRows
Rows with a filled weight.
|
PROPERTY_ROWS, PROPERTY_ROWS_IN_ERROR, rows, rowsInErrorid, modify, PROPERTY_MODIFY, PROPERTY_VALID, validPROPERTY_ID| Constructor and Description |
|---|
SpeciesFrequencyUIModel(WeightUnit weightUnit,
SampleCategoryModel sampleCategoryModel) |
addRowInError, getRowCount, getRows, getRowsInError, removeRowInError, setRows, setRowsInErrorfirePropertyChanged, fromBean, fromEntity, getChild, getChild, getId, getIdAsInt, isCreate, isModify, isValid, setId, setId, setModify, setValid, toBean, toEntityaddPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic static final String PROPERTY_BATCH
public static final String PROPERTY_CONFIGURATION_MODE
public static final String PROPERTY_STEP
public static final String PROPERTY_CAN_GENERATE
public static final String PROPERTY_AUTO_GEN_MODE
public static final String PROPERTY_RAFALE_MODE
public static final String PROPERTY_SIMPLE_COUNTING_MODE
public static final String PROPERTY_SIMPLE_COUNT
public static final String PROPERTY_LENGHT_STEP_CARACTERISTIC
public static final String PROPERTY_TOTAL_NUMBER
public static final String PROPERTY_TOTAL_COMPUTED_OR_NOT_WEIGHT
public static final String PROPERTY_TOTAL_WEIGHT
public static final String PROPERTY_TOTAL_COMPUTED_WEIGHT
public static final String PROPERTY_EMPTY_ROWS
public static final String PROPERTY_NEXT_EDITABLE_ROW_INDEX
protected FrequencyConfigurationMode configurationMode
protected SpeciesBatchRowModel batch
protected float step
protected Float minStep
protected Float maxStep
protected Caracteristic lengthStepCaracteristic
protected Integer totalNumber
protected ComputableData<Float> totalComputedOrNotWeight
protected Integer simpleCount
protected Integer nextEditableRowIndex
protected Set<SpeciesFrequencyRowModel> emptyRows
protected final SampleCategoryModel sampleCategoryModel
protected final WeightUnit weightUnit
protected Set<SpeciesFrequencyRowModel> withWeightRows
public SpeciesFrequencyUIModel(WeightUnit weightUnit, SampleCategoryModel sampleCategoryModel)
protected SpeciesBatchRowModel newEntity()
newEntity in class AbstractTuttiBeanUIModel<SpeciesBatchRowModel,SpeciesFrequencyUIModel>public FrequencyConfigurationMode getConfigurationMode()
public void setConfigurationMode(FrequencyConfigurationMode configurationMode)
public float getStep()
public void setStep(float step)
public Caracteristic getLengthStepCaracteristic()
public void setLengthStepCaracteristic(Caracteristic lengthStepCaracteristic)
public String getLengthStepCaracteristicUnit()
public Float getLengthStepCaracteristicPrecision()
public Float getMinStep()
public void setMinStep(Float minStep)
public Float getMaxStep()
public void setMaxStep(Float maxStep)
public Integer getSimpleCount()
public void setSimpleCount(Integer simpleCount)
public Integer getNextEditableRowIndex()
public void setNextEditableRowIndex(Integer nextEditableRowIndex)
public boolean isAutoGenMode()
public boolean isRafaleMode()
public boolean isSimpleCountingMode()
public boolean isCanGenerate()
public SpeciesBatchRowModel getBatch()
public void setBatch(SpeciesBatchRowModel batch)
public float getLengthStep(float lengthStep)
public Integer getTotalNumber()
public void setTotalNumber(Integer totalNumber)
public ComputableData<Float> getTotalComputedOrNotWeight()
public void setTotalComputedOrNotWeight(ComputableData<Float> totalComputedOrNotWeight)
public Float getTotalWeight()
public void setTotalWeight(Float totalWeight)
public Float getTotalComputedWeight()
public void setTotalComputedWeight(Float totalComputedWeight)
public boolean isTotalWeightSameAsComputedWeight()
public Set<SpeciesFrequencyRowModel> getEmptyRows()
public void setEmptyRows(Set<SpeciesFrequencyRowModel> emptyRows)
public void clearWithWeightRows()
public int getNbRowsWithWeight()
public boolean isAllRowsWithWeight()
public boolean isSomeRowsWithWeightAndOtherWithout()
public void updateRowWithWeight(SpeciesFrequencyRowModel row)
public void updateEmptyRow(SpeciesFrequencyRowModel row)
public Float computeTotalWeight()
public int computeTotalNumber()
public void recomputeTotalNumberAndWeight()
public int numberOfRows(float lengthStep)
public void resetNumbersOfRows()
public int incNumberOfRows(float lengthStep)
public int decNumberOfRows(float lengthStep)
Copyright © 2012–2014 Ifremer. All rights reserved.