tools.blend
Class NotNode

java.lang.Object
  extended by tools.blend.Node
      extended by tools.blend.NotNode

public class NotNode
extends Node

This class is a "not" relationship between parent and child. This node crosses the pass/fail connectors between parent and child.


Constructor Summary
NotNode(Node parent, CapNode cap)
          This creates a new NotNode
 
Method Summary
 java.lang.String whereDoIGoOnFail(Node whichChildAmI)
           
 java.lang.String whereDoIGoOnPass(Node whichChildAmI)
          When a child node finishes its processing it can either have passed or failed and needs a destination to jump to (another compare-node or the pass/fail blocks).
 
Methods inherited from class tools.blend.Node
addChild, getChildIndex, getName, getStartingCompareNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotNode

public NotNode(Node parent,
               CapNode cap)
This creates a new NotNode

Parameters:
parent - the parent node
cap - the root of the expression
Method Detail

whereDoIGoOnPass

public java.lang.String whereDoIGoOnPass(Node whichChildAmI)
Description copied from class: Node
When a child node finishes its processing it can either have passed or failed and needs a destination to jump to (another compare-node or the pass/fail blocks). This method returns the next place.

Specified by:
whereDoIGoOnPass in class Node
Parameters:
whichChildAmI - which child I am (AND and OR have multiple children)
Returns:
the name of the next jump destination

whereDoIGoOnFail

public java.lang.String whereDoIGoOnFail(Node whichChildAmI)
Specified by:
whereDoIGoOnFail in class Node