|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--nl.tbdev.IR.IrStation
IrStation is the main class to instantiate when creating an IR application. It initializes all the services required by the minimal IrDA specification.
| Field Summary | |
private ConnectionCallbackInterface |
callback
|
private IasClient |
client
|
private LmMux |
mux
|
private byte |
newLsap
|
private IasServer |
server
|
private LmpStation |
station
|
private IasStore |
store
|
| Fields inherited from class java.lang.Thread |
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ |
| Constructor Summary | |
IrStation(Serial ser)
Constructor for IrStation. |
|
| Method Summary | |
void |
connectRequest(int address)
Start a new LAP connection to the given address. |
void |
disconnectRequest()
Disconnect current LAP connection All registered (MUX) clients will be notified |
boolean |
discoveryRequest(DiscoveryCallbackInterface dCb)
Start a new discovery (if the IR stack is not busy at the moment) |
byte |
getLsap()
Get a new lsap. |
void |
iasCreateClass(java.lang.String name)
Create a new class in the information store. |
void |
IasQueryGetValueByClass(IasQueryCallbackInterface caller,
java.lang.String className,
java.lang.String attrName)
Start an IAS Query for the given class and attribute. |
void |
iasRegisterAttr(java.lang.String cls,
java.lang.String name,
java.lang.Object attr)
Register a new attribute in the information store. |
void |
muxRegister(byte lsap,
LmpConnection conn)
register service at MUX |
void |
registerService(byte lsap,
ConnectionCallbackInterface service)
Register a service |
void |
run()
Start thread for IR stack. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private LmMux mux
private IasStore store
private IasServer server
private IasClient client
private LmpStation station
private byte newLsap
private ConnectionCallbackInterface callback
| Constructor Detail |
public IrStation(Serial ser)
ser - Serial port object for communication with the physical
IR adapter.| Method Detail |
public void run()
run in class java.lang.Thread
public void muxRegister(byte lsap,
LmpConnection conn)
lsap - Lsap for new serviceconn - Connection object
public void registerService(byte lsap,
ConnectionCallbackInterface service)
lsap - Lsap for the new serviceservice - Class implementing the ConnectionCallbackInterface.public void iasCreateClass(java.lang.String name)
name - Name of the new class
public void iasRegisterAttr(java.lang.String cls,
java.lang.String name,
java.lang.Object attr)
cls - Name of the class to store the attribute inname - Name of the attributeattr - The attribute value. The store can handle
String, byte[] and Integer objects.public byte getLsap()
public boolean discoveryRequest(DiscoveryCallbackInterface dCb)
dCb - Class implementing DiscoveryCallbackInterface to get
the results when the discovery cycle has completed.public void connectRequest(int address)
address - The address to connect to.public void disconnectRequest()
public void IasQueryGetValueByClass(IasQueryCallbackInterface caller,
java.lang.String className,
java.lang.String attrName)
caller - Class implementing IasQueryCallbackInterface for
notification upon completion of the requestclassName - Name of the IAS classattrName - Name of the attribute within the class.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||