Class OrbitImpl
- java.lang.Object
-
- cern.accsoft.steering.jmad.domain.orbit.OrbitImpl
-
-
Constructor Summary
Constructors Constructor Description OrbitImpl()the default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReading(java.lang.String monitorName, java.util.Map<JMadPlane,java.lang.Double> values)Add a monitor reading to the orbit object.java.lang.IntegergetMonitorIndex(java.lang.String monitorName)Retrieve the index in the data list for the given monitor.java.util.List<java.lang.String>getMonitorNames()java.util.List<java.lang.Double>getValues(JMadPlane plane)Retrieve the measured values for the given plane.
-
-
-
Method Detail
-
addReading
public void addReading(java.lang.String monitorName, java.util.Map<JMadPlane,java.lang.Double> values)Add a monitor reading to the orbit object. The monitor name will be stored in upper case in the orbit object.- Parameters:
monitorName- the name of the monitorvalues- the [plane, value] mapping for the monitor reading
-
getMonitorNames
public java.util.List<java.lang.String> getMonitorNames()
- Specified by:
getMonitorNamesin interfaceOrbit- Returns:
- the list of monitor names defined for this orbit. the monitor names are in upper case in the orbit object.
-
getValues
public java.util.List<java.lang.Double> getValues(JMadPlane plane)
Description copied from interface:OrbitRetrieve the measured values for the given plane.
-
getMonitorIndex
public java.lang.Integer getMonitorIndex(java.lang.String monitorName)
Description copied from interface:OrbitRetrieve the index in the data list for the given monitor. The monitor name will be cast to upper case.- Specified by:
getMonitorIndexin interfaceOrbit- Parameters:
monitorName- the name of the monitor to get the data index for- Returns:
- the index in the value list
-
-