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.Optic
getOptic()
boolean
isCircularMachine()
boolean
updateMachineOptics()
boolean
updateStructure(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
- theJMadPlane
to check if the structure needs to be updated- Returns:
true
if a strucure update is required
-
getMachineElements
java.util.List<Element> getMachineElements()
- Returns:
- the list of
Element
s 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:
true
if the machine elements provided for a structure update are describing a circular accelerator.
-
updateMachineOptics
boolean updateMachineOptics()
- Returns:
true
if the optics used for the interpolation should be updated.
-
getOptic
Optic getOptic()
- Returns:
- the optic to update the interpolation tool with.
-
-