equip.data
Class ActiveTreeNode

java.lang.Object
  extended byequip.runtime.Object
      extended byequip.runtime.ValueBase
          extended byequip.data.ItemData
              extended byequip.data.TreeNode
                  extended byequip.data.ActiveTreeNode
All Implemented Interfaces:
java.lang.Cloneable

public abstract class ActiveTreeNode
extends TreeNode

ItemData subclass that is actively notified (by the dataspace replica) when it is added to, updated in, or deleted from a dataspace replica.


Field Summary
 
Fields inherited from class equip.data.TreeNode
parent
 
Fields inherited from class equip.data.ItemData
id, name
 
Constructor Summary
ActiveTreeNode()
          Default no-arg constructor
 
Method Summary
 boolean _equals_helper(ActiveTreeNode c)
          Internal IDL-generated equality test helper
 boolean _matches_helper(ActiveTreeNode c)
          Internal IDL-generated match test helper
 boolean equals(java.lang.Object c)
          Standard IDL-generated equality test.
 java.lang.String getModuleName()
          IDL-generated helper routine to get module name (currently unimplemented).
 boolean matches(java.lang.Object c)
          Standard IDL-generated template match test.
abstract  void notifyDataspaceAdd(DataProxy ds)
          notification of being added to a dataspace replica.
abstract  void notifyDataspaceDelete(DataProxy ds)
          notification of being deleted from a dataspace replica.
abstract  void notifyDataspaceReplaced(DataProxy ds)
          notification of being updated in a dataspace replica; called on the oldValue instance, after notifyDataspaceUpdate(equip.data.DataProxy, equip.data.ItemData) is called on the new value.
abstract  void notifyDataspaceUpdate(DataProxy ds, ItemData oldValue)
          notification of being updated in a dataspace replica; called on the new value instance.
 void readObject(ObjectInputStream in)
          Internal IDL-generated serialisation helper.
 void writeObject(ObjectOutputStream out)
          Internal IDL-generated serialisation helper.
 
Methods inherited from class equip.data.TreeNode
_equals_helper, _matches_helper
 
Methods inherited from class equip.data.ItemData
_equals_helper, _matches_helper
 
Methods inherited from class equip.runtime.ValueBase
_equals_helper, _matches_helper, clone
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveTreeNode

public ActiveTreeNode()
Default no-arg constructor

Method Detail

notifyDataspaceAdd

public abstract void notifyDataspaceAdd(DataProxy ds)
notification of being added to a dataspace replica.

Parameters:
ds - The dataspace replica to which this item has been added.

notifyDataspaceUpdate

public abstract void notifyDataspaceUpdate(DataProxy ds,
                                           ItemData oldValue)
notification of being updated in a dataspace replica; called on the new value instance.

Parameters:
ds - The dataspace replica in which this item has been updated.
oldValue - The old value in this dataspace with the same GUID.

notifyDataspaceDelete

public abstract void notifyDataspaceDelete(DataProxy ds)
notification of being deleted from a dataspace replica.

Parameters:
ds - The dataspace replica from which this item has been deleted.

notifyDataspaceReplaced

public abstract void notifyDataspaceReplaced(DataProxy ds)
notification of being updated in a dataspace replica; called on the oldValue instance, after notifyDataspaceUpdate(equip.data.DataProxy, equip.data.ItemData) is called on the new value.

Parameters:
ds - The dataspace replica in which this item has been replaced by the update.

getModuleName

public java.lang.String getModuleName()
IDL-generated helper routine to get module name (currently unimplemented).

Overrides:
getModuleName in class TreeNode
Returns:
name of this class's module

equals

public boolean equals(java.lang.Object c)
Standard IDL-generated equality test.

Overrides:
equals in class TreeNode
Parameters:
c - The object to be compared against this.
Returns:
true if this is equal to c

_equals_helper

public boolean _equals_helper(ActiveTreeNode c)
Internal IDL-generated equality test helper


matches

public boolean matches(java.lang.Object c)
Standard IDL-generated template match test.

Overrides:
matches in class TreeNode
Parameters:
c - The object to be checked against this template.
Returns:
true if this (as a template) matches the argument

_matches_helper

public boolean _matches_helper(ActiveTreeNode c)
Internal IDL-generated match test helper


writeObject

public void writeObject(ObjectOutputStream out)
                 throws java.io.IOException
Internal IDL-generated serialisation helper. Used by ObjectInputStream and ObjectOutputStream only.

Overrides:
writeObject in class TreeNode
Throws:
java.io.IOException

readObject

public void readObject(ObjectInputStream in)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException,
                       java.lang.InstantiationException
Internal IDL-generated serialisation helper. Used by ObjectInputStream and ObjectOutputStream only.

Overrides:
readObject in class TreeNode
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException