edu.bonn.xulu.plugin.model.parallel.demo
Class AVNTask
java.lang.Object
appl.parallel.spmd.AbstractSPMDTask
edu.bonn.xulu.plugin.model.parallel.demo.AVNTask
- All Implemented Interfaces:
- SPMDTask, Serializable
public class AVNTask
- extends AbstractSPMDTask
This is the SPMDTask
which will be executed on server side by the
parallel model AverageNeighborhoodParallelDemoModel
. There are only
very little changes to the serial code you have seen in
AverageNeighborhoodSerialDemoModel
. Basically you have to retrieve
the partitions you have submitted to Xulu / V control on client side and use
the copy paste the sequential code. One important change has to be made
though: you now must iterate over the so called calculation area of the
partition. This becomes even more important when use multithreading to
calculate on many calculation areas at once.
Multithreading is disabled!
- Author:
- Dominik Appl
- See Also:
SPMDTask
,
AverageNeighborhoodParallelDemoModel
,
AVNTuned
,
Serialized Form
Method Summary |
void |
init()
Use this method to implement if you want t |
Object |
run(Object... parameters)
Starts the task with the given parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AVNTask
public AVNTask()
init
public void init()
- Description copied from class:
AbstractSPMDTask
- Use this method to implement if you want t
- Specified by:
init
in class AbstractSPMDTask
run
public Object run(Object... parameters)
- Description copied from interface:
SPMDTask
- Starts the task with the given parameters. Overwrite this method to
implement the task.
- Specified by:
run
in interface SPMDTask
- Specified by:
run
in class AbstractSPMDTask
- Returns:
- the result of the task computation (if any)