"> Implementation -- SimPlan Top Level

Implementation--
SimPlan Top Level


The Initialization Phase:

The initialization phase deals with reading in the input files and changing the programs into an easily usable internal representation. Essentially, everything that needs to be done before the simulation starts is done in the initialization phase.

First, some tracking constants are initialized. Then, the top level checks to see if a single or concurrent program simulation is to take place.

For each program file to be read, the top level makes a program list entry, assigns a program number to the program and directs the program list to read and slice the program and build the symbol table. The top level, then, reads the goal state and places each entry into the goal list, a special type of state list that holds the goal state. For single program simulations, the top level directs the program list to add a slice for any entry in the goal list for a program counter variable. Finally, the top level reads the initial state, places it in the current state of the root node of the search tree, places the root node on the terminal node list and starts the simulator.

The Simulation Phase:

The simulation phase runs the actual simulation. The simulation phase is covered in the Simulation Overhead subsystem.


Figure of top level processing


Related include files:


Return ...


Andrew Tompkins
Beaverton, OR 97006
Last rev: 17 JUL 03
URL:
http://home.comcast.net/~andytom/simplan.docs/control/top.level.html

Valid XHTML 1.0!