hep.aida.ext
Interface IVariableSettings
-
- All Known Implementing Classes:
- VariableSettings
public interface IVariableSettingsIVariableSettings contains the settings for a give variable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanisBound()Check if a variable is bounded.booleanisFixed()Check if a variable is fixed.doublelowerBound()Get the lower bound.java.lang.Stringname()Get the name of the variable to which settings apply.voidremoveBounds()Reset the bounds.voidreset()Reset the IVariableSetting ot its defaults.voidsetBounds(double lowerBound, double upperBound)Set the bounds for the variable.voidsetFixed(boolean isFixed)Set the fixed/unfixed status of a variable.voidsetStepSize(double step)Set the step size for this variable.voidsetValue(double value)Set the current value of this variable.doublestepSize()The step size for this variable.doubleupperBound()Get the upper bound.doublevalue()The current value for this variable.
-
-
-
Method Detail
-
name
java.lang.String name()
Get the name of the variable to which settings apply.- Returns:
- The name.
-
stepSize
double stepSize()
The step size for this variable.- Returns:
- the step size.
-
upperBound
double upperBound()
Get the upper bound.- Returns:
- The upper bound.
-
lowerBound
double lowerBound()
Get the lower bound.- Returns:
- The lower bound.
-
isBound
boolean isBound()
Check if a variable is bounded. A variable is bounded if either the upper bound or the lower bound are not infinity.- Returns:
trueif the variable is bounded.
-
isFixed
boolean isFixed()
Check if a variable is fixed.- Returns:
trueif the variable is fixed.
-
setStepSize
void setStepSize(double step) throws java.lang.IllegalArgumentExceptionSet the step size for this variable.- Parameters:
step- The step size.- Throws:
java.lang.IllegalArgumentException- if the step is not positive.
-
setBounds
void setBounds(double lowerBound, double upperBound) throws java.lang.IllegalArgumentExceptionSet the bounds for the variable.- Parameters:
lowerBound- The lower bound.upperBound- The upper bound.- Throws:
java.lang.IllegalArgumentException- if the lowerBound is not lower than the upperBound.
-
removeBounds
void removeBounds()
Reset the bounds.
-
setFixed
void setFixed(boolean isFixed)
Set the fixed/unfixed status of a variable.- Parameters:
isFixed- The fixed status of a variable.
-
reset
void reset()
Reset the IVariableSetting ot its defaults.
-
setValue
void setValue(double value)
Set the current value of this variable.- Parameters:
value- The current value.
-
value
double value()
The current value for this variable.- Returns:
- The current value.
-
-
DMelt 3.0 © DataMelt by jWork.ORG