edu.bonn.xulu.plugin.model.parallel.demo
Class AVNTunedTask
java.lang.Object
appl.parallel.spmd.AbstractSPMDTask
edu.bonn.xulu.plugin.model.parallel.demo.AVNTunedTask
- All Implemented Interfaces:
- SPMDTask, Serializable
public class AVNTunedTask
- 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 enabled!
Preloading is also used, but the effect is in this case very small (because data is
only loaded once and not every step).
- Author:
- Dominik Appl
- See Also:
SPMDTask
,
AverageNeighborhoodParallelDemoModel
,
AVNTuned
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AVNTunedTask
public AVNTunedTask()
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)
supportsMultiThreading
public boolean supportsMultiThreading()
- Description copied from class:
AbstractSPMDTask
- returns false. Override this method to enable multithreading
- Specified by:
supportsMultiThreading
in interface SPMDTask
- Overrides:
supportsMultiThreading
in class AbstractSPMDTask
- Returns:
- whether multithreading can be used by this task
- See Also:
SPMDTask.supportsMultiThreading()