jwo.landserf.process
Class PolySurfaceThread

java.lang.Object
  extended byjava.lang.Thread
      extended byjwo.landserf.process.LSThread
          extended byjwo.landserf.process.PolySurfaceThread
All Implemented Interfaces:
JWInterruptionListener, Runnable

public class PolySurfaceThread
extends LSThread

Calculates a polynomial surface.

Version:
2.2, 5th December, 2004.
Author:
Jo Wood

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
PolySurfaceThread(GISFrame gisFrame, RasterMap origRast1, String polynomial)
          Creates a polynomical surface with the given expression.
 
Method Summary
 void doProcessing()
          Create the polynomial surface.
 
Methods inherited from class jwo.landserf.process.LSThread
checkStoppedThread, interruptionRequested, resetTimer, run, setErrorMessage, setMessage
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolySurfaceThread

public PolySurfaceThread(GISFrame gisFrame,
                         RasterMap origRast1,
                         String polynomial)
Creates a polynomical surface with the given expression. Note that the raster created by this thread will be set to be the primary raster so that the previous primary raster (origRast1) must be passed to this constructor as a separate parameter.

Parameters:
gisFrame - Frame in which to report results.
origRast1 - Original primary raster (contains z1 values).
polynomial - Polynomial to calculate.
Method Detail

doProcessing

public void doProcessing()
Create the polynomial surface. Note that unlike some of the classes in the jwo.landser.process package, this class does not create a new raster map, but instead 'fills' the existing primary raster stored in the GISFrame provided to the constructor. This is to make it easier to allow a polynomial surface to be created by default in a new GISFrame. To retrieve the polynomial surface, call GISFrame.getRaster1() after this process has completed.

Note that this method will be called automatically if this is run as a threaded process (e.g. myPolySurfaceThread.start()). Alternatively it can be called directly as a non-threaded process.

Specified by:
doProcessing in class LSThread
See Also:
GISFrame


Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005