edu.bonn.xulu.plugin.model.parallel.demo
Class AVNTask

java.lang.Object
  extended by appl.parallel.spmd.AbstractSPMDTask
      extended by 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

Field Summary
 
Fields inherited from class appl.parallel.spmd.AbstractSPMDTask
serverController
 
Constructor Summary
AVNTask()
           
 
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 appl.parallel.spmd.AbstractSPMDTask
getAdvancedSPMDServerController, getSPMDServerController, incomingUpdate, initialize, isInitialized, outgoingUpdate, setSPMDServerController, supportsMultiThreading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVNTask

public AVNTask()
Method Detail

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)