public interface Dataset
All datasets are required to support the DatasetChangeEvent
mechanism by allowing listeners to register and receive notification of any
changes to the dataset.
In addition, all datasets must belong to one (and only one)
DatasetGroup
. The group object maintains a reader-writer lock
which provides synchronised access to the datasets in multi-threaded code.
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(DatasetChangeListener listener)
Registers an object for notification of changes to the dataset.
|
DatasetGroup |
getGroup()
Returns the dataset group.
|
void |
removeChangeListener(DatasetChangeListener listener)
Deregisters an object for notification of changes to the dataset.
|
void |
setGroup(DatasetGroup group)
Sets the dataset group.
|
void addChangeListener(DatasetChangeListener listener)
listener
- the object to register.void removeChangeListener(DatasetChangeListener listener)
listener
- the object to deregister.DatasetGroup getGroup()
void setGroup(DatasetGroup group)
group
- the dataset group.Jas4pp 1.5 © Java Analysis Studio for Particle Physics