public class ContinuousDomain extends Object implements Domain
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().| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ContinuousDomain()
Min/max type constructor.
|
ContinuousDomain(boolean percentageType)
Constructor with type.
|
ContinuousDomain(Object minBound,
Object maxBound)
Constructor with bounds.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected Object minBound
protected Object maxBound
protected Object referenceValue
protected Double coefficient
protected boolean percentageType
public ContinuousDomain()
public ContinuousDomain(Object minBound, Object maxBound)
minBound - min boundmaxBound - max boundpublic ContinuousDomain(boolean percentageType)
percentageType - if true percentage typepublic 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)
Copyright © 1999-2012 CodeLutin. All Rights Reserved.