|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IDeviceIO
Interface specifying the I/O interface between the (simulated) hardware and the palcom device/service code. The interface specifies operations to allow both event-based and polling I/O, in both directions.
| Method Summary | |
|---|---|
void |
addOutEventListener(OutEventListener l)
Register a listener for events from the palcom side. |
void |
close()
close and do cleanup. |
Event |
getInEvent()
non-blocking polling of input events |
Event |
getOutEvent()
non-blocking polling of input events |
void |
putInEvent(Event e)
send an event from the hardware to the palcom side code |
void |
putOutEvent(Event e)
Send an event to the hardware from the palcom side code. |
void |
removeInEventReceiver()
unregister the receiver for events from the hardware side. |
void |
removeOutEventListener(OutEventListener l)
unregister a listener for events from the palcom side. |
void |
setInEventReceiver(PalcomThread t)
register the receiver for events from the hardware side. |
Event |
waitInEvent()
blocking polling of input events |
Event |
waitOutEvent()
blocking polling of input events |
| Method Detail |
|---|
void putOutEvent(Event e)
Event getInEvent()
Event waitInEvent()
void setInEventReceiver(PalcomThread t)
void removeInEventReceiver()
void close()
void putInEvent(Event e)
void addOutEventListener(OutEventListener l)
void removeOutEventListener(OutEventListener l)
Event getOutEvent()
Event waitOutEvent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||