cz.cuni.amis.utils.flag.connective
Class Connective
java.lang.Object
cz.cuni.amis.utils.flag.Flag<java.lang.Boolean>
cz.cuni.amis.utils.flag.connective.Connective
- All Implemented Interfaces:
- IFlag<java.lang.Boolean>, java.io.Serializable
- Direct Known Subclasses:
- And, Or
public abstract class Connective
- extends Flag<java.lang.Boolean>
Used to create logical expression out of different flags. (Warning: spagetthi code ahead!)
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class cz.cuni.amis.utils.flag.Flag |
Flag.DoInSync<T> |
Methods inherited from class cz.cuni.amis.utils.flag.Flag |
addListener, addStrongListener, clearListeners, defreeze, freeze, getFlag, getImmutable, inSync, inSyncInner, isFrozen, isListenning, isNone, isOne, removeAllListeners, removeListener, setFlag, waitFor, waitFor, waitForChange, waitForChange |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
listeners
protected java.util.List<ConnectiveListener> listeners
truthValue
protected int[] truthValue
flags
protected java.util.Set<Flag<java.lang.Boolean>> flags
Connective
public Connective(Flag<java.lang.Boolean> flag1,
Flag<java.lang.Boolean> flag2)
Connective
public Connective(Flag<java.lang.Boolean>[] flags)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
truthValueChanged
protected abstract void truthValueChanged()