edu.bonn.xulu.plugin.model.parallel.demo
Class AverageNeighborhoodParallelDemoModel
java.lang.Object
AbstractNamedObject
edu.bonn.xulu.model.AbstractXuluModel
edu.bonn.xulu.model.AbstractStepModel
appl.parallel.model.AbstractParallelStepModel
edu.bonn.xulu.plugin.model.parallel.demo.AverageNeighborhoodParallelDemoModel
- All Implemented Interfaces:
- ParallelStepModel, StepModel, XuluModel, Serializable
public class AverageNeighborhoodParallelDemoModel
- extends AbstractParallelStepModel
This class is a simple demo algorithm for the usage of Xulu / V. It
implements exactly the same functionality as the
serial counterpart
, but makes
heavy use of parallel computations. See
AverageNeighborhoodSerialDemoModel
for details about the model
semantics. The Model needs three resources, which are specified using the
AverageNeighborhoodContentManager:
- Input Grid (
inputGrid
): A grid with input values
- Output Grid (
outputGrid
): A grid where the output is
stored
- Number of steps (
steps
): the number of steps to
compute.
- Version:
- 1.0
- Author:
- Dominik Appl
- See Also:
AverageNeighborhoodContentManager
Methods inherited from class edu.bonn.xulu.model.AbstractXuluModel |
addModelListener, checkBreakingCommands, determineCaption, disposeModel, fireModelDisposed, fireModelEvent, fireModelInitialised, fireModelStarted, fireModelStopped, getContentManager, getEvents, getModelSpecificGUI, getResourceProvider, getStatusOut, initModel, isDisposed, isInitialised, isRunning, isStopped, performError, releaseAccess, removeModelListener, resetCaptions, setStatusOut, startModelling, stopModelling |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.bonn.xulu.model.XuluModel |
addModelListener, disposeModel, getContentManager, getEvents, getModelSpecificGUI, getResourceProvider, getStatusOut, initModel, isDisposed, isInitialised, isRunning, isStopped, performError, removeModelListener, setStatusOut, startModelling, stopModelling |
contManager
protected AverageNeighborhoodContentManager contManager
- Speichert den ContentManager fuer das Modell.
- See Also:
AverageNeighborhoodContentManager
AverageNeighborhoodParallelDemoModel
public AverageNeighborhoodParallelDemoModel()
- Creates a new instance.
performModelInit
public void performModelInit()
- Performes the initalization. In addition to the work in the serial version
here the
SPMDClientInterface
is retrieved. The neighborhood range is
set and the two grids are submitted to Xulu / V - control.
- Specified by:
performModelInit
in class AbstractXuluModel
performModelDispose
public void performModelDispose()
- frees read / write access
- Specified by:
performModelDispose
in class AbstractXuluModel
performModelStep
public void performModelStep(int stepNo)
- Executes one model step:
- Specified by:
performModelStep
in interface StepModel
- Specified by:
performModelStep
in class AbstractStepModel
- Parameters:
stepNo
- Nummer des Modellschritts (beginnend bei 1)