Oracle Application Server Wireless Java API Reference
B14043-01


oracle.edge.driver
Interface EventDevice

All Superinterfaces:
Device, EdgeExtension
All Known Implementing Classes:
AbstractEventDevice

public interface EventDevice
extends Device

Event device interface to represent a symbolic device that is capable of receiving sensor events such as RFID reader etc.<br/> All sensor device driver should implement this interface.


Field Summary

 

Fields inherited from interface oracle.edge.common.EdgeExtension
DEVICE_DRIVER_TYPE, DISPATCHER_TYPE, FILTER_TYPE

 

Method Summary
 void addFilter(Filter NewFilter)
          Add new filter to this device.
 DeviceEventArray receive()
          Fetch collected event data as a DeviceEventArray object to EventProcessor.<br/> EventProcessor will spawn a separated thread to pull collected events from this device by repeatedly calling this method.
 void removeFilter(Filter ExistingFilter)
          Remove a filter from this device.

 

Methods inherited from interface oracle.edge.driver.Device
isAlive, processInstruction

 

Methods inherited from interface oracle.edge.common.EdgeExtension
destroy, getDescription, getName, getVersion, init, start, stop

 

Method Detail

addFilter

public void addFilter(Filter NewFilter)
Add new filter to this device. <p/>
Parameters:
NewFilter - a new filter to be added.

receive

public DeviceEventArray receive()
                         throws DeviceException
Fetch collected event data as a DeviceEventArray object to EventProcessor.<br/> EventProcessor will spawn a separated thread to pull collected events from this device by repeatedly calling this method. Each time when EventProcess receives the fetched events, it will send them to edge client through its event dispatcher.
Returns:
DeviceEventArray array of device events.
Throws:
DeviceException - exception thrown upon the failure of delivering events.

removeFilter

public void removeFilter(Filter ExistingFilter)
Remove a filter from this device. <p/>
Parameters:
ExistingFilter - an existing filter to be removed.

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.