Nengo.ca

ca.nengo.util
Class VisiblyMutableUtils

java.lang.Object
  extended by ca.nengo.util.VisiblyMutableUtils

public class VisiblyMutableUtils
extends java.lang.Object

Utility methods for VisiblyMutable objects.


Constructor Summary
VisiblyMutableUtils()
           
 
Method Summary
static void changed(VisiblyMutable vm, java.util.List<VisiblyMutable.Listener> listeners)
          Notifies listeners of a change to the given VisiblyMutable object.
static void nameChanged(VisiblyMutable vm, java.lang.String oldName, java.lang.String newName, java.util.List<VisiblyMutable.Listener> listeners)
           
static void nodeRemoved(VisiblyMutable vm, Node n, java.util.List<VisiblyMutable.Listener> listeners)
          Notifies listeners that a node has been removed within the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisiblyMutableUtils

public VisiblyMutableUtils()
Method Detail

changed

public static void changed(VisiblyMutable vm,
                           java.util.List<VisiblyMutable.Listener> listeners)
Notifies listeners of a change to the given VisiblyMutable object.

Parameters:
vm - The changed VisiblyMutable object
listeners - List of things listening for changes

nameChanged

public static void nameChanged(VisiblyMutable vm,
                               java.lang.String oldName,
                               java.lang.String newName,
                               java.util.List<VisiblyMutable.Listener> listeners)
                        throws StructuralException
Parameters:
vm - The changed VisiblyMutable object
oldName - The old (existing) name of the VisiblyMutable
newName - The new (replacement) name of the VisiblyMutable
listeners - List of things listening for changes
Throws:
StructuralException - if the new name is invalid

nodeRemoved

public static void nodeRemoved(VisiblyMutable vm,
                               Node n,
                               java.util.List<VisiblyMutable.Listener> listeners)
Notifies listeners that a node has been removed within the given object.

Parameters:
vm - The changed VisiblyMutable object
n - The node that was removed
listeners - List of things listening for changes

Nengo.ca