|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.sns.xal.slg.Element
The super class of all lattice elements.
Field Summary | |
static java.text.NumberFormat |
fmt
|
protected boolean |
handleAsThick
|
Constructor Summary | |
protected |
Element(java.lang.String name,
double position,
double len)
Creates a new instance of Element |
Method Summary | |
abstract void |
accept(Visitor v)
When called with a Visitor reference the implementor can either reject to be visited (empty method body) or call the Visitor by passing its own object reference. |
java.lang.Object |
clone()
|
AcceleratorNode |
getAcceleratorNode()
The XAL AcceleratorNode property. |
double |
getBase()
Return the base for relative positions. |
double |
getEndPosition()
Return the downstream end position of this element |
java.lang.String |
getFam()
|
double |
getLength()
Return the length of this element in distance units. |
java.lang.String |
getName()
Return the name of this element. |
double |
getPosition()
Return the center position of this element |
double |
getStartPosition()
Return the upstream start position of this element. |
abstract java.lang.String |
getType()
Return the element type. |
boolean |
isThick()
Is this really a thick element? |
void |
setAcceleratorNode(AcceleratorNode node)
The XAL AcceleratorNode property. |
void |
setBase(double base)
Set the base for relative positions. |
void |
setLength(double length)
Set the element length. |
void |
setPosition(double position)
Set the element's center position. |
protected java.util.ArrayList |
split(Element insert)
|
double |
toAbsolutePosition(double position)
Convert to absolute position |
java.lang.String |
toCoutString()
Returns a printable string of this element. |
static java.lang.String |
version()
Return a version string wo the cvs keyword (i.e. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.text.NumberFormat fmt
protected boolean handleAsThick
Constructor Detail |
protected Element(java.lang.String name, double position, double len)
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void setAcceleratorNode(AcceleratorNode node)
public AcceleratorNode getAcceleratorNode()
public abstract java.lang.String getType()
public boolean isThick()
public double getStartPosition()
public double getEndPosition()
public double getPosition()
public double toAbsolutePosition(double position)
public double getLength()
public java.lang.String getName()
public double getBase()
public void setBase(double base)
public void setPosition(double position)
public void setLength(double length)
protected java.util.ArrayList split(Element insert) throws LatticeError
LatticeError
public java.lang.String toCoutString()
public java.lang.String getFam()
public static java.lang.String version()
public abstract void accept(Visitor v)
accept
in interface VisitorListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |