org.eclipse.ohf.stem.ui.ge
Class GEJob

java.lang.Object
  extended by java.lang.Thread
      extended by org.eclipse.ohf.stem.ui.ge.GEJob
All Implemented Interfaces:
java.lang.Runnable

public class GEJob
extends java.lang.Thread

Do some of the work in the background This is called by GEInterface to take the collected information about the Simulation and write it as a KML file.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GEJob(java.lang.String name)
          Construct a subclass of Job that will do the longrunning part of the interface in the background.
 
Method Summary
 void generateKML(java.lang.String fn, StemKml stemKml, java.util.Map<java.lang.String,GEData> stemMap, Aspect aspect, long cycle, boolean launch, boolean rename)
          Build the .kml file than will be sent to GoogleEarth We will recieve the information from GEInterface and then schedule the job to be run.
 void run()
          run method for the new Thread It will write the KML file for GoogleEarth and perhaps launch it to GE.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GEJob

public GEJob(java.lang.String name)
Construct a subclass of Job that will do the longrunning part of the interface in the background.

Parameters:
name - Name associated with job
Method Detail

run

public void run()
run method for the new Thread It will write the KML file for GoogleEarth and perhaps launch it to GE.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

generateKML

public void generateKML(java.lang.String fn,
                        StemKml stemKml,
                        java.util.Map<java.lang.String,GEData> stemMap,
                        Aspect aspect,
                        long cycle,
                        boolean launch,
                        boolean rename)
Build the .kml file than will be sent to GoogleEarth We will recieve the information from GEInterface and then schedule the job to be run.

Parameters:
fn - File where we write the kml
stemKml - Object containing info about where and how to generate the KML.
stemMap - Map of Polygons
aspect - SEIR Type to be displayed
cycle - current cycle number
launch - true if file should be sent to GoogleEarth
rename - true if file should be written then renamed