jwo.landserf.process
Class SurfParamThread
java.lang.Object
java.lang.Thread
jwo.landserf.process.LSThread
jwo.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
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 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 |
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.
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