ti.chimera.registry
Class NodeCreationSubscriber.ScriptFunctionNodeCreationSubscriber

java.lang.Object
  extended by ti.chimera.registry.NodeCreationSubscriber.ScriptFunctionNodeCreationSubscriber
All Implemented Interfaces:
NodeCreationSubscriber
Enclosing interface:
NodeCreationSubscriber

public static class NodeCreationSubscriber.ScriptFunctionNodeCreationSubscriber
extends java.lang.Object
implements NodeCreationSubscriber

An implementation of the NodeCreationSubscriber for script functions.


Nested Class Summary
 
Nested classes/interfaces inherited from interface ti.chimera.registry.NodeCreationSubscriber
NodeCreationSubscriber.ScriptFunctionNodeCreationSubscriber
 
Constructor Summary
NodeCreationSubscriber.ScriptFunctionNodeCreationSubscriber(oscript.data.Value fxn)
          Class Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Overload equals() to be true if the wrapped fxns are equal, so add/remove from list, etc., works right.
 int hashCode()
          Overload hashCode() so add/remove from list, etc., works right.
 void nodeCreated(Node node)
          delegate to the script function
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeCreationSubscriber.ScriptFunctionNodeCreationSubscriber

public NodeCreationSubscriber.ScriptFunctionNodeCreationSubscriber(oscript.data.Value fxn)
Class Constructor

Parameters:
fxn - the script function to call
Method Detail

nodeCreated

public void nodeCreated(Node node)
delegate to the script function

Specified by:
nodeCreated in interface NodeCreationSubscriber
Parameters:
node - the node created

equals

public boolean equals(java.lang.Object obj)
Overload equals() to be true if the wrapped fxns are equal, so add/remove from list, etc., works right.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overload hashCode() so add/remove from list, etc., works right.

Overrides:
hashCode in class java.lang.Object