Interface Element
-
- All Known Implementing Classes:
AbstractElement,BeamBeam,Bend,Corrector,Marker,Monitor,Octupole,Quadrupole,Sextupole,Solenoid,UnknownElement
public interface Element
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_SEPARATOR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(ElementListener listener)java.lang.DoublegetAttribute(java.lang.String attributeName)Retrieves the value of the attribute identified by the given name.java.util.List<java.lang.String>getAttributeNames()ElementAttributeReadergetAttributesReader()MadxElementTypegetMadxElementType()java.lang.StringgetName()PositiongetPosition()voidremoveListener(ElementListener listener)voidsetAttribute(java.lang.String name, java.lang.Double value)voidsetAttributesInitialized(boolean attributesInitialized)voidsetListenersEnabled(boolean listenersEnabled)voidsetPosition(double position)voidsetPosition(Position position)
-
-
-
Field Detail
-
ATTR_SEPARATOR
static final java.lang.String ATTR_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
java.lang.String getName()
-
getPosition
Position getPosition()
-
setPosition
void setPosition(double position)
-
setPosition
void setPosition(Position position)
-
setAttribute
void setAttribute(java.lang.String name, java.lang.Double value)
-
getAttribute
java.lang.Double getAttribute(java.lang.String attributeName)
Retrieves the value of the attribute identified by the given name.- Parameters:
attributeName- the name of the attribute to retrieve- Returns:
- the value of the attribute of the given name. If the attribute is not available for the element, then
null.
-
getAttributeNames
java.util.List<java.lang.String> getAttributeNames()
-
getAttributesReader
ElementAttributeReader getAttributesReader()
-
getMadxElementType
MadxElementType getMadxElementType()
- Returns:
- the exact element type as defined in the madx sequence of this element as enum
-
setAttributesInitialized
void setAttributesInitialized(boolean attributesInitialized)
-
setListenersEnabled
void setListenersEnabled(boolean listenersEnabled)
-
addListener
void addListener(ElementListener listener)
-
removeListener
void removeListener(ElementListener listener)
-
-