Package xal.extension.solver
Class MutableTrialPoint
java.lang.Object
xal.extension.solver.TrialPoint
xal.extension.solver.MutableTrialPoint
MutableTrialPoint
- Since:
- Sep 20, 2004
- Author:
- tap
-
Field Summary
Fields inherited from class xal.extension.solver.TrialPoint
values
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorMutableTrialPoint
(int size) ConstructorMutableTrialPoint
(Map<Variable, Number> values) Primary Constructor.MutableTrialPoint
(TrialPoint trialPoint) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet an immutable copy of this trial point.void
Set the value to associate with the variable.Methods inherited from class xal.extension.solver.TrialPoint
getValue, getValueMap, toString
-
Constructor Details
-
MutableTrialPoint
Primary Constructor.- Parameters:
values
- The new values used to map trial points
-
MutableTrialPoint
Copy constructor.- Parameters:
trialPoint
- the trial point to copy
-
MutableTrialPoint
public MutableTrialPoint(int size) Constructor- Parameters:
size
- intial size allocated to the trial point's map of values
-
MutableTrialPoint
public MutableTrialPoint()Constructor
-
-
Method Details
-
getTrialPoint
Get an immutable copy of this trial point.- Returns:
- an immutable copy of this trial point.
-
setValue
Set the value to associate with the variable.- Parameters:
variable
- The variable for which to associate the valuevalue
- The value of the specified variable
-