public class FormulaManager extends Object
| Constructor and Description |
|---|
FormulaManager(String[] binOps,
int[] binPrec,
String[] binMethods,
String[] unaryOps,
int[] unaryPrec,
String[] unaryMethods,
String[] functions,
String[] funcMethods,
int implicitPrec,
String[] implicitMethods,
String preParseMethod)
construct a new FormulaManager object
|
| Modifier and Type | Method and Description |
|---|---|
void |
assignFormula(String name,
String formula)
assign a formula to a variable
|
boolean |
canBeRemoved(String name)
check whether it is safe to remove a variable from the database
|
void |
createVar(String name,
ThingReference tr)
add a variable to the database that uses tr as its ThingReference
|
boolean |
exists(String name)
check whether a given variable is currently in the database
|
String[] |
getErrors(String name)
get the current list of errors that occurred when evaluating
"name" and clear the list
|
String |
getFormula(String name)
get a variable's current formula
|
ThingReference |
getReference(String name)
get a variable's associated ThingReference
|
Thing |
getThing(String name)
get a variable's current value
|
void |
remove(String name)
remove a variable from the database
|
void |
setReference(String name,
ThingReference tr)
set a variable's ThingReference
|
void |
setTextRef(String name,
ThingReference textRef)
set a variable to auto-update its formula based on a Text object
referenced by a ThingReference (useful for remote formula updates)
|
void |
setThing(String name,
Thing t)
set a variable's value directly
|
void |
waitForFormula(String name)
blocks until this variable's formula is finished computing
|
public FormulaManager(String[] binOps, int[] binPrec, String[] binMethods, String[] unaryOps, int[] unaryPrec, String[] unaryMethods, String[] functions, String[] funcMethods, int implicitPrec, String[] implicitMethods, String preParseMethod) throws FormulaException
FormulaExceptionpublic void createVar(String name, ThingReference tr) throws VisADException
VisADExceptionpublic void assignFormula(String name, String formula) throws VisADException
VisADExceptionpublic void waitForFormula(String name) throws VisADException
VisADExceptionpublic void setTextRef(String name, ThingReference textRef) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic String[] getErrors(String name)
public boolean canBeRemoved(String name) throws FormulaException
FormulaExceptionpublic boolean exists(String name)
public void remove(String name) throws FormulaException
FormulaExceptionpublic void setThing(String name, Thing t) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic void setReference(String name, ThingReference tr) throws VisADException
VisADExceptionpublic Thing getThing(String name) throws FormulaException
FormulaExceptionpublic ThingReference getReference(String name) throws FormulaException
FormulaExceptionpublic String getFormula(String name) throws FormulaException
FormulaExceptionCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.