|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.isisfish.simulator.sensitivity.domain.ContinuousDomain
public class ContinuousDomain
All the continuous domains can be of 2 different types (min/max or
percentage).
A min/max domain can take 2 values : minBound and maxBound.
A percentage domain got 2 values coefficient and
referenceValue that are the basis to calculate the minBound
and maxBound values.
A continuous domain also got a cardinality, either filled in by the user or
the sensitivity method if it manages it.
To do sensitivity calculations, you MUST use getCalculatorMinBound(),
getCalculatorMaxBound().
| Field Summary | |
|---|---|
protected Double |
coefficient
Coefficient in percent |
protected Object |
maxBound
Max value. |
protected Object |
minBound
Min value. |
protected boolean |
percentageType
Flag to know the type of the domain |
protected Object |
referenceValue
Value used to create the factor. |
| Constructor Summary | |
|---|---|
ContinuousDomain()
Min/max type constructor. |
|
ContinuousDomain(boolean percentageType)
Constructor with type. |
|
ContinuousDomain(Object minBound,
Object maxBound)
Constructor with bounds. |
|
| Method Summary | |
|---|---|
void |
accept(DomainVisitor visitor)
Accept a new visitor. |
ContinuousDomain |
clone()
Clone the domain |
double |
getCalculatorMaxBound()
Return the minimum bound for sensitivity calculators. |
double |
getCalculatorMinBound()
Return the minimum bound for sensitivity calculators. |
Double |
getCoefficient()
Get coefficient. |
Object |
getMaxBound()
Return the maximum bound of the domain. |
Object |
getMinBound()
Return the minimum bound of the domain. |
Object |
getReferenceValue()
Get reference value. |
Object |
getValueForIdentifier(Object identifier)
Return value associated to identifier. |
boolean |
isPercentageType()
Return factor type (min/max or percentage). |
void |
setCoefficient(Double coefficient)
Set coefficient. |
void |
setMaxBound(Object maxBound)
Set max value. |
void |
setMinBound(Object minBound)
Set the minimum bound of the domain. |
void |
setPercentageType(boolean percentageType)
Set domain type (min/max or percentage). |
void |
setReferenceValue(Object referenceValue)
Set reference value. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object minBound
protected Object maxBound
protected Object referenceValue
protected Double coefficient
protected boolean percentageType
| Constructor Detail |
|---|
public ContinuousDomain()
public ContinuousDomain(Object minBound,
Object maxBound)
minBound - min boundmaxBound - max boundpublic ContinuousDomain(boolean percentageType)
percentageType - if true percentage type| Method Detail |
|---|
public boolean isPercentageType()
true if percentage typepublic void setPercentageType(boolean percentageType)
percentageType - new type valuepublic Object getMinBound()
getCalculatorMinBound().
public double getCalculatorMinBound()
public void setMinBound(Object minBound)
minBound - the minimum bound.public Object getMaxBound()
getCalculatorMaxBound().
public double getCalculatorMaxBound()
public void setMaxBound(Object maxBound)
maxBound - the maxBound to setpublic Double getCoefficient()
public void setCoefficient(Double coefficient)
coefficient - the coefficient to setpublic Object getReferenceValue()
public void setReferenceValue(Object referenceValue)
referenceValue - the reference value.to setpublic Object getValueForIdentifier(Object identifier)
getValueForIdentifier in interface Domainpublic void accept(DomainVisitor visitor)
accept in interface Domainvisitor - the visitorpublic ContinuousDomain clone()
Domain
clone in interface Domainclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||