public class SampleCategory<C extends Serializable> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected SampleCategoryEnum |
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 |
|---|---|
SampleCategoryEnum |
getCategoryType() |
C |
getCategoryValue() |
Float |
getCategoryWeight() |
Float |
getComputedWeight() |
boolean |
hasOnlyOneFrequency() |
boolean |
isEmpty() |
boolean |
isEmptyOrValid() |
boolean |
isSubSample() |
boolean |
isValid() |
static <C extends Serializable> |
newSample(SampleCategoryEnum categoryType) |
void |
setCategoryType(SampleCategoryEnum categoryType) |
void |
setCategoryValue(C categoryValue) |
void |
setCategoryWeight(Float categoryWeight) |
void |
setComputedWeight(Float computedWeight) |
void |
setOnlyOneFrequency(boolean onlyOneFrequency) |
void |
setSubSample(boolean subSample) |
String |
toString() |
protected SampleCategoryEnum 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(SampleCategoryEnum categoryType)
public SampleCategoryEnum getCategoryType()
public void setCategoryType(SampleCategoryEnum 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.