fr.umlv.tatoo.cc.parser.solver
Interface NodeContent<K,V>


public interface NodeContent<K,V>

Author:
jcervell

Method Summary
 Set<K> dependencies()
          dependencies should not change during computation
 V getCurrentResult()
          retrieve the information computed so far
 V getResult()
          retrieve the information for this node when the computation is finished
 boolean hasChanged(K key, NodeContent<K,V> node)
          Notifies this node that some node has changed
 

Method Detail

hasChanged

boolean hasChanged(K key,
                   NodeContent<K,V> node)
Notifies this node that some node has changed

Returns:
true if this node has changed

dependencies

Set<K> dependencies()
dependencies should not change during computation

Returns:
the set of nodes which changes has to be notified to this node

getCurrentResult

V getCurrentResult()
retrieve the information computed so far

Returns:
the information computed so far

getResult

V getResult()
retrieve the information for this node when the computation is finished

Returns:
the final result