ostore.introspect
Class RecordEventReq

java.lang.Object
  |
  +--ostore.introspect.RecordEventReq
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class RecordEventReq
extends Object
implements QuickSerializable, QueueElementIF

Request that the local SDMBuilder model record an event.

Version:
$Id: RecordEventReq.java,v 1.2 2003/04/03 02:03:45 jeffpang Exp $
Author:
Jeff Pang

Nested Class Summary
static class RecordEventReq.EventId
          Simple class to identify event types.
 
Field Summary
 String model
           
 
Constructor Summary
RecordEventReq(InputBuffer buffer)
           
RecordEventReq(String model, QuickSerializable id, Time t)
          Record that an event identified by id occurred at time t.
RecordEventReq(String model, String fourcc, Time t)
          Record that an event of type fourcc occurred at time t.
 
Method Summary
 QuickSerializable id()
          Get the id of the event.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 Time time()
          Get the time the event occurred.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

model

public String model
Constructor Detail

RecordEventReq

public RecordEventReq(String model,
                      String fourcc,
                      Time t)
Record that an event of type fourcc occurred at time t.

Parameters:
model - the model this message is destined for
fourcc - a 4-character string that identifies the event type
t - the time the event occurred.

RecordEventReq

public RecordEventReq(String model,
                      QuickSerializable id,
                      Time t)
Record that an event identified by id occurred at time t.

NOTE: do not use this constructor along with the other one unless you know what you are doing.

Parameters:
model - the model this message is destined for
id - object that identifies the event. Note that all such objects must be Comparable, and must implement Object.equals(Object) and Object.hashCode() properly.
t - the time the event occurred.

RecordEventReq

public RecordEventReq(InputBuffer buffer)
               throws QSException
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to

id

public QuickSerializable id()
Get the id of the event.


time

public Time time()
Get the time the event occurred.


toString

public String toString()
Overrides:
toString in class Object