org.rosuda.javaGD
Class LocatorSync
java.lang.Object
org.rosuda.javaGD.LocatorSync
public class LocatorSync
- extends Object
|
Method Summary |
void |
triggerAction(double[] result)
this methods awakens #waitForNotification. |
double[] |
waitForAction()
this internal method waits until #triggerNotification is called by another thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocatorSync
public LocatorSync()
waitForAction
public double[] waitForAction()
- this internal method waits until
#triggerNotification is called by another thread. It is implemented by using Object.wait() and checking notificationArrived.
triggerAction
public void triggerAction(double[] result)
- this methods awakens
#waitForNotification. It is implemented by setting notificationArrived to true, setting #lastNotificationMessage to the passed message and finally calling Object.notifyAll().