com.anwrt.hl.model
Class AwtEventContainer

java.lang.Object
  extended by com.anwrt.hl.model.AbstractContainer
      extended by com.anwrt.hl.model.AwtEventContainer

public class AwtEventContainer
extends AbstractContainer

Container to bufferize events before sending them to the M2MAgent.
creation 10 déc. 2009

Author:
David FRANCOIS

Constructor Summary
AwtEventContainer(java.lang.String relativePath)
          Create a new EventDataContainer.
 
Method Summary
 boolean addevent(int time, int type, int code, java.lang.Object data)
          Add event with given time, type code and data to the container.
 void empty()
          Clear all added events.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AwtEventContainer

public AwtEventContainer(java.lang.String relativePath)
Create a new EventDataContainer.

Parameters:
relativePath - Relative path of the container.
Method Detail

addevent

public boolean addevent(int time,
                        int type,
                        int code,
                        java.lang.Object data)
Add event with given time, type code and data to the container.

Parameters:
time - Event occurrence time.
type - Event type
code - Event code
data - Data associated to the event
Returns:
true if the event is added, false if no more event can be added.

empty

public void empty()
Clear all added events.

Specified by:
empty in class AbstractContainer