Class JMadModelOpticsData
- java.lang.Object
-
- cern.accsoft.steering.aloha.meas.data.AbstractDynamicData
-
- cern.accsoft.steering.aloha.model.data.JMadModelOpticsData
-
- All Implemented Interfaces:
BeanAware,MachineElementsManagerAware,Data,DynamicData,ModelOpticsData
public class JMadModelOpticsData extends AbstractDynamicData implements ModelOpticsData
this is the basic implementation of a class, that provides data from the model.NOTE: The actuak monitor gains are taken into account only for the lists for the monitors only. The lists for all values contain the values as retrieved from the model.
-
-
Constructor Summary
Constructors Constructor Description JMadModelOpticsData(ModelDelegate modelDelegate, MachineElementsManager machineElementsManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcalc()recalculates the datajava.util.List<java.lang.Double>getAllBetas(Plane plane)java.util.List<java.lang.Double>getAllDispersions(Plane plane)the dispersion values for all pointsjava.util.List<java.lang.String>getAllNames()returns a list with the names of all elementsjava.util.List<java.lang.Double>getAllPhases(Plane plane)java.util.List<java.lang.Double>getAllPos(Plane plane)java.util.List<java.lang.Double>getAllSPositions()java.util.List<java.lang.Double>getMonitorBetas()java.util.List<java.lang.Double>getMonitorBetas(Plane plane)java.util.List<java.lang.Double>getMonitorDispersions()java.util.List<java.lang.Double>getMonitorDispersions(Plane plane)java.util.List<java.lang.Double>getMonitorPhases(Plane plane)java.util.List<java.lang.Double>getMonitorPos()java.util.List<java.lang.Double>getMonitorPos(Plane plane)java.util.List<java.lang.Double>getMonitorSPositions(Plane plane)the s-positions for the monitors in the given planejava.lang.DoublegetPhase(java.lang.String elementName, Plane plane)retrieves the phase for one element.java.lang.DoublegetSPosition(java.lang.String elementName)-
Methods inherited from class cern.accsoft.steering.aloha.meas.data.AbstractDynamicData
addListener, ensureUpToDate, getActiveCorrectors, getActiveMonitors, getMachineElementsManager, isDirty, removeListener, setDirty, setMachineElementsManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cern.accsoft.steering.aloha.meas.data.DynamicData
addListener, removeListener
-
-
-
-
Constructor Detail
-
JMadModelOpticsData
public JMadModelOpticsData(ModelDelegate modelDelegate, MachineElementsManager machineElementsManager)
-
-
Method Detail
-
calc
protected void calc()
recalculates the data- Specified by:
calcin classAbstractDynamicData
-
getMonitorDispersions
public java.util.List<java.lang.Double> getMonitorDispersions(Plane plane)
- Specified by:
getMonitorDispersionsin interfaceModelOpticsData- Parameters:
plane- the plane for which to retrieve the values- Returns:
- the dispersion values for the actually active monitors
-
getMonitorBetas
public java.util.List<java.lang.Double> getMonitorBetas(Plane plane)
- Specified by:
getMonitorBetasin interfaceModelOpticsData- Parameters:
plane- the plane for which to retrieve the values- Returns:
- the beta-values for the actually active monitors
-
getMonitorBetas
public java.util.List<java.lang.Double> getMonitorBetas()
- Specified by:
getMonitorBetasin interfaceModelOpticsData- Returns:
- the beta-values for both planes
-
getMonitorPhases
public java.util.List<java.lang.Double> getMonitorPhases(Plane plane)
- Specified by:
getMonitorPhasesin interfaceModelOpticsData- Parameters:
plane- the plane for which to retrieve the values- Returns:
- the phase-values for the actually active monitors
-
getMonitorDispersions
public java.util.List<java.lang.Double> getMonitorDispersions()
- Specified by:
getMonitorDispersionsin interfaceModelOpticsData- Returns:
- the dispersion-values for both planes
-
getAllBetas
public java.util.List<java.lang.Double> getAllBetas(Plane plane)
- Specified by:
getAllBetasin interfaceModelOpticsData- Parameters:
plane- the plane for which to retrieve the values- Returns:
- the beta-values for the actually active monitors
-
getAllDispersions
public java.util.List<java.lang.Double> getAllDispersions(Plane plane)
Description copied from interface:ModelOpticsDatathe dispersion values for all points- Specified by:
getAllDispersionsin interfaceModelOpticsData- Parameters:
plane- the plane for which to retrieve the dispersion-values- Returns:
- the dispersion values
-
getAllPhases
public java.util.List<java.lang.Double> getAllPhases(Plane plane)
- Specified by:
getAllPhasesin interfaceModelOpticsData- Parameters:
plane- the plane for which to retrieve the values- Returns:
- the phase-values for the actually active monitors
-
getAllNames
public java.util.List<java.lang.String> getAllNames()
Description copied from interface:ModelOpticsDatareturns a list with the names of all elements- Specified by:
getAllNamesin interfaceModelOpticsData- Returns:
-
getPhase
public java.lang.Double getPhase(java.lang.String elementName, Plane plane)Description copied from interface:ModelOpticsDataretrieves the phase for one element.- Specified by:
getPhasein interfaceModelOpticsData- Parameters:
elementName- the name of the element for which to get the phaseplane- the plane for which to return the phase- Returns:
- the phase of the given element
-
getAllSPositions
public java.util.List<java.lang.Double> getAllSPositions()
- Specified by:
getAllSPositionsin interfaceModelOpticsData- Returns:
- the positions of all elements
-
getSPosition
public java.lang.Double getSPosition(java.lang.String elementName)
- Specified by:
getSPositionin interfaceModelOpticsData- Returns:
- the position of the element with given name
-
getAllPos
public java.util.List<java.lang.Double> getAllPos(Plane plane)
- Specified by:
getAllPosin interfaceModelOpticsData- Parameters:
plane- plane for which to retrieve the data- Returns:
- plane the transvers positions fo all elements
-
getMonitorPos
public java.util.List<java.lang.Double> getMonitorPos(Plane plane)
- Specified by:
getMonitorPosin interfaceModelOpticsData- Parameters:
plane- the plane for which to retrieve the transverse positions- Returns:
- the transvers position for the given plane
-
getMonitorPos
public java.util.List<java.lang.Double> getMonitorPos()
- Specified by:
getMonitorPosin interfaceModelOpticsData- Returns:
- the positions at the monitors for both planes (H+V)
-
getMonitorSPositions
public java.util.List<java.lang.Double> getMonitorSPositions(Plane plane)
Description copied from interface:ModelOpticsDatathe s-positions for the monitors in the given plane- Specified by:
getMonitorSPositionsin interfaceModelOpticsData- Returns:
-
-