Package xal.smf.impl

Class EDipole

All Implemented Interfaces:
Comparable, ElementType, DataListener

public class EDipole extends Electrostatic
  • Field Details

  • Constructor Details

    • EDipole

      public EDipole(String strId, ChannelFactory channelFactory)
      Primary Constructor
    • EDipole

      public EDipole(String strId)
      Constructor
  • Method Details

    • getType

      public String getType()
      Description copied from class: AcceleratorNode
      Derived class must furnish a unique type id
      Overrides:
      getType in class Electrostatic
    • setType

      public void setType(String newType)
    • getOrientation

      public int getOrientation()
      Get the orientation of the magnet as defined by MagnetType. The orientation of the quad is determined by its type: QH or QV
      Overrides:
      getOrientation in class Electrostatic
      Returns:
      One of HORIZONTAL or VERTICAL
    • getDfltBendAngle

      public double getDfltBendAngle()
      Get the dipole bend magnet bending angle.
    • getDfltPathLength

      public double getDfltPathLength()
      returns design path length in meters
    • update

      public void update(DataAdaptor adaptor)
      Update the instance with data from the data adaptor. Overrides the default implementation to set the quadrupole type since a quadrupole type can be either "QHE" or "QVE".
      Specified by:
      update in interface DataListener
      Overrides:
      update in class AcceleratorNode
      Parameters:
      adaptor - The data provider.
    • isKindOf

      public boolean isKindOf(String type)
      Description copied from class: AcceleratorNode
      Determine if a node is of the specified type. The comparison is based upon the node's class and the element type manager handles checking for inherited classes to types get inherited. Subclasses can override this method if the types comparison is more complicated (e.g. if more than one type can be associated with the same node class).
      Specified by:
      isKindOf in interface ElementType
      Overrides:
      isKindOf in class AcceleratorNode
      Parameters:
      type - The type against which to compare.
      Returns:
      true if the node is of the specified type; false otherwise.