Package xal.smf.data
Class BucketParser
java.lang.Object
xal.smf.data.BucketParser
- All Implemented Interfaces:
DataListener
BucketParser is a wrapper for the collection of attribute buckets associated
with an AcceleratorNode. Since each attribute bucket has a type and that type
is used as the bucket's data node name within the "attributes" data node
hierarchy, a wrapper is needed to hold all such buckets. The BucketParser is
that wrapper.
- Author:
- tap
-
Constructor Summary
ConstructorsConstructorDescriptionCreates new BucketParserBucketParser
(Collection<AttributeBucket> bucketList) creates a new BucketParser from a list of buckets -
Method Summary
Modifier and TypeMethodDescriptionDataListener interface supportget a specific bucket keyed by the bucket typeget a collection of all the bucketsvoid
update
(DataAdaptor adaptor) DataListener interface supportvoid
write
(DataAdaptor adaptor) DataListener interface support
-
Constructor Details
-
BucketParser
public BucketParser()Creates new BucketParser -
BucketParser
creates a new BucketParser from a list of buckets
-
-
Method Details
-
dataLabel
DataListener interface support- Specified by:
dataLabel
in interfaceDataListener
- Returns:
- a tag that identifies the receiver's type
-
update
DataListener interface support- Specified by:
update
in interfaceDataListener
- Parameters:
adaptor
- The adaptor from which to update the data- Throws:
NumberFormatException
-
write
DataListener interface support- Specified by:
write
in interfaceDataListener
- Parameters:
adaptor
- The adaptor to which the receiver's data is written
-
getBuckets
get a collection of all the buckets -
getBucket
get a specific bucket keyed by the bucket type
-