Class ResponseRequestImpl
- java.lang.Object
-
- cern.accsoft.steering.jmad.tools.response.ResponseRequestImpl
-
- All Implemented Interfaces:
ResponseRequest
public class ResponseRequestImpl extends java.lang.Object implements ResponseRequest
-
-
Constructor Summary
Constructors Constructor Description ResponseRequestImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCorrector(java.lang.String correctorName, java.lang.Double strengthValue, JMadPlane plane)
void
addMonitor(java.lang.String monitorName, JMadPlane plane)
void
addMonitorRegexp(java.lang.String regex)
void
clearCorrectors()
void
clearMonitors()
java.util.List<java.lang.String>
getCorrectorNames()
This method must return the names of the correctors which shall be used for calculating the response request.java.util.List<JMadPlane>
getCorrectorPlanes()
must return the planes in which the correctors shall be kicked.java.util.List<java.lang.String>
getMonitorNames()
The monitor names.java.util.List<JMadPlane>
getMonitorPlanes()
must return a plane for each of monitors, at which the position shall be taken to calc the response matrix element.java.util.List<java.lang.String>
getMonitorRegexps()
must return regular expressions representing the monitors.java.util.List<java.lang.Double>
getStrengthValues()
This method must return the strengthes which shall be used at the corrector for calculating the response at the according correctors.
-
-
-
Method Detail
-
addCorrector
public void addCorrector(java.lang.String correctorName, java.lang.Double strengthValue, JMadPlane plane)
-
addMonitor
public void addMonitor(java.lang.String monitorName, JMadPlane plane)
-
clearCorrectors
public void clearCorrectors()
-
clearMonitors
public void clearMonitors()
-
addMonitorRegexp
public void addMonitorRegexp(java.lang.String regex)
-
getCorrectorNames
public java.util.List<java.lang.String> getCorrectorNames()
Description copied from interface:ResponseRequest
This method must return the names of the correctors which shall be used for calculating the response request.- Specified by:
getCorrectorNames
in interfaceResponseRequest
- Returns:
- The names of the correctors to use.
-
getStrengthValues
public java.util.List<java.lang.Double> getStrengthValues()
Description copied from interface:ResponseRequest
This method must return the strengthes which shall be used at the corrector for calculating the response at the according correctors. The given strength will be applied once positive and once negative. The Response-matrix element is then the difference of the two trajectories devided by twice the strength.- Specified by:
getStrengthValues
in interfaceResponseRequest
- Returns:
- the strengths to use
-
getMonitorNames
public java.util.List<java.lang.String> getMonitorNames()
Description copied from interface:ResponseRequest
The monitor names.- Specified by:
getMonitorNames
in interfaceResponseRequest
- Returns:
- the names of the monitors at which positions the the response shall be calculated.
-
getMonitorPlanes
public java.util.List<JMadPlane> getMonitorPlanes()
Description copied from interface:ResponseRequest
must return a plane for each of monitors, at which the position shall be taken to calc the response matrix element.- Specified by:
getMonitorPlanes
in interfaceResponseRequest
- Returns:
- the monitor-planes
-
getCorrectorPlanes
public java.util.List<JMadPlane> getCorrectorPlanes()
Description copied from interface:ResponseRequest
must return the planes in which the correctors shall be kicked.- Specified by:
getCorrectorPlanes
in interfaceResponseRequest
- Returns:
- the planes for the correctors.
-
getMonitorRegexps
public java.util.List<java.lang.String> getMonitorRegexps()
Description copied from interface:ResponseRequest
must return regular expressions representing the monitors. This makes the twiss faster then using all the names seperately as filter.- Specified by:
getMonitorRegexps
in interfaceResponseRequest
- Returns:
- a list of regular expressions.
-
-