Interface UpdateRequest
-
public interface UpdateRequest
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Element>getMachineElements()java.util.Set<Element>getMonitors(JMadPlane plane)Get the monitors to use for the interpolation.OpticgetOptic()booleanisCircularMachine()booleanupdateMachineOptics()booleanupdateStructure(JMadPlane plane)Determine if this request is a structural update.
-
-
-
Method Detail
-
updateStructure
boolean updateStructure(JMadPlane plane)
Determine if this request is a structural update.- Parameters:
plane- theJMadPlaneto check if the structure needs to be updated- Returns:
trueif a strucure update is required
-
getMachineElements
java.util.List<Element> getMachineElements()
- Returns:
- the list of
Elements defining the machine to update the interpolation tool with.
-
getMonitors
java.util.Set<Element> getMonitors(JMadPlane plane)
Get the monitors to use for the interpolation. Only the elements returned by this method are used as measurement data input elements during interpolation. It is split up in planes, as it might be possible, that a monitor has only a good reading for one plane.- Parameters:
plane- the plane for which to retrieve the active monitors- Returns:
- the monitors to use for the interpolation
-
isCircularMachine
boolean isCircularMachine()
- Returns:
trueif the machine elements provided for a structure update are describing a circular accelerator.
-
updateMachineOptics
boolean updateMachineOptics()
- Returns:
trueif the optics used for the interpolation should be updated.
-
getOptic
Optic getOptic()
- Returns:
- the optic to update the interpolation tool with.
-
-