public class NotificationCondition extends Object implements IWatchedCondition
| Modifier and Type | Class and Description |
|---|---|
static interface |
NotificationCondition.IConditionNotifier |
| Constructor and Description |
|---|
NotificationCondition() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNotifier(NotificationCondition.IConditionNotifier notifier) |
boolean |
checkCondition() |
void |
conditionViolated()
callback if the condition is vioalated
|
protected void |
finalize() |
boolean |
isActive() |
boolean |
isUseless()
indicates that the condition isn't needed any longer ...
|
protected void |
notifyCondition() |
void |
setActive(boolean active)
activate/deactivate the condition
|
void |
setUseless(boolean mode) |
String |
toString() |
public boolean isActive()
isActive in interface IWatchedConditionpublic void setActive(boolean active)
IWatchedConditionsetActive in interface IWatchedConditionactive - state to be setpublic boolean checkCondition()
checkCondition in interface IWatchedConditionpublic void conditionViolated()
IWatchedConditionconditionViolated in interface IWatchedConditionpublic void addNotifier(NotificationCondition.IConditionNotifier notifier)
protected void notifyCondition()
protected void finalize()
throws Throwable
public boolean isUseless()
IWatchedConditionisUseless in interface IWatchedConditionpublic void setUseless(boolean mode)
Copyright © 2017. All rights reserved.