java.lang.Object
simpa.acc.api.match.MatchingVariable
Describes a variable to be matched or optimized, usually a scaling factor of
a field map. When ititial conditions of a beam line are matched the maching
variales are the Twiss parameters of the beam.
-
Constructor Summary
ConstructorsConstructorDescriptionMatchingVariable
(MatchingVariableType matchingVariableType, String fieldMapName) Constructor for matching variables. -
Method Summary
Modifier and TypeMethodDescriptiongetMax()
getMin()
getValue()
void
setInitialGuess
(Double initialGuess) void
void
void
-
Constructor Details
-
MatchingVariable
Constructor for matching variables. If the matching variable is a field map scaling factor the field map name should be provided.- Parameters:
matchingVariableType
- - The type of the matching variablefieldMapName
- -The file name of a field map with extension (FileNamingConventions.BIN_FILE_EXTENSION
) The scaling factor for this field map will be sought during matching. It can be null if the matching variable is not a field map scaling factor.
-
-
Method Details
-
getMin
- Returns:
- The minimum value for the scaling factor of the field map. This is usually the same as the minimum value of the power supply of the element, if the field map belongs to an element which has one.
-
setMin
- Parameters:
min
- Sets the minimum value for the scaling factor of the field map. This is usually the same as the minimum value of the power supply of the element, if the field map belongs to an element which has one.
-
getMax
- Returns:
- The maximum value for the scaling factor of the field map. This is usually the same as the maximum value of the power supply of the element, if the field map belongs to an element which has one.
-
setMax
- Parameters:
max
- Sets the maximum value for the scaling factor of the field map. This is usually the same as the maximum value of the power supply of the element, if the field map belongs to an element which has one.
-
getInitialGuess
- Returns:
- Initial guess for the variable
-
setInitialGuess
- Parameters:
initialGuess
- Sets the initial guess for the variable
-
getFieldMapName
- Returns:
- Name of the field map. When the MatchingVariableType is not SCALING_FACTOR this is the vale is null.
-
getValue
- Returns:
- Value of the this matching variable. Called during matching and after.
-
setValue
- Parameters:
value
- sets the value of the this matching variable. Called during matching and after.
-
getMatchingVariableType
- Returns:
- The type of the matching variable.
-