|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.spot.peripheral.DriverRegistry
public class DriverRegistry
Acts as a registry for drivers that need to be aware of deep sleep. The Spot singleton holds a singleton of this class. Drivers that require to be informed/asked about deep sleep must be registered with the the DriverRegistry by calling add().
Method Summary | |
---|---|
void |
add(IDriver driver)
Add a driver to the registry. |
String[] |
getRegisteredDriverNames()
Display a list of all the registered drivers |
void |
remove(IDriver driver)
Remove a driver from the registry |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void add(IDriver driver)
add
in interface IDriverRegistry
driver
- The driver to add, which must not already be registeredpublic void remove(IDriver driver)
remove
in interface IDriverRegistry
driver
- The driver to remove, which must be registeredpublic String[] getRegisteredDriverNames()
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |