NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

More Probs with FormularManager

Hi,

On Friday 11 May 2001 19:26, Curtis Rueden wrote:
> The formula code uses VisAD's ActionImpl logic to recompute formula
> outputs when the input values to the formula change.  ActionImpl
> creates a ThreadPool, which sits around after all its current tasks
> are completed, keeping the JVM alive.  You can fix this by calling
> ActionImpl.stopThreadPool() at the end of Eval's main method.

works fine, thanks.

> >2. The FormularManager doesn't work if the to be calculated formula
> > doesn't contain any variable. E.g.
>     http://palm.ssec.wisc.edu/FormulaVar.java

works fine now, too.


Another question:

How to use FormulaManager.remove() ?

I added 

  fman.remove("f") 

to the end of the example, but I get 

visad.formula.FormulaException: Cannot remove variable f because other 
variables depend on it!
        at visad.formula.FormulaManager.remove(FormulaManager.java:276)
        at FormulaManagerTest.main(FormulaManagerTest.java:61)

Which variables depend on f? (BTW, the same happens for remove("x")).

Timo
-- 
__.__________
 |lmo |homas


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: