|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object device.Device device.RobotDevice device.Ranger
public class Ranger
A Ranger device. It has a number of ranges that return the distance to the next obstacle.
Field Summary | |
---|---|
(package private) int |
count
|
(package private) double[] |
ranges
|
Fields inherited from class device.RobotDevice |
---|
device, deviceNode, logger |
Fields inherited from class device.Device |
---|
deviceList, host, id, index, isRunning, isThreaded, port, sleeptime, thread |
Constructor Summary | |
---|---|
Ranger(DeviceNode roboClient,
Device device)
Creates a Ranger device. |
Method Summary | |
---|---|
int |
getCount()
|
double[] |
getRanges()
|
protected void |
update()
Will check for new ranges If not yet ready will put current thread to sleep |
Methods inherited from class device.RobotDevice |
---|
getDevice, getDeviceNode, getLogger, toString |
Methods inherited from class device.Device |
---|
equals, getDevice, getDeviceIterator, getDeviceList, getDeviceListArray, getHost, getId, getIndex, getPort, getSleepTime, getThreadName, isInList, isRunning, isSupported, isThreaded, matches, matchesList, run, runThreaded, setDeviceList, setHost, setName, setPort, setSleepTime, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
double[] ranges
int count
Constructor Detail |
---|
public Ranger(DeviceNode roboClient, Device device)
roboClient
- The device node containing the ranger.device
- The device properties.Method Detail |
---|
protected void update()
update
in class Device
public double[] getRanges()
public int getCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |