visad.formula
Class FormulaUtil
- java.lang.Object
-
- visad.formula.FormulaUtil
-
public class FormulaUtil extends java.lang.ObjectContains a variety of useful methods related to the visad.formula package.
-
-
Constructor Summary
Constructors Constructor and Description FormulaUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static Databrackets(Field f, Real r)evaluate the bracket function; e.g., A1[5] or A1[A2]static FormulaManagercreateStandardManager()create a FormulaManager object with many commonly desired featuresstatic Dataderive(Function f, VRealType rt)evaluate the derive functionstatic Datadot(TupleIface t, Real r)evaluate the dot operatorstatic Dataextract(Field f, Real r)evaluate the extract functionstatic Fieldfactor(FieldImpl f, VRealType rt)evaluate the domainFactor functionstatic Dataimplicit(Function f, Real r)evaluate implicit function syntax; e.g., A1(5) or A1(A2)static java.lang.ObjectinvokeMethod(java.lang.reflect.Method m, java.lang.Object[] o)attempt to invoke a Method with the given Object arguments, performing static method auto-detection and automatic array compressionstatic Datalink(VMethod m, java.lang.Object[] o)evaluate the link functionstatic java.lang.StringpreParse(java.lang.String f, FormulaManager fm)do some pre-computation parsing to a formulastatic java.lang.reflect.Method[]stringsToMethods(java.lang.String[] strings)convert an array of strings of the form "package.Class.method(Class, Class, ...)" to an array of Method objects
-
-
-
Method Detail
-
createStandardManager
public static FormulaManager createStandardManager()
create a FormulaManager object with many commonly desired features
-
dot
public static Data dot(TupleIface t, Real r)
evaluate the dot operator
-
link
public static Data link(VMethod m, java.lang.Object[] o) throws VisADException
evaluate the link function- Throws:
VisADException
-
implicit
public static Data implicit(Function f, Real r)
evaluate implicit function syntax; e.g., A1(5) or A1(A2)
-
brackets
public static Data brackets(Field f, Real r)
evaluate the bracket function; e.g., A1[5] or A1[A2]
-
preParse
public static java.lang.String preParse(java.lang.String f, FormulaManager fm)do some pre-computation parsing to a formula
-
stringsToMethods
public static java.lang.reflect.Method[] stringsToMethods(java.lang.String[] strings)
convert an array of strings of the form "package.Class.method(Class, Class, ...)" to an array of Method objects
-
invokeMethod
public static java.lang.Object invokeMethod(java.lang.reflect.Method m, java.lang.Object[] o) throws java.lang.IllegalAccessException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetExceptionattempt to invoke a Method with the given Object arguments, performing static method auto-detection and automatic array compression- Throws:
java.lang.IllegalAccessExceptionjava.lang.IllegalArgumentExceptionjava.lang.reflect.InvocationTargetException
-
-
DMelt 3.0 © DataMelt by jWork.ORG