public class MultiNotificationHandler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MultiNotificationHandler.BooleanOperation
Boolean operation for SimNofificationHandlers
|
Modifier and Type | Field and Description |
---|---|
protected NotificationHandler |
handler |
protected boolean |
isOperationSet
flag that allows changes of notification condition only once
|
protected java.util.List<Notifier> |
needToNotifyMembers
members that haven't called Notify yet
|
protected MultiNotificationHandler.BooleanOperation |
notificationCondition
determines condition for calling HandleNotification
|
protected java.util.List<Notifier> |
notifiers
all members
|
Constructor and Description |
---|
MultiNotificationHandler(NotificationHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
addNotifier(Notifier n) |
void |
notify(Notifier from) |
void |
removeNotifier(Notifier n) |
void |
resetNotification() |
void |
setBooleanOperation(MultiNotificationHandler.BooleanOperation op)
Allows to change the necessary condition for calling HandleNotification(),
do not use this method after start of simulation.
|
protected java.util.List<Notifier> notifiers
protected java.util.List<Notifier> needToNotifyMembers
protected MultiNotificationHandler.BooleanOperation notificationCondition
protected boolean isOperationSet
protected NotificationHandler handler
public MultiNotificationHandler(NotificationHandler handler)
public void notify(Notifier from)
public void resetNotification()
public void addNotifier(Notifier n)
public void removeNotifier(Notifier n)
public void setBooleanOperation(MultiNotificationHandler.BooleanOperation op)
op
-