public class SampleCategory<C extends Serializable> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected SampleCategoryType |
categoryType
Sample category type.
|
protected C |
categoryValue
Sample category value.
|
protected Float |
categoryWeight
Sample category weight.
|
protected Float |
computedWeight
Sample computed weight.
|
protected boolean |
onlyOneFrequency
Has the row only one frequency ?
Available only if the category is the finest category of the row
|
protected boolean |
subSample
Is this sample a subsample ?
Available only if the category is the finest category of the row
|
| Modifier | Constructor and Description |
|---|---|
protected |
SampleCategory() |
| Modifier and Type | Method and Description |
|---|---|
SampleCategoryType |
getCategoryType() |
C |
getCategoryValue() |
Float |
getCategoryWeight() |
Float |
getComputedWeight() |
boolean |
hasOnlyOneFrequency() |
boolean |
isEmpty() |
boolean |
isEmptyOrValid() |
boolean |
isSubSample() |
boolean |
isValid() |
static <C extends Serializable> |
newSample(SampleCategoryType categoryType) |
void |
setCategoryType(SampleCategoryType categoryType) |
void |
setCategoryValue(C categoryValue) |
void |
setCategoryWeight(Float categoryWeight) |
void |
setComputedWeight(Float computedWeight) |
void |
setOnlyOneFrequency(boolean onlyOneFrequency) |
void |
setSubSample(boolean subSample) |
String |
toString() |
protected SampleCategoryType categoryType
protected C extends Serializable categoryValue
protected Float categoryWeight
protected Float computedWeight
protected boolean subSample
protected boolean onlyOneFrequency
public static <C extends Serializable> SampleCategory<C> newSample(SampleCategoryType categoryType)
public SampleCategoryType getCategoryType()
public void setCategoryType(SampleCategoryType categoryType)
public C getCategoryValue()
public void setCategoryValue(C categoryValue)
public Float getCategoryWeight()
public void setCategoryWeight(Float categoryWeight)
public Float getComputedWeight()
public void setComputedWeight(Float computedWeight)
public boolean isSubSample()
public void setSubSample(boolean subSample)
public boolean hasOnlyOneFrequency()
public void setOnlyOneFrequency(boolean onlyOneFrequency)
public boolean isValid()
public boolean isEmpty()
public boolean isEmptyOrValid()
Copyright © 2012-2013 Ifremer. All Rights Reserved.