Class DipoleCorr

All Implemented Interfaces:
Comparable, ElementType, MagnetType, DataListener

public class DipoleCorr extends DipoleCorr
Class for horizontal and vertical correctors.
Author:
Juan F. Esteban Müller <JuanF.EstebanMuller@esss.se>
  • Field Details

    • TYPE

      public static final String TYPE
      standard type for nodes of this class
      See Also:
    • TYPE_DCH

      public static final String[] TYPE_DCH
    • TYPE_DCV

      public static final String[] TYPE_DCV
  • Constructor Details

    • DipoleCorr

      public DipoleCorr(String strId, int orientation, ChannelFactory channelFactory)
      Primary Constructor
    • DipoleCorr

      public DipoleCorr(String strId, int orientation)
    • DipoleCorr

      public DipoleCorr(String strId)
    • DipoleCorr

      public DipoleCorr(String strId, ChannelFactory channelFactory)
  • Method Details

    • getType

      public String getType()
      Override to provide type signature
      Overrides:
      getType in class Dipole
    • setOrientation

      public void setOrientation(int orientation)
      Sets orientation of the magnet as defined by MagnetType.
      Parameters:
      orientation - orientation of the magnet, either HORIZONTAL or VERTICAL
    • getOrientation

      public int getOrientation()
      Get the orientation of the magnet as defined by MagnetType. The orientation of the dipole is determined by its type: DH or DV
      Specified by:
      getOrientation in interface MagnetType
      Overrides:
      getOrientation in class Magnet
      Returns:
      One of HORIZONTAL or VERTICAL
    • 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.