|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.system.DriverAdapter
public abstract class DriverAdapter
The base class that new drivers may extend. By extending this class, new drivers can be registered with the Drivers system.
Drivers
Field Summary | |
---|---|
protected Driver |
m_nextDriver
A reference to the next driver in the list of drivers. |
Constructor Summary | |
---|---|
DriverAdapter()
|
Method Summary | |
---|---|
abstract String |
getDriverName(int n)
Returns the valid name(s) for each driver. |
Driver |
getNextDriver()
Get the next driver in the list of registered drivers. |
void |
setNextDriver(Driver driver)
Sets the next driver in the list of registered drivers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Driver m_nextDriver
Constructor Detail |
---|
public DriverAdapter()
Method Detail |
---|
public void setNextDriver(Driver driver)
setNextDriver
in interface Driver
driver
- A reference to the next driver in the list of registered driversDrivers
public Driver getNextDriver()
getNextDriver
in interface Driver
Drivers
public abstract String getDriverName(int n)
getDriverName
returns a
string for n=0 to n=N-1, and returns null for all other values of n.
A driver may return multiple names because it provides the default implementation for a specific name, such as associating "flash" by default to the external flash, or "extflash" if an application specifically asserts it requires the external flash resources. Some drivers may return only a single valid name, such as "intflash" for the internal flash.
getDriverName
in interface Driver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |