gov.sns.tools.data
Interface DataListener

All Known Implementing Classes:
Accelerator, AcceleratorNode, AcceleratorSeq, AttributeBucket, BucketParser, ChannelSuite, DataTable.Schema, GenericRecord, MagnetPowerSupply, TimingCenter

public interface DataListener

DataListener is a generic interface for an object that (receives/writes) data (from/to) a generic DataAdaptor.


Method Summary
 java.lang.String dataLabel()
          dataLabel() provides the name used to identify the class in an external data source.
 void update(DataAdaptor adaptor)
          Update the data based on the information provided by the data provider.
 void write(DataAdaptor adaptor)
          Write data to the data adaptor for storage.
 

Method Detail

dataLabel

public java.lang.String dataLabel()
dataLabel() provides the name used to identify the class in an external data source.

Returns:
a tag that identifies the receiver's type

update

public void update(DataAdaptor adaptor)
Update the data based on the information provided by the data provider.

Parameters:
adaptor - The adaptor from which to update the data

write

public void write(DataAdaptor adaptor)
Write data to the data adaptor for storage.

Parameters:
adaptor - The adaptor to which the receiver's data is written