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
-
origin
- Address of the node from which we obtained this object's data
-
time
- Time (in milliseconds) when this object's data was collected.
-
CollectorUpdate(NodeAddress)
- Constructor for subclasses to initialize superclass fields.
-
CollectorUpdate(NodeAddress, long)
- Constructor for subclasses to initialize superclass fields.
-
getOrigin()
- Gets the origin address for this update.
-
getTime()
- Gets the time when this update was created.
-
process(CollectorNetwork)
- Applies this update object to the network model.
origin
protected NodeAddress origin
- Address of the node from which we obtained this object's data
time
protected long time
- Time (in milliseconds) when this object's data was collected.
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
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
process
public abstract void process(CollectorNetwork net)
- Applies this update object to the network model.
- Parameters:
- net - the network which this object updates
getOrigin
public final NodeAddress getOrigin()
- Gets the origin address for this update.
- Returns:
- the
NodeAddress of the node originating
this update
getTime
public final long getTime()
- Gets the time when this update was created.
- Returns:
- the time (in milliseconds) when this update was created