|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.cs.cisst.algorithms.optimize.fmg.FMGDefaultObserver
public class FMGDefaultObserver
The default observer for observables of class FMG.
One object of this class is by default registered as an observer of class FMG (the observable). This is used to implement method FMG.waitForResult() within the observer/observable approach.
Constructor Summary | |
---|---|
FMGDefaultObserver()
|
Method Summary | |
---|---|
BoundaryGrid |
getResult()
return the result of the FMG algorithm that was or will be delivered to this object by calling update(). |
void |
update(java.util.Observable o,
java.lang.Object arg)
will be called if the FMG algorithm (invoced via FMG.fmg()) has produced a result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FMGDefaultObserver()
Method Detail |
---|
public void update(java.util.Observable o, java.lang.Object arg)
The result of the FMG algorithm is stored inside this object and can be retrieved (from FMG.waitForResult()) via method getResult().
update
in interface java.util.Observer
o
- the oarg
- the argFMG.waitForResult()
public BoundaryGrid getResult()
If no result is available, this method blocks the current thread until a result becomes available.
Each result may be retrieved exactly once.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |