comp.lang.ada
 help / color / mirror / Atom feed
From: sommar@enea.UUCP (Erland Sommarskog)
Subject: Re: Tasks and Simulation
Date: Fri, 23-Jan-87 18:26:58 EST	[thread overview]
Date: Fri Jan 23 18:26:58 1987
Message-ID: <1660@enea.UUCP> (raw)
In-Reply-To: 469@cod.UUCP

In article <469@cod.UUCP> dennis@cod.UUCP (Dennis Cottel) writes:
>We are considering using Ada to write a non-real-time simulation of
>combat engagements.  It would seem a perfect application of
>object-oriented design to use Ada tasks to model the independently
>operating combatants, and in fact, to use tasks to model independent
>functions within the weapons and platforms.
>
>  ... further description of problems with clock tasks
>

First of all: I don't know anything of these combats that you are simulating.
Is there any difference in the sense of simulation compared with for
instance a telephone exchange? As far as I can read from your article,
there is not. This is what I am assuming in the following.

I don't think that Ada tasks are good tools to model the combatants.
Tasks are real-time processes, while those you have, are not. That
doesn't mean that I think it is bad idea to use Ada and OOD to solve
the problem. It is just the approach that is wrong.

What you need is non-real-time processes with non-real-time delays.
In fact you will probably need a whole support package/generic/whatever 
for discrete-time simulation. Ada does not have this, however there
is one langauge that actually have this as a standard feature, and
that is Simula. If you don't know of the standard class SIMSET, I think
you shall take a look at it. Probably it is exactly what you need.

The problem will then be to implement SIMSET in Ada. Your simulation
will be quite solve then, AND you will have good package for the next time.

 

  reply	other threads:[~1987-01-23 23:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1987-01-22 21:51 Tasks and Simulation Dennis Cottel
1987-01-23 23:26 ` Erland Sommarskog [this message]
1987-03-04  2:19   ` Mats_Ohlin_FOA2
1987-01-26  2:36 ` sdl
1987-01-26 16:53 ` BBardin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox