public class LatticeElement extends java.lang.Object implements java.lang.Comparable<LatticeElement>
Constructor and Description |
---|
LatticeElement(AcceleratorNode node,
double position,
java.lang.Class<? extends IComponent> elementClass,
int originalPosition) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(LatticeElement e2) |
IComponent |
convert() |
double |
getCenter() |
double |
getEndPosition() |
double |
getLength() |
java.lang.String |
getModelingElementId()
Returns the identifier string to be used for the modeling element created
by this object.
|
AcceleratorNode |
getNode() |
int |
getPartNr() |
int |
getParts() |
double |
getStartPosition() |
boolean |
isThin() |
void |
setModelingElementId(java.lang.String strElemId)
Sets the (optional) string identifier for the modeling element that
this object will create.
|
LatticeElement |
split(LatticeElement splitter) |
java.lang.String |
toString() |
public LatticeElement(AcceleratorNode node, double position, java.lang.Class<? extends IComponent> elementClass, int originalPosition)
public void setModelingElementId(java.lang.String strElemId)
strElemId
- identifier for the modeling element createdpublic java.lang.String getModelingElementId()
public double getStartPosition()
public double getLength()
public AcceleratorNode getNode()
public double getCenter()
public double getEndPosition()
public LatticeElement split(LatticeElement splitter)
public boolean isThin()
public IComponent convert() throws ModelException
ModelException
public int compareTo(LatticeElement e2)
compareTo
in interface java.lang.Comparable<LatticeElement>
public int getPartNr()
public int getParts()
public java.lang.String toString()
toString
in class java.lang.Object