org.rosuda.javaGD
Class LocatorSync

java.lang.Object
  extended by org.rosuda.javaGD.LocatorSync

public class LocatorSync
extends Object


Constructor Summary
LocatorSync()
           
 
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
 

Constructor Detail

LocatorSync

public LocatorSync()
Method Detail

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().