cz.cuni.amis.utils.flag.connective
Class Connective

Package class diagram package Connective
java.lang.Object
  extended by cz.cuni.amis.utils.flag.Flag<Boolean>
      extended by cz.cuni.amis.utils.flag.connective.Connective
All Implemented Interfaces:
IFlag<Boolean>, Serializable
Direct Known Subclasses:
And, Or

public abstract class Connective
extends Flag<Boolean>

Used to create logical expression out of different flags. (Warning: spagetthi code ahead!)

Author:
Jimmy
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class cz.cuni.amis.utils.flag.Flag
Flag.DoInSync<T>
 
Field Summary
protected  Set<Flag<Boolean>> flags
           
protected  List<ConnectiveListener> listeners
           
protected  int[] truthValue
           
 
Constructor Summary
Connective(Flag<Boolean>[] flags)
           
Connective(Flag<Boolean> flag1, Flag<Boolean> flag2)
           
 
Method Summary
 int hashCode()
           
protected abstract  void truthValueChanged()
           
 
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
 

Field Detail

listeners

protected List<ConnectiveListener> listeners

truthValue

protected int[] truthValue

flags

protected Set<Flag<Boolean>> flags
Constructor Detail

Connective

public Connective(Flag<Boolean> flag1,
                  Flag<Boolean> flag2)

Connective

public Connective(Flag<Boolean>[] flags)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

truthValueChanged

protected abstract void truthValueChanged()


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