|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Driver
Provides a interface that all drivers must implement.
Drivers must provide an implementation of the getDriverName
function.
The setNextDriver
and getNextDriver
are typically
implemented by DriverAdapter
, which new drivers may extend.
Drivers
,
DriverAdapter
Method Summary | |
---|---|
String |
getDriverName(int n)
Returns the valid name(s) for each driver. |
Driver |
getNextDriver()
Used by the Driver registry (Drivers) to get the next Driver in the linked list of drivers. |
void |
setNextDriver(Driver d)
Used by the Driver registry (Drivers) to create a linked list of drivers. |
Method Detail |
---|
void setNextDriver(Driver d)
d
- A reference to the next driver in the list of registered driversDrivers
Driver getNextDriver()
Drivers
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |