BowlerKernel
GenericDevice.java
Go to the documentation of this file.
1 package com.neuronrobotics.sdk.genericdevice;
2 
3 import com.neuronrobotics.sdk.common.BowlerAbstractConnection;
4 import com.neuronrobotics.sdk.common.BowlerAbstractDevice;
5 import com.neuronrobotics.sdk.common.BowlerDatagram;
6 import com.neuronrobotics.sdk.common.BowlerMethod;
7 import com.neuronrobotics.sdk.common.InvalidConnectionException;
8 import com.neuronrobotics.sdk.common.MACAddress;
9 
10 // TODO: Auto-generated Javadoc
16 public class GenericDevice extends BowlerAbstractDevice {
17 
26  }
27 
28 
29  /* (non-Javadoc)
30  * @see com.neuronrobotics.sdk.common.BowlerAbstractDevice#isAvailable()
31  */
32  public boolean isAvailable() throws InvalidConnectionException {
33  return getConnection().isConnected();
34  }
35 
36 
37  /* (non-Javadoc)
38  * @see com.neuronrobotics.sdk.common.BowlerAbstractDevice#onAllResponse(com.neuronrobotics.sdk.common.BowlerDatagram)
39  */
40  public void onAllResponse(BowlerDatagram data) {
41  // TODO Auto-generated method stub
42 
43  }
44 
45 
46  /* (non-Javadoc)
47  * @see com.neuronrobotics.sdk.common.IBowlerDatagramListener#onAsyncResponse(com.neuronrobotics.sdk.common.BowlerDatagram)
48  */
49  public void onAsyncResponse(BowlerDatagram data) {
50  // TODO Auto-generated method stub
51 
52  }
53 
54 
55 
56 }
void setConnection(BowlerAbstractConnection connection)
GenericDevice(BowlerAbstractConnection connection)