Package xal.smf.attr
Class RfGapBucket
java.lang.Object
xal.smf.attr.AttributeBucket
xal.smf.attr.RfGapBucket
- All Implemented Interfaces:
Serializable
,DataListener
A set of RF gap attributes.
This bucket contains information about a specific gap within a resonate cavity such as a DTL or CCL, which is driven by a common RF source.
< pre> Elements of this bucket are: length - The length is the length of the gap (m) phaseFactor - the ratio of the RF phase in the gap over the phase in the first gap ampFactor - the ratio of the RF amplitude in the gap over the amplitude in the first gap TTF - The transit time factor of this gap
- Since:
- The Beginning
- Version:
- May 29, 2015
- Author:
- J. Galambos, Christopher K. Allen
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class xal.smf.attr.AttributeBucket
AttributeBucket.MissingAttributeException
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
int
double
double
double
double[]
Returns the array of coefficients forming the polynomial expansion for the transit time factor S(β) about the design β.double[]
Returns the array of coefficients forming the polynomial expansion for the transit time factor derivative S'(β) with respect to wave number k.double[]
Returns the array of coefficients forming the polynomial expansion for the transit time factor T(β) about the design β.double[]
Returns the array of coefficients forming the polynomial expansion for the transit time factor derivative T'(β) with respect to wave number k.double
getTTF()
getType()
Override virtual to provide type signaturevoid
setAmpFactor
(double val) void
setEndCell
(int intVal) void
setGapOffset
(double dblVal) void
setLength
(double val) void
setPhaseFactor
(double val) void
setSCoefficients
(double[] arrCoeffs) Sets the coefficients of the polynomial expansion for transit time factor S(β).void
setSpCoefficients
(double[] arrCoeffs) Sets the array of coefficients forming the polynomial expansion for the transit time factor derivative S'(β) with respect to wave number k.void
setTCoefficients
(double[] arrCoeffs) Sets the coefficients of the polynomial expansion for transit time factor T(β).void
setTpCoefficients
(double[] arrCoeffs) Sets the array of coefficients forming the polynomial expansion for the transit time factor derivative T'(β) with respect to wave number k.void
setTTF
(double val) Methods inherited from class xal.smf.attr.AttributeBucket
checkAttribute, dataLabel, getAttr, getAttrDescription, getAttrNames, parseAttrValue, registerAttribute, registerAttribute, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, setAttrValue, update, write
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
RfGapBucket
public RfGapBucket()Constructor for RfGapBucket.- Since:
- May 29, 2015 by Christopher K. Allen
-
-
Method Details
-
setLength
public void setLength(double val) -
setAmpFactor
public void setAmpFactor(double val) -
setPhaseFactor
public void setPhaseFactor(double val) -
setTTF
public void setTTF(double val) -
setEndCell
public void setEndCell(int intVal) -
setGapOffset
public void setGapOffset(double dblVal) -
setTCoefficients
public void setTCoefficients(double[] arrCoeffs) Sets the coefficients of the polynomial expansion for transit time factor T(β). (The Fourier cosine transform of Ez(z).) The coefficients should be in increasing order of monomial degree. Specifically,
T(β) ≈ a0 + a1β + a2β2 + ...- Parameters:
arrCoeffs
- {a0, a1, a2, ...}- Since:
- May 29, 2015 by Christopher K. Allen
-
setTpCoefficients
public void setTpCoefficients(double[] arrCoeffs) Sets the array of coefficients forming the polynomial expansion for the transit time factor derivative T'(β) with respect to wave number k. (Note that the argument is β.) The coefficients are arranged in increasing order so that
T'(β) ≈ b0 + b1β + b2β2 + ...- Parameters:
arrCoeffs
- {b0,b1,b2,...}- Since:
- May 29, 2015 by Christopher K. Allen
-
setSCoefficients
public void setSCoefficients(double[] arrCoeffs) Sets the coefficients of the polynomial expansion for transit time factor S(β). (The Fourier sine transform of Ez(z).) The coefficients should be in increasing order of monomial degree. Specifically,
S(β) ≈ a0 + a1β + a2β2 + ...- Parameters:
arrCoeffs
- {a0, a1, a2, ...}- Since:
- May 29, 2015 by Christopher K. Allen
-
setSpCoefficients
public void setSpCoefficients(double[] arrCoeffs) Sets the array of coefficients forming the polynomial expansion for the transit time factor derivative S'(β) with respect to wave number k. (Note that the argument is β.) The coefficients are arranged in increasing order so that
S'(β) ≈ b0 + b1β + b2β2 + ...- Parameters:
arrCoeffs
- {b0,b1,b2,...}- Since:
- May 29, 2015 by Christopher K. Allen
-
getType
Override virtual to provide type signature- Specified by:
getType
in classAttributeBucket
-
getLength
public double getLength() -
getAmpFactor
public double getAmpFactor() -
getPhaseFactor
public double getPhaseFactor() -
getTTF
public double getTTF() -
getEndCell
public int getEndCell() -
getGapOffset
public double getGapOffset() -
getTCoefficients
public double[] getTCoefficients()Returns the array of coefficients forming the polynomial expansion for the transit time factor T(β) about the design β. (This is the Fourier cosine transform.) The coefficients are arranged in increasing order so that
T(β) ≈ a0 + a1β + a2β2 + ...- Returns:
- {a0,a1,a2,...}
- Since:
- May 29, 2015 by Christopher K. Allen
-
getTpCoefficients
public double[] getTpCoefficients()Returns the array of coefficients forming the polynomial expansion for the transit time factor derivative T'(β) with respect to wave number k. (Note that the argument is β.) The coefficients are arranged in increasing order so that
T'(β) ≈ b0 + b1β + b2β2 + ...- Returns:
- {b0,b1,b2,...}
- Since:
- May 29, 2015 by Christopher K. Allen
-
getSCoefficients
public double[] getSCoefficients()Returns the array of coefficients forming the polynomial expansion for the transit time factor S(β) about the design β. (This is the Fourier sine transform.) The coefficients are arranged in increasing order so that
S(β) ≈ a0 + a1β + a2β2 + ...- Returns:
- {a0,a1,a2,...}
- Since:
- May 29, 2015 by Christopher K. Allen
-
getSpCoefficients
public double[] getSpCoefficients()Returns the array of coefficients forming the polynomial expansion for the transit time factor derivative S'(β) with respect to wave number k. (Note that the argument is β.) The coefficients are arranged in increasing order so that
S'(β) ≈ b0 + b1β + b2β2 + ...- Returns:
- {b0,b1,b2,...}
- Since:
- May 29, 2015 by Christopher K. Allen
-