wrapper
Class Invocation
java.lang.Object
|
+--wrapper.Invocation
- final class Invocation
- extends java.lang.Object
- implements java.lang.Runnable, CPAMWrapperCallbacks
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
invParams
private ParamValueTable invParams
- The invocation specific settings of all the parameters, contains client specific
or default settings if no invocation specific settings exist.
invParamsStatus
private java.util.Map invParamsStatus
- The status of the invocation specific parameter settings. The keys are
the names of parameters, values are Integers:
2: holds client specific setting (set by SETPARAM or taken from default
when invocation was created),not ready for extraction by EXTRACT
3: holds invocation specific setting (set by INVOKE)
not ready for extraction by EXTRACT
4: value has been updated by computational (legacy) code, yet does not
contain yet final value, ready for progressive extraction
5: value has been finally set by computation (legacy) code,
computation for that parameter is complete
invParamsAccuracy
private java.util.Map invParamsAccuracy
- Contains the accuracy for all parameters. Is initialised to 0 when
invocation is created. Is it right not to distinguish between
inputs and outputs?
invocationProgress
private float invocationProgress
- Progress of the invocation. 0 signifies both that progress is
still 0 or that no invocation progress is available at all for this method.
invocationStatus
private int invocationStatus
- Status of the invocation. The following states are possible:
0: results need to be computed, legacy code has not started yet
1: results need to be computed, legacy code is computing
2: some results are ready to some accuracy, legacy code is computing
3: legacy code has aborted with error before all results done
4: results are all done, client can extract them, legacy code no more active
5: client has terminated invocation, legacy code is still working
6: client has terminated invocation, legacy code no more active
methodname
private java.lang.String methodname
parent
protected Connection parent
invocationId
private final java.lang.Integer invocationId
Invocation
Invocation(ParamValueTable clientParams,
java.lang.String methodname,
Connection connection,
java.lang.Integer invocationId)
getInvocationId
public java.lang.Integer getInvocationId()
- Specified by:
- getInvocationId in interface CPAMWrapperCallbacks
terminate
void terminate()
status
InvocationStatus status()
initParam
void initParam(java.lang.String name,
java.lang.Object value)
updateParam
public void updateParam(java.lang.String name,
java.lang.Object value,
boolean resultIsFinal,
float accuracy)
- Specified by:
- updateParam in interface CPAMWrapperCallbacks
getParam
public java.lang.Object getParam(java.lang.String name)
- Specified by:
- getParam in interface CPAMWrapperCallbacks
getParamStatus
ResultStatus getParamStatus(java.lang.String name)
containsParam
public boolean containsParam(java.lang.String name)
- Specified by:
- containsParam in interface CPAMWrapperCallbacks
updateInvocationProgress
public void updateInvocationProgress(float progress)
- Specified by:
- updateInvocationProgress in interface CPAMWrapperCallbacks
startExecution
void startExecution()
run
public void run()
- Specified by:
- run in interface java.lang.Runnable