Class OpticImpl
- java.lang.Object
-
- cern.accsoft.steering.jmad.domain.optics.OpticImpl
-
- All Implemented Interfaces:
Optic
public class OpticImpl extends java.lang.Object implements Optic
Represents a collection of values which can be referred to as the actual state of the optics of the accelerator. It e.g. contains the values of the beta-functions, dispersions and reference orbits. The values can be retrieved in two different manners: As objects representing the values at one element of the accelerator and as lists of values representing all the values along the accelerator.
-
-
Constructor Summary
Constructors Constructor Description OpticImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(OpticPoint point)
adds one optics point, which represents all values at one elementvoid
add(MadxTwissVariable var, java.util.List<java.lang.Double> values)
adds values for all elements, representing the given variablejava.util.List<OpticPoint>
getAllPoints()
java.util.List<java.lang.Double>
getAllValues(JMadTwissVariable variable, JMadPlane plane)
java.util.List<java.lang.Double>
getAllValues(MadxTwissVariable variable)
java.util.List<java.lang.String>
getNames()
OpticPoint
getPoint(Element element)
OpticPoint
getPointByName(java.lang.String name)
java.util.List<OpticPoint>
getPoints(java.util.List<Element> elements)
java.util.List<OpticPoint>
getPointsByNames(java.util.List<java.lang.String> names)
java.util.List<java.lang.Double>
getValues(JMadTwissVariable variable, JMadPlane plane, java.util.List<Element> elements)
java.util.List<java.lang.Double>
getValues(MadxTwissVariable variable, java.util.List<Element> elements)
java.util.List<java.lang.Double>
getValuesByNames(JMadTwissVariable variable, JMadPlane plane, java.util.List<java.lang.String> names)
java.util.List<java.lang.Double>
getValuesByNames(MadxTwissVariable variable, java.util.List<java.lang.String> names)
void
setNames(java.util.List<java.lang.String> names)
-
-
-
Method Detail
-
add
public void add(MadxTwissVariable var, java.util.List<java.lang.Double> values)
adds values for all elements, representing the given variable- Parameters:
var
- the variable that defines the meaning of the valuesvalues
- the values for all elements along the accelerator
-
add
public void add(OpticPoint point)
adds one optics point, which represents all values at one element- Parameters:
point
- the optics point to add
-
getAllPoints
public java.util.List<OpticPoint> getAllPoints()
- Specified by:
getAllPoints
in interfaceOptic
-
getPointByName
public OpticPoint getPointByName(java.lang.String name)
- Specified by:
getPointByName
in interfaceOptic
-
getPoint
public OpticPoint getPoint(Element element)
-
getAllValues
public java.util.List<java.lang.Double> getAllValues(MadxTwissVariable variable)
- Specified by:
getAllValues
in interfaceOptic
-
getAllValues
public java.util.List<java.lang.Double> getAllValues(JMadTwissVariable variable, JMadPlane plane)
- Specified by:
getAllValues
in interfaceOptic
-
getPoints
public java.util.List<OpticPoint> getPoints(java.util.List<Element> elements)
-
getPointsByNames
public java.util.List<OpticPoint> getPointsByNames(java.util.List<java.lang.String> names)
- Specified by:
getPointsByNames
in interfaceOptic
-
getValues
public java.util.List<java.lang.Double> getValues(MadxTwissVariable variable, java.util.List<Element> elements)
-
getValues
public java.util.List<java.lang.Double> getValues(JMadTwissVariable variable, JMadPlane plane, java.util.List<Element> elements)
-
getValuesByNames
public java.util.List<java.lang.Double> getValuesByNames(MadxTwissVariable variable, java.util.List<java.lang.String> names)
- Specified by:
getValuesByNames
in interfaceOptic
-
getValuesByNames
public java.util.List<java.lang.Double> getValuesByNames(JMadTwissVariable variable, JMadPlane plane, java.util.List<java.lang.String> names)
- Specified by:
getValuesByNames
in interfaceOptic
-
getNames
public java.util.List<java.lang.String> getNames()
-
setNames
public void setNames(java.util.List<java.lang.String> names)
-
-