wt.rule.algorithm
Class RuleAlgorithmHelper
java.lang.Object
wt.rule.algorithm.RuleAlgorithmHelper
- public class RuleAlgorithmHelper
- extends Object
This class provides utility methods that are used to work with algoritms.
Supported API: false
Extendable: false
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
RuleAlgorithmHelper
public RuleAlgorithmHelper()
calculate
public static Object calculate(String className,
Object[] args,
WTContainerRef container)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
WTException
- Invoke the algorithm with the spedified
className
using
specified args
.
Supported API: false
- Parameters:
className
- The fully qualified class name of the algorithm.args
- the arguments for the algorithmcontainer
- the container to use for object lookups
- Returns:
- Object
- Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
WTException
calculate
public static Object calculate(Class algoClass,
Object[] args,
WTContainerRef container)
throws InstantiationException,
IllegalAccessException,
WTException
- Invoke the algorithm defined by the spedified
algoClass
using specified args
.
Supported API: false
- Parameters:
algoClass
- the algorithm class to invokeargs
- the arguments for the algorithmcontainer
- the container to use for object lookups
- Returns:
- Object
- Throws:
InstantiationException
IllegalAccessException
WTException