|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlejos.nxt.addon.SensorSelector
public class SensorSelector
Factory for I2C sensor implementations. Tests what make of sensor is connected to a port and creates an instance of the appropriate class for a given sensor interface.
| Constructor Summary | |
|---|---|
SensorSelector()
|
|
| Method Summary | |
|---|---|
static Accelerometer |
createAccelerometer(I2CPort port)
|
static IRTransmitter |
createIRTransmitter(I2CPort port)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SensorSelector()
| Method Detail |
|---|
public static Accelerometer createAccelerometer(I2CPort port)
throws SensorSelectorException
SensorSelectorException
public static IRTransmitter createIRTransmitter(I2CPort port)
throws SensorSelectorException
SensorSelectorException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||