Oracle Application Server Wireless Java API Reference
B14043-01


oracle.edge.common
Class DeviceEventArray

java.lang.Object
  extended byoracle.edge.common.DeviceEventArray


public class DeviceEventArray
extends java.lang.Object

Represents a resizable array of events collected from each device.


Field Summary
int m_eventNo
Event[] m_events

Constructor Summary
DeviceEventArray(int AllocCapacity)
A constructor with specified intial allocation capacity.

Method Summary
void AddEvent(Event CurEvent)
Append an event to this array.
void AddEvents(Event[] CurEvents)
Append an array of new events into this array.
void AssignEvent(Event CurEvent)
Empty this array and then add a new event to this array.
void AssignEvents(Event[] CurEvents)
Empty this array and then add a new array of events to this array.
void clear()
Direct cleanup on everything.
boolean isEmpty()
Check whether current device event array is empty or not.
void output(java.io.PrintStream PS)
Output all stored events to passed PrintStream <p/>

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

m_eventNo

public int m_eventNo

m_events

public Event[] m_events

Constructor Detail

DeviceEventArray

public DeviceEventArray(int AllocCapacity)
A constructor with specified intial allocation capacity. <p/>
Parameters:
AllocCapacity - initial allocation capacity

Method Detail

AddEvent

public void AddEvent(Event CurEvent)
Append an event to this array. <p/>
Parameters:
CurEvent - a new event to append.

AddEvents

public void AddEvents(Event[] CurEvents)
Append an array of new events into this array. <p/>
Parameters:
CurEvents - an array of new events

AssignEvent

public void AssignEvent(Event CurEvent)
Empty this array and then add a new event to this array. <p/>
Parameters:
CurEvent - a new event

AssignEvents

public void AssignEvents(Event[] CurEvents)
Empty this array and then add a new array of events to this array. <p/>
Parameters:
CurEvents - a new event

clear

public void clear()
Direct cleanup on everything.

isEmpty

public boolean isEmpty()
Check whether current device event array is empty or not.
Returns:
boolean indicates whether current device event array is empty or not.

output

public void output(java.io.PrintStream PS)
Output all stored events to passed PrintStream <p/>
Parameters:
PS -

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.