Package org.openl.rules.tbasic
Class Algorithm
-
- All Implemented Interfaces:
INamedThing,IMetaInfo,ITablePropertiesMethod,IMemberMetaInfo,IMethodCaller,IModuleInfo,Invokable,IOpenMember,IOpenMethod,IOpenMethodHeader
- Direct Known Subclasses:
AbstractAlgorithmWrapper
public class Algorithm extends AlgorithmFunction
Table Basic Algorithm component. It's runnable method inside OpenL Tablets infrastructure. Allows users to represent any algorithm in tables using simple TBasic syntax.
-
-
Field Summary
-
Fields inherited from interface org.openl.base.INamedThing
EMPTY, LONG, REGULAR, SHORT
-
Fields inherited from interface org.openl.types.IOpenMethod
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description Algorithm()Algorithm(IOpenMethodHeader header, AlgorithmBoundNode node)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AlgorithmcreateAlgorithm(IOpenMethodHeader header, AlgorithmBoundNode node)List<RuntimeOperation>getAlgorithmSteps()BindingDependenciesgetDependencies()protected Map<String,RuntimeOperation>getLabels()StringgetSourceUrl()Collection<AlgorithmSubroutineMethod>getSubroutines()protected IOpenClassgetThisClass()protected ObjectinnerInvoke(Object target, Object[] params, IRuntimeEnv env)voidsetAlgorithmSteps(List<RuntimeOperation> algorithmSteps)voidsetLabels(Map<String,RuntimeOperation> labels)voidsetThisClass(IOpenClass thisClass)-
Methods inherited from class org.openl.rules.method.ExecutableRulesMethod
clearForExecutionMode, getBoundNode, getInfo, getMethodProperties, getModuleName, getProperties, getSyntaxNode, initProperties, invoke, isAlias, isMethodCacheable, setBoundNode, setModuleName
-
Methods inherited from class org.openl.types.impl.ExecutableMethod
isConstructor, toString
-
Methods inherited from class org.openl.types.impl.AMethod
getDeclaringClass, getDisplayName, getHeader, getMethod, getName, getSignature, getType, isStatic
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openl.meta.IMetaInfo
getDisplayName
-
-
-
-
Constructor Detail
-
Algorithm
public Algorithm()
-
Algorithm
public Algorithm(IOpenMethodHeader header, AlgorithmBoundNode node)
-
-
Method Detail
-
createAlgorithm
public static Algorithm createAlgorithm(IOpenMethodHeader header, AlgorithmBoundNode node)
-
getSourceUrl
public String getSourceUrl()
-
innerInvoke
protected Object innerInvoke(Object target, Object[] params, IRuntimeEnv env)
- Specified by:
innerInvokein classExecutableRulesMethod
-
setAlgorithmSteps
public void setAlgorithmSteps(List<RuntimeOperation> algorithmSteps)
- Specified by:
setAlgorithmStepsin classAlgorithmFunction
-
setLabels
public void setLabels(Map<String,RuntimeOperation> labels)
- Specified by:
setLabelsin classAlgorithmFunction
-
setThisClass
public void setThisClass(IOpenClass thisClass)
-
getAlgorithmSteps
public List<RuntimeOperation> getAlgorithmSteps()
- Specified by:
getAlgorithmStepsin classAlgorithmFunction
-
getLabels
protected Map<String,RuntimeOperation> getLabels()
-
getThisClass
protected IOpenClass getThisClass()
-
getDependencies
public BindingDependencies getDependencies()
-
getSubroutines
public Collection<AlgorithmSubroutineMethod> getSubroutines()
-
-