Class 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 Detail

      • OpticImpl

        public OpticImpl()
    • 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 values
        values - 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
      • getPointsByNames

        public java.util.List<OpticPoint> getPointsByNames​(java.util.List<java.lang.String> names)
        Specified by:
        getPointsByNames in interface Optic
      • getValuesByNames

        public java.util.List<java.lang.Double> getValuesByNames​(MadxTwissVariable variable,
                                                                 java.util.List<java.lang.String> names)
        Specified by:
        getValuesByNames in interface Optic
      • getNames

        public java.util.List<java.lang.String> getNames()
        Specified by:
        getNames in interface Optic
        Returns:
        the element names
      • setNames

        public void setNames​(java.util.List<java.lang.String> names)