Package xal.extension.solver
Class TrialPoint
java.lang.Object
xal.extension.solver.TrialPoint
- Direct Known Subclasses:
MutableTrialPoint
TrialPoint is a collection of variables and values for those variables.
- Author:
- ky6, t6p
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTrialPoint
(Map<Variable, Number> values) Primary constructor.TrialPoint
(TrialPoint trialPoint) Copy constructor. -
Method Summary
-
Field Details
-
values
A table of trial values keyed by variable
-
-
Constructor Details
-
TrialPoint
Primary constructor.- Parameters:
values
- The new values used to map trial points
-
TrialPoint
Copy constructor.- Parameters:
trialPoint
- the trial point to copy
-
-
Method Details
-
getValue
Get the value corresponding to the specified variable.- Parameters:
variable
- The variable for which to fetch the value.- Returns:
- The value of the specified variable.
-
getValueMap
Get the map of variable/value pairs.- Returns:
- the map of variable/value pairs.
-
toString
A string for displaying a trial point. The string consist of the values for the trial point.
-