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

java.lang.Object
  extended by AbstractNamedObject
      extended by edu.bonn.xulu.model.AbstractXuluModel
          extended by edu.bonn.xulu.model.AbstractStepModel
              extended by 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.

  1. Input Grid (inputGrid): A grid with input values
  2. Output Grid (outputGrid): A grid where the output is stored
  3. Number of steps (steps): the number of steps to compute.

Version:
1.0
Author:
Dominik Appl
See Also:
AverageNeighborhoodContentManager

Field Summary
protected  AverageNeighborhoodContentManager contManager
          Speichert den ContentManager fuer das Modell.
 
Fields inherited from class edu.bonn.xulu.model.AbstractStepModel
stepCount
 
Fields inherited from class edu.bonn.xulu.model.AbstractXuluModel
disposed, events, initialised, listeners, modelResourceProvider, running, statusOut, stopped
 
Constructor Summary
AverageNeighborhoodSerialDemoModel()
          Erzeugt eine neue Instanz des Modells.
 
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.AbstractStepModel
fireModelStepFinished, fireModelStepStarted, getStepCount, performModelStart
 
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
 

Field Detail

contManager

protected AverageNeighborhoodContentManager contManager
Speichert den ContentManager fuer das Modell.

See Also:
AverageNeighborhoodContentManager
Constructor Detail

AverageNeighborhoodSerialDemoModel

public AverageNeighborhoodSerialDemoModel()
Erzeugt eine neue Instanz des Modells.

Method Detail

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!)