com.neatech.climbplan.activityplanner
Class ActivityPlanner

java.lang.Object
  extended by java.lang.Thread
      extended by com.neatech.climbplan.activityplanner.ActivityPlanner
All Implemented Interfaces:
Runnable

public class ActivityPlanner
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
private  List<ActionListener> actionListeners
           
private  String command
           
private  List<Node> path
           
private  AStarSearchAlgorithm searchAlgorithm
           
private  int step
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ActivityPlanner(int activityPreference, org.geotools.coverage.grid.GridCoverage2D heightMap, ShapeInformation shapeInformation, List<GridPoint> checkPoints, int resolution)
           
 
Method Summary
 void addActionListener(ActionListener actionListener)
           
 void addChangeListener(ChangeListener changeListener)
           
 List<Node> getPath()
           
 double getProgress()
           
private  void notifyActionListeners()
           
 void removeActionListener(ActionListener actionListener)
           
 void removeChangeListener(ChangeListener changeListener)
           
 void run()
           
 void setActionCommand(String command)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

actionListeners

private List<ActionListener> actionListeners

command

private String command

searchAlgorithm

private AStarSearchAlgorithm searchAlgorithm

path

private List<Node> path

step

private int step
Constructor Detail

ActivityPlanner

public ActivityPlanner(int activityPreference,
                       org.geotools.coverage.grid.GridCoverage2D heightMap,
                       ShapeInformation shapeInformation,
                       List<GridPoint> checkPoints,
                       int resolution)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

notifyActionListeners

private void notifyActionListeners()

setActionCommand

public void setActionCommand(String command)

addActionListener

public void addActionListener(ActionListener actionListener)

removeActionListener

public void removeActionListener(ActionListener actionListener)

addChangeListener

public void addChangeListener(ChangeListener changeListener)

removeChangeListener

public void removeChangeListener(ChangeListener changeListener)

getProgress

public double getProgress()

getPath

public final List<Node> getPath()