public class SpeciesFrequencyUIModelCache extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,org.apache.commons.lang3.mutable.MutableInt> |
nbOfRowsByLengthStep
Number of rows for each lengthstep (keys are a round value (*10) of the real float step, values are number of such steps.
|
protected Set<SpeciesFrequencyRowModel> |
withWeightRows
Rows with a filled weight.
|
| Constructor and Description |
|---|
SpeciesFrequencyUIModelCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLengthStep(SpeciesFrequencyRowModel row) |
Float |
computeTotalWeight() |
void |
decNumberOfRows(float lengthStep) |
protected org.apache.commons.lang3.mutable.MutableInt |
getNbRowsByLengthStep(float lengthStep) |
int |
getNbRowsWithWeight() |
Map<Float,SpeciesFrequencyRowModel> |
getRowCache() |
void |
incNumberOfRows(float lengthStep) |
void |
loadCache(List<SpeciesFrequencyRowModel> rows) |
int |
numberOfRows(float lengthStep) |
void |
removeLengthStep(Float oldValue) |
void |
updateRowWithWeight(SpeciesFrequencyRowModel row) |
protected final Set<SpeciesFrequencyRowModel> withWeightRows
protected final Map<Integer,org.apache.commons.lang3.mutable.MutableInt> nbOfRowsByLengthStep
public void loadCache(List<SpeciesFrequencyRowModel> rows)
public void updateRowWithWeight(SpeciesFrequencyRowModel row)
public int getNbRowsWithWeight()
public int numberOfRows(float lengthStep)
public void incNumberOfRows(float lengthStep)
public void decNumberOfRows(float lengthStep)
protected org.apache.commons.lang3.mutable.MutableInt getNbRowsByLengthStep(float lengthStep)
public void addLengthStep(SpeciesFrequencyRowModel row)
public void removeLengthStep(Float oldValue)
public Map<Float,SpeciesFrequencyRowModel> getRowCache()
public Float computeTotalWeight()
Copyright © 2012–2015 Ifremer. All rights reserved.