[comp.lang.ada] Simulation in Ada

Dennis.Cornhill@K.CS.CMU.EDU.UUCP (02/09/87)

We are in the process of writing a set of Ada packages that emulate
Simscript functionality.  The job is not too tough, I expect that
we will have a pretty good emulation with about 1500 lines of
source code. 

A simulation is written as a sequential Ada program and Simscript
processes are written as procedures.  The discrete event dispatcher
is a task, and it creates an agent task for each process which
invokes the process when its time arrives.  Process context
switching is implemented by rendezvous between the agents (clients)
and the dispatcher (server).  The emulation makes very heavy use of
generics and is a pretty good test of a compiler's ability
to deal with generics.

We intend to use the Simscript emulation in place of Simscript for
evaluating scheduling algorithms.

I have documentation on what we are building.  Send me mail if you
want more information.  Please include a telephone number in case I
am unable to respond to you over the net.

Dennis Cornhill