Package | Description |
---|---|
cz.cuni.amis.utils.flag | |
cz.cuni.amis.utils.flag.connective | |
cz.cuni.amis.utils.future |
Modifier and Type | Interface and Description |
---|---|
interface |
ReasonFlagListener<TYPE,REASON>
Listener for
ReasonFlag . |
Modifier and Type | Class and Description |
---|---|
static class |
ReasonFlagListener.FlagListenerAdapter<T,R>
Adapter for the simple FlagListener that does not care about reasons (the reason is masked
during the call...)
|
Modifier and Type | Method and Description |
---|---|
void |
ImmutableFlag.addListener(FlagListener<T> listener) |
void |
IFlag.addListener(FlagListener<T> listener) |
void |
Flag.addListener(FlagListener<T> listener)
Adds new listener to the flag with specified param.
|
void |
ReasonFlag.addListener(FlagListener<TYPE> listener)
Use
ReasonFlagListener to get reasons or simple FlagListener to only receives
new values. |
void |
ImmutableFlag.addStrongListener(FlagListener<T> listener) |
void |
IFlag.addStrongListener(FlagListener<T> listener) |
void |
Flag.addStrongListener(FlagListener<T> listener)
Adds new listener to the flag (strong reference).
|
void |
ReasonFlag.addStrongListener(FlagListener<TYPE> listener)
Use
ReasonFlagListener to get reasons or simple FlagListener to only receives
new values. |
boolean |
ImmutableFlag.isListenning(FlagListener<T> listener) |
boolean |
IFlag.isListenning(FlagListener<T> listener) |
boolean |
Flag.isListenning(FlagListener<T> listener)
Checks whether listener is already registered (using equals()).
|
void |
ReasonFlagListener.ReasonFlagListenerNotifier.notify(FlagListener<T> listener)
If ReasonFlagListener is passed into the method, it is redirected into appropriate method.
|
void |
FlagListener.FlagListenerNotifier.notify(FlagListener<T> listener) |
void |
ImmutableFlag.removeListener(FlagListener<T> listener) |
void |
IFlag.removeListener(FlagListener<T> listener) |
void |
Flag.removeListener(FlagListener<T> listener)
Removes all registered 'listener' from the flag.
|
Constructor and Description |
---|
ReasonFlagListener.FlagListenerAdapter(FlagListener<T> listener) |
Modifier and Type | Class and Description |
---|---|
class |
ConnectiveListener |
Modifier and Type | Class and Description |
---|---|
class |
FlagFuture<Result,FlagType>
Future implementation that is listening on a flag and when it's terminal state
is set on the flag the future completes itself with result specified in the map
(under the key of the flag value).
|
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.