ti.chimera.registry
Class NodeSubscriber.ScriptFunctionNodeSubscriber

java.lang.Object
  extended by ti.chimera.registry.NodeSubscriber.ScriptFunctionNodeSubscriber
All Implemented Interfaces:
NodeSubscriber
Enclosing interface:
NodeSubscriber

public static class NodeSubscriber.ScriptFunctionNodeSubscriber
extends java.lang.Object
implements NodeSubscriber

An implementation of the NodeSubscriber for script functions.


Nested Class Summary
 
Nested classes/interfaces inherited from interface ti.chimera.registry.NodeSubscriber
NodeSubscriber.ScriptFunctionNodeSubscriber
 
Constructor Summary
NodeSubscriber.ScriptFunctionNodeSubscriber(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 publish(Node node, java.lang.Object value)
          delegate to the script function
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeSubscriber.ScriptFunctionNodeSubscriber

public NodeSubscriber.ScriptFunctionNodeSubscriber(oscript.data.Value fxn)
Class Constructor

Parameters:
fxn - the script function to call
Method Detail

publish

public void publish(Node node,
                    java.lang.Object value)
delegate to the script function

Specified by:
publish in interface NodeSubscriber
Parameters:
node - the node doing the publishing
value - the node's new value

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