public class MonteCarlo extends JavaExecutable
execInitializer
Constructor and Description |
---|
MonteCarlo() |
Modifier and Type | Method and Description |
---|---|
Serializable |
execute(TaskResult... results)
The content of this method will be executed once after being scheduled.
This may generate a result as an Object . |
void |
init(Map<String,Serializable> args)
Initialization default method for a java task.
|
getAllNodesURL, getErr, getGlobalSpace, getInputSpace, getIterationIndex, getLocalSpace, getMetadata, getNodesURL, getOut, getOutputSpace, getProgress, getReplicationIndex, getResultMap, getSignalAPI, getSynchronizationAPI, getThirdPartyCredential, getUserSpace, getVariables, initAPIs, initDataSpaces, initMetadata, initResultMap, internalInit, setProgress, setVariables
public void init(Map<String,Serializable> args)
JavaExecutable
By default, this method does automatic assignment between the value given in the arguments map
and the fields contained in your executable.
If the field type and the argument type are different and if the argument type is String
(i.e. for all jobs defined with XML descriptors), then a automatic mapping is tried.
Managed types are byte, short, int, long, boolean and the corresponding classes, other type
must be handle by user by overriding this method.
For example, if you set as argument the key="var", value="12" in the XML descriptor
just add an int (or Integer, long, Long) field named "var" in your executable.
The default JavaExecutable.init(java.util.Map)
method will store your arguments into the integer class field.
init
in class JavaExecutable
args
- a map containing the different parameter names and values given by the user task.JavaExecutable.init(Map)
public Serializable execute(TaskResult... results)
JavaExecutable
Object
. It can be whatever you want.execute
in class JavaExecutable
results
- the results (as a taskResult) from parent tasks.JavaExecutable.execute(org.ow2.proactive.scheduler.common.task.TaskResult[])