public class ExcursionHint extends Hint
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE
type identifier for this kind of hint
|
Modifier | Constructor and Description |
---|---|
|
ExcursionHint()
Empty Constructor
|
protected |
ExcursionHint(xal.extension.solver.hint.VariableExcursionDomain defaultDomain)
Primary Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAbsoluteMaxExcursion(Variable variable,
double maxExcursion)
add the absolute maximum excursion for a variable
|
void |
addFractionExcursion(Variable variable,
double fraction)
add fraction excursion range for the specified variable
|
static ExcursionHint |
getAbsoluteMaxExcursionHint(double maxExcursion)
Get an excursion hint specifying a default maximum absolute excursion about the current value.
|
static ExcursionHint |
getFractionalExcursionHint(double fraction)
Get an excursion hint specifying a default fractional excursion about the current value.
|
double[] |
getRange(double value,
Variable variable)
Get the domain for the specified variable and the current value.
|
java.lang.String |
getType()
Get the type identifier of this Hint which will be used to fetch this hint in a table of hints.
|
boolean |
hasVariable(Variable variable)
Determine if there is an entry for the variable
|
public static final java.lang.String TYPE
protected ExcursionHint(xal.extension.solver.hint.VariableExcursionDomain defaultDomain)
public ExcursionHint()
public static ExcursionHint getFractionalExcursionHint(double fraction)
public static ExcursionHint getAbsoluteMaxExcursionHint(double maxExcursion)
public java.lang.String getType()
public boolean hasVariable(Variable variable)
public void addAbsoluteMaxExcursion(Variable variable, double maxExcursion)
public void addFractionExcursion(Variable variable, double fraction)
public double[] getRange(double value, Variable variable)