jwo.landserf.process
Class SurfParamThread

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

public class SurfParamThread
extends LSThread

Calculates a given surface parameter and adds the result back to the given GIS frame.

Version:
2.2, 26th February, 2005.
Author:
Jo Wood

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SurfParamThread(GISFrame gisFrame, SurfParam sp)
          Calculates a given surface parameter.
 
Method Summary
 void doProcessing()
          Creates a raster containing the surface parameter values.
 RasterMap getParamMap()
          Retrieves the newly created raster map containing the selected surface parameter values.
 
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

SurfParamThread

public SurfParamThread(GISFrame gisFrame,
                       SurfParam sp)
Calculates a given surface parameter.

Parameters:
gisFrame - GIS frame containing raster to process.
sp - Surface parameter to calculate.
Method Detail

doProcessing

public void doProcessing()
Creates a raster containing the surface parameter values. The newly created raster containing the parameter values (e.g. slope map) is added to the GISFrame provided to the constructor as a secondary raster. This can be retrieved directly via this class's method getParamMap(), or by calling gisFrame.getRaster2();.

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

Specified by:
doProcessing in class LSThread
See Also:
GISFrame

getParamMap

public RasterMap getParamMap()
Retrieves the newly created raster map containing the selected surface parameter values.

Returns:
New surface parameter map, or null if process yet to take place.


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