Class CollectorUpdate

java.lang.Object
   |
   +----CollectorUpdate

public abstract class CollectorUpdate
extends Object
implements Serializable
Abstract base class for all data objects generated/collected by the DataCollector (and friends).

Version:
$Revision: 1.5 $, $Date: 2000/10/12 14:09:45 $
Author:
Mike Spengler

Variable Index

 o origin
Address of the node from which we obtained this object's data
 o time
Time (in milliseconds) when this object's data was collected.

Constructor Index

 o CollectorUpdate(NodeAddress)
Constructor for subclasses to initialize superclass fields.
 o CollectorUpdate(NodeAddress, long)
Constructor for subclasses to initialize superclass fields.

Method Index

 o getOrigin()
Gets the origin address for this update.
 o getTime()
Gets the time when this update was created.
 o process(CollectorNetwork)
Applies this update object to the network model.

Variables

 o origin
 protected NodeAddress origin
Address of the node from which we obtained this object's data

 o time
 protected long time
Time (in milliseconds) when this object's data was collected.

Constructors

 o CollectorUpdate
 public CollectorUpdate(NodeAddress addr,
                        long utime)
Constructor for subclasses to initialize superclass fields.

Parameters:
addr - the address of the node from which the data for this update was obtained
utime - the time when the update data was collected
 o CollectorUpdate
 public CollectorUpdate(NodeAddress addr)
Constructor for subclasses to initialize superclass fields.

Parameters:
addr - the address of the node from which the data for this update was obtained

Methods

 o process
 public abstract void process(CollectorNetwork net)
Applies this update object to the network model.

Parameters:
net - the network which this object updates
 o getOrigin
 public final NodeAddress getOrigin()
Gets the origin address for this update.

Returns:
the NodeAddress of the node originating this update
 o getTime
 public final long getTime()
Gets the time when this update was created.

Returns:
the time (in milliseconds) when this update was created