All Implemented Interfaces:
Cloneable, ISimpleElement

public class Aperture extends AbstractTransferElement
Aperture is drift space element. It has lead shields, which can be moved toward the beam and stops outer electrons.
Author:
igor@scictrl.com
  • Field Details

  • Constructor Details

    • Aperture

      public Aperture(String name)
      Aperture constructor that takes only name as parameter.
      Parameters:
      name - a String object
    • Aperture

      public Aperture(String name, boolean virtual, double position, double relpos, String relFrom, double length, double xSize, double zSize)
      Constructs the Aperture with specified parameters.
      Parameters:
      name - a String object
      virtual - a boolean
      position - a double
      relpos - a double
      relFrom - a String object
      length - a double
      xSize - a double
      zSize - a double
  • Method Details

    • descriptor

      public DBElementDescriptor descriptor()
      Returns the descriptor object for this element. DBElementDescriptor helps manipulating DataBush elements dynamically.

      descriptor.

      Specified by:
      descriptor in class AbstractDataBushElement
      Returns:
      the descriptor object for this element.
      See Also:
    • elType

      public int elType()
      Returns the code of element's type.

      elType.

      Specified by:
      elType in class AbstractDataBushElement
      Returns:
      the code of element's type.
      See Also:
    • getXsize

      public double getXsize()
      This method returns aperture of lead shields in x direction.
      Returns:
      a double
    • getZsize

      public double getZsize()

      Getter for the field zsize.

      Returns:
      double
    • setWith

      public void setWith(Object[] par) throws IllegalStateException
      Sets parameters values of this element to those in parameter array. As parameter must be used such array as for dynamical construction of new instance of this class. Current values are overriden for each not null object in array.

      setWith.

      setWith.

      setWith.

      Overrides:
      setWith in class AbstractTransferElement
      Parameters:
      par - an array of Object objects
      Throws:
      IllegalStateException - if element is initialized and inside DataBush.
      See Also:
    • setXsize

      public void setXsize(double newValue)
      This method sets aperture in x direction.
      Parameters:
      newValue - a double
      See Also:
    • setZsize

      public void setZsize(double newValue)
      This method sets aperture in z direction.
      Parameters:
      newValue - a double
      See Also:
    • toString

      public String toString()
      Returns the string representation of this element. Returns string describing this element. String is formated in input-file code. Returns a String that represents the value of this object.

      toString.

      toString.

      Specified by:
      toString in interface ISimpleElement
      Overrides:
      toString in class AbstractTransferElement
      See Also: