private class DafDataModel.NotifyingMutableCollectionChangeListener extends Object implements MutableCollectionChangeListener
Modifier and Type | Class and Description |
---|---|
class |
DafDataModel.NotifyingMutableCollectionChangeListener.AsyncNotifier
Enthält die run-Methode des Threads zur asynchronen Verarbeitung.
|
Modifier and Type | Field and Description |
---|---|
private Thread |
_asyncNotifierThread
Thread für die asynchrone Verarbeitung
|
private UnboundedQueue<DafDataModel.NotificationObject> |
_notificationQueue
Queue in der Benachrichtigungsaufträge zwischengespeichert werden.
|
Constructor and Description |
---|
DafDataModel.NotifyingMutableCollectionChangeListener() |
Modifier and Type | Method and Description |
---|---|
void |
collectionChanged(MutableCollection mutableCollection,
short simVariant,
List<SystemObject> addedElements,
List<SystemObject> removedElements)
Diese Methode wird nach einer entsprechenden Anmeldung aufgerufen, wenn bei jeweiligen dynamischen Menge oder dem dynamischen Typ Elmente hinzugefügt
oder entfern wurden.
|
void |
start()
Startet die asynchrone Verarbeitung
|
void |
stop()
Beendet die asynchrone Verarbeitung
|
private Thread _asyncNotifierThread
private UnboundedQueue<DafDataModel.NotificationObject> _notificationQueue
public DafDataModel.NotifyingMutableCollectionChangeListener()
public void collectionChanged(MutableCollection mutableCollection, short simVariant, List<SystemObject> addedElements, List<SystemObject> removedElements)
MutableCollectionChangeListener
collectionChanged
in interface MutableCollectionChangeListener
mutableCollection
- Dynamische Menge oder dynamischer Typ dessen Elemente sich geändert haben.simVariant
- Simulationsvariante auf die sich die Änderung bezieht.addedElements
- Neue Elemente.removedElements
- Gelöschte Elemente.public void start()
public void stop()