Package xal.smf.attr
Class AttributeBucket
java.lang.Object
xal.smf.attr.AttributeBucket
- All Implemented Interfaces:
Serializable,DataListener
- Direct Known Subclasses:
AlignmentBucket,ApertureBucket,BPMBucket,DisplaceBucket,FieldMapBucket,MagnetBucket,RfCavityBucket,RfGapBucket,RfqDummyBucket,RotationBucket,SequenceBucket,TwissBucket
The root class in the inheritance hierarchy of orthogonal sets of element
attributes (such as a set of multipole harmonics, a set of aperture
parameters, and others).
Derived classes should call registerAttribute() in their constructor on all
Attribute objects belonging to the attribute bucket.
- Author:
- Nikolay Malitsky, Christopher K. Allen
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAttributeBucket should only be instantiated by a derived class -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckAttribute(String strName, int iType) Check attribute validityimplement DataListener interfacegetAttrDescription(String strName) String[]abstract StringgetType()Derived class must furnish a unique type idbooleanparseAttrValue(String strName, String strVal) protected voidregisterAttribute(String strName, Attribute attr) Used by derived classes to define particular attributesprotected voidregisterAttribute(String strName, Attribute attr, String description) Used by derived classes to define particular attributesbooleansetAttrValue(String strName, double newVal) booleansetAttrValue(String strName, double[] newVal) booleansetAttrValue(String strName, float newVal) booleansetAttrValue(String strName, float[] newVal) booleansetAttrValue(String strName, int newVal) booleansetAttrValue(String strName, int[] newVal) booleansetAttrValue(String strName, long newVal) booleansetAttrValue(String strName, long[] newVal) booleansetAttrValue(String strName, String newVal) booleansetAttrValue(String strName, String[] newVal) voidupdate(DataAdaptor adaptor) implement DataListener interfacevoidwrite(DataAdaptor adaptor) implement DataListener interface
-
Constructor Details
-
AttributeBucket
protected AttributeBucket()AttributeBucket should only be instantiated by a derived class
-
-
Method Details
-
getType
Derived class must furnish a unique type id -
dataLabel
implement DataListener interface- Specified by:
dataLabelin interfaceDataListener- Returns:
- a tag that identifies the receiver's type
-
update
implement DataListener interface- Specified by:
updatein interfaceDataListener- Parameters:
adaptor- The adaptor from which to update the data- Throws:
NumberFormatException
-
write
implement DataListener interface- Specified by:
writein interfaceDataListener- Parameters:
adaptor- The adaptor to which the receiver's data is written
-
getAttr
-
getAttrDescription
-
getAttrNames
-
parseAttrValue
- Throws:
NumberFormatException
-
setAttrValue
-
setAttrValue
-
setAttrValue
-
setAttrValue
-
setAttrValue
-
setAttrValue
-
setAttrValue
-
setAttrValue
-
setAttrValue
-
setAttrValue
-
registerAttribute
Used by derived classes to define particular attributes -
registerAttribute
Used by derived classes to define particular attributes -
checkAttribute
Check attribute validity
-