Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!uccba!mead!gordon From: gordon@mead.UUCP (Gordon Edwards) Newsgroups: comp.lang.c++ Subject: Re: discrete-event simulation in C++ Message-ID: <1208@meaddata.mead.UUCP> Date: 23 Aug 90 13:25:43 GMT References: <2533@ryn.esg.dec.com> <5606@abaa.UUCP> <1990Aug22.171319.12499@ida.liu.se> Sender: usenet@mead.UUCP Reply-To: mead!gordon@uccba.uc.edu Organization: Mead Data Central, Dayton OH Lines: 30 To the person who originally started this thread. In article <1990Aug22.171319.12499@ida.liu.se>, mip@IDA.LiU.SE (Mikael Patel) writes: |> |> Discrete event simulation should be done in SIMULA, the grandfather of |> object-oriented programming languages. What you need is classes and |> COROUTINES to make life easy for you! C++ has only classes. Try looking |> at DEMOS. Its a nice simulation package written in Simula-67 that is very |> easy to use and generates all the statistics you need without you |> having to implement random functions, histograms, etc. There is a text |> book; G.M. Birtwistle, Discrete Event Modelling on Simula, Macmillan, |> 1979, ISBN 0-333-23881-8. Simula compilers for most modern machines |> (workstations, pc, macintosh, etc) are available. |> First, remember that there is three (at least) different flavors of the discrete-event simulation. You do not need coroutines if you are using the event-scheduling or activity-scanning paradigms. AT&T provides a task library that will allow you to perform the necessary tasking operations for the process-interaction paradigm. I have used C++ for event-scheduling simulations, and have found it to be quite flexible. Process-interaction simulations are currently very popular, however, they allow the introduction of artifactual deadlock. Depending on your level of experience with discrete-event simulations, you might want to stick to the event-scheduling paradigm (concentrates on the events). -- Gordon Edwards Mead Data Central, Dayton OH