equip.data
Class UpdateEvent

java.lang.Object
  extended byequip.runtime.Object
      extended byequip.runtime.ValueBase
          extended byequip.data.Event
              extended byequip.data.UpdateEvent
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
UpdateEventImpl

public abstract class UpdateEvent
extends Event

An event representing the update of a previously added ItemData instance in the dataspace; replaces the previous item value with the new value in the event. Typically generated by calls to DataProxy.updateItem(equip.data.ItemData, boolean, boolean). NOTE: UpdateEvents should not be created by the application for items with Leases; use an AddEvent instead (with the new Lease value in the ItemBinding).


Field Summary
 ItemData item
          The new item value (with the same id)
 
Fields inherited from class equip.data.Event
metadata
 
Constructor Summary
UpdateEvent()
          Default no-arg constructor
 
Method Summary
 boolean _equals_helper(UpdateEvent c)
          Internal IDL-generated equality test helper
 boolean _matches_helper(UpdateEvent 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).
abstract  void initFromItem(ItemData item, GUID agentId, boolean local, boolean reliable)
          Initialisation helper; see EventMetadata for most arguments.
abstract  void initFromItem2(ItemData item, GUID agentId, boolean local, boolean reliable, int priority)
          Initialisation helper; see EventMetadata for most arguments.
 boolean matches(java.lang.Object c)
          Standard IDL-generated template match test.
 void readObject(ObjectInputStream in)
          Internal IDL-generated serialisation helper.
 void writeObject(ObjectOutputStream out)
          Internal IDL-generated serialisation helper.
 
Methods inherited from class equip.data.Event
_equals_helper, _matches_helper, initMetadata, initMetadata2
 
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
 

Field Detail

item

public ItemData item
The new item value (with the same id)

Constructor Detail

UpdateEvent

public UpdateEvent()
Default no-arg constructor

Method Detail

initFromItem2

public abstract void initFromItem2(ItemData item,
                                   GUID agentId,
                                   boolean local,
                                   boolean reliable,
                                   int priority)
Initialisation helper; see EventMetadata for most arguments. NB only UpdateEvent and MutateEvent encourage unreliable events


initFromItem

public abstract void initFromItem(ItemData item,
                                  GUID agentId,
                                  boolean local,
                                  boolean reliable)
Initialisation helper; see EventMetadata for most arguments. NB only UpdateEvent and MutateEvent encourage unreliable events


getModuleName

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

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

equals

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

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

_equals_helper

public boolean _equals_helper(UpdateEvent 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 Event
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(UpdateEvent 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 Event
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 Event
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException