All Implemented Interfaces:
Cloneable, ISimpleElement

public class Cavity extends AbstractTransferElement
Cavity represent cavity.
Author:
igor@scictrl.com
  • Field Details

  • Constructor Details

    • Cavity

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

      public Cavity(String name, boolean virtual, double position, double relpos, String relFrom, double length, double voltage, double lag, int harmon, double betRF, double pG, double shunt, double tFill)
      Constructs the Cavity with specified parameters.
      Parameters:
      name - a String object
      virtual - a boolean
      position - a double
      relpos - a double
      relFrom - a String object
      length - a double
      voltage - a double
      lag - a double
      harmon - a int
      betRF - a double
      pG - a double
      shunt - a double
      tFill - 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:
    • getBetRF

      public double getBetRF()

      Getter for the field betRF.

      Returns:
      double
    • getHarmon

      public int getHarmon()

      Getter for the field harmon.

      Returns:
      int
    • getLag

      public double getLag()

      Getter for the field lag.

      Returns:
      double
    • getPG

      public double getPG()

      Getter for the field pG.

      Returns:
      double
    • getShunt

      public double getShunt()

      Getter for the field shunt.

      Returns:
      double
    • getTFill

      public double getTFill()

      Getter for the field tFill.

      Returns:
      double
    • getVoltage

      public double getVoltage()
      This method return voltage on cavity.
      Returns:
      double voltage value
    • setBetRF

      public void setBetRF(double newValue)

      Setter for the field betRF.

      Parameters:
      newValue - double
    • setHarmon

      public void setHarmon(int newValue)

      Setter for the field harmon.

      Parameters:
      newValue - int
    • setLag

      public void setLag(double newValue)

      Setter for the field lag.

      Parameters:
      newValue - double
    • setPG

      public void setPG(double newValue)

      Setter for the field pG.

      Parameters:
      newValue - double
    • setShunt

      public void setShunt(double newValue)

      Setter for the field shunt.

      Parameters:
      newValue - double
    • setTFill

      public void setTFill(double newValue)

      Setter for the field tFill.

      Parameters:
      newValue - double
    • setVoltage

      public void setVoltage(double newValue)
      This method set voltage to cavity.
      Parameters:
      newValue - a 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:
    • 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: