public interface SyncdDevice
Modifier and Type | Method and Description |
---|---|
void |
blockUntilReady()
This method should block until it is ready for the event loop to run, Once this method has
returned, subsequent calls should return immediately until startBlockingWork() has been called.
|
RobotUsbModule |
getOwner()
Retrieves the owning module of this sync'd device.
|
boolean |
hasShutdownAbnormally()
Has this device shutdown abnormally? Note that even if this method returns true that
a close() will still be necessary to fully clean up associated resources.
|
void |
setOwner(RobotUsbModule owner)
Records the owning module of this sync'd device.
|
void |
startBlockingWork()
This method will be called to let the sync'd device know that it's ok to enter a blocking
state.
|
void blockUntilReady() throws RobotCoreException, java.lang.InterruptedException
java.lang.InterruptedException
RobotCoreException
void startBlockingWork()
Before this method returns, the sync'd device should put blockUntilReady() into a blocking state. blockUntilReady() should remain in a blocking state until the device is ready for the event loop to run. Once blockUntilReady() returns, it should not block again until startBlockingWork() has been called.
boolean hasShutdownAbnormally()
void setOwner(RobotUsbModule owner)
getOwner()
RobotUsbModule getOwner()
RobotUsbModule
which is the owner of this devicesetOwner(RobotUsbModule)