cz.cuni.amis.utils.flag
Interface IFlag<T>

Package class diagram package IFlag
All Superinterfaces:
Serializable
All Known Subinterfaces:
IReasonFlag<TYPE,REASON>
All Known Implementing Classes:
And, Connective, Flag, FlagInteger, ImmutableFlag, ImmutableReasonFlag, Or, ReasonFlag

public interface IFlag<T>
extends Serializable

Interface for flags. Flags is a reference that raises events each time the referenced object is changed.

Note that flag implementation must be Serializable!

Author:
ik, Jimmy

Method Summary
 void addListener(FlagListener<T> listener)
           
 void addStrongListener(FlagListener<T> listener)
           
 void clearListeners()
           
 void defreeze()
           
 void freeze()
           
 T getFlag()
           
 ImmutableFlag<T> getImmutable()
           
 void inSync(Flag.DoInSync<T> command)
           
 boolean isFrozen()
           
 boolean isListenning(FlagListener<T> listener)
           
 void removeAllListeners()
           
 void removeListener(FlagListener<T> listener)
           
 void setFlag(T newValue)
           
 

Method Detail

addListener

void addListener(FlagListener<T> listener)

addStrongListener

void addStrongListener(FlagListener<T> listener)

clearListeners

void clearListeners()

getFlag

T getFlag()

isListenning

boolean isListenning(FlagListener<T> listener)

removeListener

void removeListener(FlagListener<T> listener)

removeAllListeners

void removeAllListeners()

setFlag

void setFlag(T newValue)

getImmutable

ImmutableFlag<T> getImmutable()

inSync

void inSync(Flag.DoInSync<T> command)

isFrozen

boolean isFrozen()

freeze

void freeze()

defreeze

void defreeze()


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.