|
WSF
|
The following example demonstrates a trivial simulation and serves as a building block on which we will proceed to add additional capabilities. It loads a scenario from 'test.txt' (the format of the scenario input file is described in a separate document). It then initializes the simulation and proceeds to run it.
This simulation is not very useful because it doesn't produce any output. If we modify the example as follows, we can either direct the simulation entities to be sent to a Distributed Interactive Simulation (DIS) exercise or written to a replay file that can be displayed by external programs. The scenario input file 'test.txt' must define a 'dis_interface' block to define what to do. And again, the contents of the scenario input file are described in a separate document.
The above examples only demonstrate the basics. They don't demonstrate how to extend WSF to provide your own types of simulation objects (platforms, sensors, etc.), or implement observers that let you gather information about things occuring in the simulation. These topics will be discussed in the following sections.
What do you want to do next?