Class Solenoid

All Implemented Interfaces:
IMagField
Direct Known Subclasses:
StandardSolenoid, TransverseSolenoid

public abstract class Solenoid extends MagneticField
  • Constructor Details

    • Solenoid

      public Solenoid()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: IMagField
      Get the name of the field
      Returns:
      the name, e.e. "Torus"
    • printConfiguration

      public void printConfiguration(PrintStream ps)
      Description copied from interface: IMagField
      Print the current configuration
      Parameters:
      ps - the print stream
    • isActive

      public boolean isActive()
      Description copied from class: MagneticField
      Checks this field active.
      Specified by:
      isActive in class MagneticField
      Returns:
      true if this field is active;
    • isZeroField

      public final boolean isZeroField()
      Checks whether the field has been set to always return zero.
      Specified by:
      isZeroField in interface IMagField
      Overrides:
      isZeroField in class MagneticField
      Returns:
      true if the field is set to return zero.