|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object device.Device device.RobotDevice device.Blobfinder
public class Blobfinder
A Blobfinder device.
Field Summary | |
---|---|
(package private) java.util.concurrent.CopyOnWriteArrayList<BlobfinderBlob> |
blobs
Blob memory |
(package private) int |
count
Current blob count in view. |
(package private) java.util.concurrent.CopyOnWriteArrayList<IBlobfinderListener> |
newBlobListeners
Callback listeners |
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 | |
---|---|
Blobfinder(DeviceNode roboClient,
Device device)
Creates a Blobfinder device object. |
Method Summary | |
---|---|
boolean |
addBlobListener(IBlobfinderListener cb)
Add a new listener to this device. |
java.util.concurrent.CopyOnWriteArrayList<BlobfinderBlob> |
getBlobs()
|
int |
getCount()
|
(package private) void |
notifiyListeners(BlobfinderBlob newBlob)
|
boolean |
removeBlobListener(IBlobfinderListener cb)
Remove a listener to this device. |
void |
shutdown()
Clear internal structures. |
protected void |
update()
Update the current blob count and blob information. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
int count
java.util.concurrent.CopyOnWriteArrayList<BlobfinderBlob> blobs
java.util.concurrent.CopyOnWriteArrayList<IBlobfinderListener> newBlobListeners
Constructor Detail |
---|
public Blobfinder(DeviceNode roboClient, Device device)
roboClient
- The DeviceNode to which this device is connected.device
- This device' information.Method Detail |
---|
protected void update()
update
in class Device
public java.util.concurrent.CopyOnWriteArrayList<BlobfinderBlob> getBlobs()
public int getCount()
void notifiyListeners(BlobfinderBlob newBlob)
public boolean addBlobListener(IBlobfinderListener cb)
cb
- The callback method.
CopyOnWriteArrayList.addIfAbsent(Object)
public boolean removeBlobListener(IBlobfinderListener cb)
cb
- The callback method.
CopyOnWriteArrayList.remove(Object)
public void shutdown()
shutdown
in interface IDevice
shutdown
in class Device
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |