|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
IVariableSettings contains the settings for a give variable.
Method Summary | |
boolean |
isBound()
Check if a variable is bounded. |
boolean |
isFixed()
Check if a variable is fixed. |
double |
lowerBound()
Get the lower bound. |
String |
name()
Get the name of the variable to which settings apply. |
void |
removeBounds()
Reset the bounds. |
void |
reset()
Reset the IVariableSetting ot its defaults. |
void |
setBounds(double lowerBound,
double upperBound)
Set the bounds for the variable. |
void |
setFixed(boolean isFixed)
Set the fixed/unfixed status of a variable. |
void |
setStepSize(double step)
Set the step size for this variable. |
void |
setValue(double value)
Set the current value of this variable. |
double |
stepSize()
The step size for this variable. |
double |
upperBound()
Get the upper bound. |
double |
value()
The current value for this variable. |
Method Detail |
public String name()
public double stepSize()
public double upperBound()
public double lowerBound()
public boolean isBound()
true
if the variable is bounded.public boolean isFixed()
true
if the variable is fixed.public void setStepSize(double step) throws IllegalArgumentException
step
- The step size.
IllegalArgumentException
- if the step is not positive.public void setBounds(double lowerBound, double upperBound) throws IllegalArgumentException
lowerBound
- The lower bound.upperBound
- The upper bound.
IllegalArgumentException
- if the lowerBound is not lower than the upperBound.public void removeBounds()
public void setFixed(boolean isFixed)
isFixed
- The fixed status of a variable.public void reset()
public void setValue(double value)
value
- The current value.public double value()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |