Package xal.smf.impl

Class MagnetMainSupply

java.lang.Object
xal.smf.impl.MagnetPowerSupply
xal.smf.impl.MagnetMainSupply
All Implemented Interfaces:
DataListener

public class MagnetMainSupply extends MagnetPowerSupply
MainMagnetSupply represents a power supply that is the main supply for a magnet.
Author:
tap
  • Field Details

  • Constructor Details

    • MagnetMainSupply

      public MagnetMainSupply(Accelerator anAccelerator)
      Creates a new instance of MainSupply
  • Method Details

    • getType

      public String getType()
      Get the power supply type
      Specified by:
      getType in class MagnetPowerSupply
      Returns:
      The power supply type
    • setCycleEnable

      protected void setCycleEnable(boolean enable) throws PutException
      Set the cycle enable state of the magnet power supply. If enabled, the magnet will be cycled when the field is set.
      Parameters:
      enable - True to enable cycling; false to disable cycling.
      Throws:
      PutException
    • getField

      public double getField() throws GetException
      Get the field contribution from this power supply. T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
      Returns:
      the field contribution
      Throws:
      GetException
    • setField

      public void setField(double newField) throws PutException
      Set the field contribution from this power supply. If cycle enable is set to true the field is cycled otherwise it is simply set to the specified value.
      Parameters:
      newField - is the new field level in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
      Throws:
      PutException
    • getFieldSetting

      public double getFieldSetting() throws GetException
      Get the value to which the field is set. Note that this is not the readback.
      Returns:
      the field setting in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
      Throws:
      GetException
    • upperDisplayFieldLimit

      public double upperDisplayFieldLimit() throws GetException
      get the field upper display limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc. This is the preferred upper field limit for setting magnets as it represents an operational limit.
      Throws:
      GetException
    • lowerDisplayFieldLimit

      public double lowerDisplayFieldLimit() throws GetException
      get the field lower display limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc. This is the preferred lower field limit for setting magnets as it represents an operational limit.
      Throws:
      GetException
    • upperFieldLimit

      public double upperFieldLimit() throws GetException
      get the field upper settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
      Throws:
      GetException
    • lowerFieldLimit

      public double lowerFieldLimit() throws GetException
      get the field lower settable limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
      Throws:
      GetException
    • upperAlarmFieldLimit

      public double upperAlarmFieldLimit() throws GetException
      Get the field upper alarm limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
      Throws:
      GetException
    • lowerAlarmFieldLimit

      public double lowerAlarmFieldLimit() throws GetException
      Get the field lower alarm limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
      Throws:
      GetException
    • upperWarningFieldLimit

      public double upperWarningFieldLimit() throws GetException
      Get the field upper warning limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
      Throws:
      GetException
    • lowerWarningFieldLimit

      public double lowerWarningFieldLimit() throws GetException
      Get the field lower warning limit in T/(m^(n-1)), where n = 1 for dipole, 2 for quad, etc.
      Throws:
      GetException
    • suppliesNode

      public boolean suppliesNode(AcceleratorNode node)
      Check if the electromagnet is supplied by this power supply.
      Specified by:
      suppliesNode in class MagnetPowerSupply
      Parameters:
      node - The electromagnet to check
      Returns:
      true if the node is supplied by this supply and false otherwise