edu.bonn.xulu.plugin.model.parallel.demo
Class AverageNeighborhoodSerialDemoModel
java.lang.Object
AbstractNamedObject
edu.bonn.xulu.model.AbstractXuluModel
edu.bonn.xulu.model.AbstractStepModel
edu.bonn.xulu.plugin.model.parallel.demo.AverageNeighborhoodSerialDemoModel
- All Implemented Interfaces:
- StepModel, XuluModel
public class AverageNeighborhoodSerialDemoModel
- extends AbstractStepModel
This very simple model looks at every grid cell and takes the average
over a the surrounding cells in a specified neighborhood. It was implemented
as demonstration of the Xulu / V functionality. You can see the parallel version
of this model in AverageNeighborhoodParallelDemoModel
and also a tuned
version using late-merging support in AVNTuned
.
- 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
Method Summary |
void |
performModelDispose()
like in every model: frees the resources |
void |
performModelInit()
Initializes the model. |
void |
performModelStep(int stepNo)
This very simple model looks at every grid cell and takes the average
over a the surrounding cells in a specified neighborhood. |
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
AverageNeighborhoodSerialDemoModel
public AverageNeighborhoodSerialDemoModel()
- Erzeugt eine neue Instanz des Modells.
performModelInit
public void performModelInit()
- Initializes the model. Like in the init method of every
XuluModel
the resources are initalized.
- Specified by:
performModelInit
in class AbstractXuluModel
performModelDispose
public void performModelDispose()
- like in every model: frees the resources
- Specified by:
performModelDispose
in class AbstractXuluModel
performModelStep
public void performModelStep(int stepNo)
- This very simple model looks at every grid cell and takes the average
over a the surrounding cells in a specified neighborhood.
- Specified by:
performModelStep
in interface StepModel
- Specified by:
performModelStep
in class AbstractStepModel
- Parameters:
stepNo
- zu modellierender Schritt (beginnend bei 1!)