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.String
ATTR_SEPARATOR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(ElementListener listener)
java.lang.Double
getAttribute(java.lang.String attributeName)
Retrieves the value of the attribute identified by the given name.java.util.List<java.lang.String>
getAttributeNames()
ElementAttributeReader
getAttributesReader()
MadxElementType
getMadxElementType()
java.lang.String
getName()
Position
getPosition()
void
removeListener(ElementListener listener)
void
setAttribute(java.lang.String name, java.lang.Double value)
void
setAttributesInitialized(boolean attributesInitialized)
void
setListenersEnabled(boolean listenersEnabled)
void
setPosition(double position)
void
setPosition(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)
-
-