|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.flightdynamicsmodel.Simulation
public class Simulation
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.
| 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 |
|---|
private final AircraftModel _model
private final java.io.BufferedWriter _outfile
| Constructor Detail |
|---|
public Simulation(java.lang.String outputFilename)
throws java.io.IOException
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).
java.io.IOException - for any file error| Method Detail |
|---|
private void execute()
throws java.io.IOException
java.io.IOException - for any file errorpublic static void main(java.lang.String[] arguments)
arguments - - the fully qualified output filename of the data log to generate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||