|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.device.DeviceIO
public class DeviceIO
This class implements the sending of I/O events between the "hardware" and "Palcom" domains. If polling is required, this class should be extended and get{In|Out}Event and/or wait{In|Out}Event overridden. The implementations in this class throws an Error.
| Constructor Summary | |
|---|---|
DeviceIO(PalcomScheduler scheduler)
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceIO(PalcomScheduler scheduler)
| Method Detail |
|---|
public void close()
IDeviceIO
close in interface IDeviceIOpublic void putInEvent(Event e)
IDeviceIO
putInEvent in interface IDeviceIOpublic void putOutEvent(Event e)
IDeviceIO
putOutEvent in interface IDeviceIOpublic void setInEventReceiver(PalcomThread t)
IDeviceIO
setInEventReceiver in interface IDeviceIOpublic void removeInEventReceiver()
IDeviceIO
removeInEventReceiver in interface IDeviceIOpublic void addOutEventListener(OutEventListener l)
IDeviceIO
addOutEventListener in interface IDeviceIOpublic void removeOutEventListener(OutEventListener l)
IDeviceIO
removeOutEventListener in interface IDeviceIOpublic Event getInEvent()
IDeviceIO
getInEvent in interface IDeviceIOpublic Event waitInEvent()
IDeviceIO
waitInEvent in interface IDeviceIOpublic Event getOutEvent()
IDeviceIO
getOutEvent in interface IDeviceIOpublic Event waitOutEvent()
IDeviceIO
waitOutEvent in interface IDeviceIO
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||