cz.cuni.amis.utils.flag
Interface ReasonFlagListener<TYPE,REASON>
- Type Parameters:
TYPE
- REASON
-
- All Superinterfaces:
- EventListener, FlagListener<TYPE>
- All Known Implementing Classes:
- ReasonFlagListener.FlagListenerAdapter
public interface ReasonFlagListener<TYPE,REASON>
- extends FlagListener<TYPE>
Listener for ReasonFlag
. It allows to sense reasons of the changes. It provides
a simple message passing mechanism along with changes in the flag.
For instance, it allows us to send reason why the Mediator has been shut down.
- Author:
- Jimmy
Method Summary |
void |
flagChanged(TYPE changedValue,
REASON reason)
This method is called whenever the flag has changed its value and the changer
also specified a reason for this change. |
flagChanged
void flagChanged(TYPE changedValue,
REASON reason)
- This method is called whenever the flag has changed its value and the changer
also specified a reason for this change.
- Parameters:
changedValue
- reason
-
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.