com.neatech.climbplan.simulation
Class Simulation

java.lang.Object
  extended by com.neatech.climbplan.simulation.AVListImpl
      extended by com.neatech.climbplan.simulation.Simulation
All Implemented Interfaces:
AVList

public class Simulation
extends AVListImpl


Nested Class Summary
private static class Simulation.LinePanel
           
static class Simulation.MyMainAppPanel
           
 
Field Summary
 Action actionTimer
           
private  List<gov.nasa.worldwind.geom.Position> allPositions
           
private  gov.nasa.worldwind.render.BasicShapeAttributes attributes
           
private  List<gov.nasa.worldwind.render.SurfaceCircle> checkPoints
           
private  gov.nasa.worldwind.layers.RenderableLayer layer
           
private  gov.nasa.worldwind.render.Polyline line
           
private  SimulationControlPanel simulationControl
           
private  Timer simulationTimer
           
private  gov.nasa.worldwind.view.OrbitView view
           
private  List<gov.nasa.worldwind.geom.Position> visitedPositions
           
private  gov.nasa.worldwind.WorldWindow wwd
           
 
Fields inherited from class com.neatech.climbplan.simulation.AVListImpl
changeSupport
 
Constructor Summary
Simulation(gov.nasa.worldwind.WorldWindow wwd, gov.nasa.worldwind.layers.RenderableLayer lineLayer, gov.nasa.worldwind.render.Polyline polyline, SimulationModel model)
           
 
Method Summary
 void drawPath()
           
static JPanel getAppPanel(SimulationModel model)
           
 SimulationControlPanel getControlPanel()
           
 gov.nasa.worldwind.layers.RenderableLayer getLayer()
          Returns the layer holding the polyline being created.
 gov.nasa.worldwind.render.Polyline getLine()
          Returns the layer currently used to display the polyline.
 void pauseSimulation()
           
 void resumeSimulation()
           
 void startSimulation()
           
 void stopSimulation()
           
 
Methods inherited from class com.neatech.climbplan.simulation.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wwd

private gov.nasa.worldwind.WorldWindow wwd

view

private gov.nasa.worldwind.view.OrbitView view

allPositions

private List<gov.nasa.worldwind.geom.Position> allPositions

visitedPositions

private List<gov.nasa.worldwind.geom.Position> visitedPositions

simulationControl

private SimulationControlPanel simulationControl

simulationTimer

private Timer simulationTimer

line

private gov.nasa.worldwind.render.Polyline line

checkPoints

private List<gov.nasa.worldwind.render.SurfaceCircle> checkPoints

attributes

private gov.nasa.worldwind.render.BasicShapeAttributes attributes

layer

private gov.nasa.worldwind.layers.RenderableLayer layer

actionTimer

public Action actionTimer
Constructor Detail

Simulation

public Simulation(gov.nasa.worldwind.WorldWindow wwd,
                  gov.nasa.worldwind.layers.RenderableLayer lineLayer,
                  gov.nasa.worldwind.render.Polyline polyline,
                  SimulationModel model)
Method Detail

drawPath

public void drawPath()

startSimulation

public void startSimulation()

pauseSimulation

public void pauseSimulation()

resumeSimulation

public void resumeSimulation()

stopSimulation

public void stopSimulation()

getControlPanel

public SimulationControlPanel getControlPanel()

getLayer

public gov.nasa.worldwind.layers.RenderableLayer getLayer()
Returns the layer holding the polyline being created.

Returns:
the layer containing the polyline.

getLine

public gov.nasa.worldwind.render.Polyline getLine()
Returns the layer currently used to display the polyline.

Returns:
the layer holding the polyline.

getAppPanel

public static JPanel getAppPanel(SimulationModel model)