uavsim.flightdynamicsmodel
Class Simulation

java.lang.Object
  extended by uavsim.flightdynamicsmodel.Simulation

public class Simulation
extends java.lang.Object

Defines a simple stub for executing the flight-dynamics model. It creates and configures the aircraft to appear in the air at a particular location with a particular azimuth and airspeed. The pitch and roll are initially neutral.

Author:
Dan Tappan [18.08.11]

Field Summary
private  AircraftModel _model
          the flight-dynamics model
private  java.io.BufferedWriter _outfile
          the file handle to the exported data
 
Constructor Summary
Simulation(java.lang.String outputFilename)
          Creates a simulation with the hardcoded initial conditions.
 
Method Summary
private  void execute()
          Execute the simulation.
static void main(java.lang.String[] arguments)
          Runs a basic simulation of the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_model

private final AircraftModel _model
the flight-dynamics model


_outfile

private final java.io.BufferedWriter _outfile
the file handle to the exported data

Constructor Detail

Simulation

public Simulation(java.lang.String outputFilename)
           throws java.io.IOException
Creates a simulation with the hardcoded initial conditions. There should be no reason to change these.

Parameters:
outputFilename - - the fully qualified filename of the output file for the data log. The path format is dependent on the operating system; e.g., for Linux /home/dtappan/output.dat and for Windows C:\\output.dat (C:/output.dat also resolves correctly).
Throws:
java.io.IOException - for any file error
Method Detail

execute

private void execute()
              throws java.io.IOException
Execute the simulation. Modify the processing here however you want, unless otherwise indicated.

Throws:
java.io.IOException - for any file error

main

public static void main(java.lang.String[] arguments)
Runs a basic simulation of the model.

Parameters:
arguments - - the fully qualified output filename of the data log to generate