Tag Archives: discrete-event sim project

A Simple Discrete-Event Simulation: Part 62

Today I added the ability for the user to control how the display is updated. Two new buttons have been added to the button row between the 2D display and the 3D display. The second button from the right, labeled … Continue reading

Posted in Simulation | Tagged | Leave a comment

A Simple Discrete-Event Simulation: Part 61

If everything is right to this point then additional components and logic should be able to be added in any way desired. The complexity was increased by quite a lot and only turned up one minor code change. That’s a … Continue reading

Posted in Simulation | Tagged | Leave a comment

A Simple Discrete-Event Simulation: Part 60

Here the rendering output is piped through a transform that produces a stereoscopic display with slightly offset views. Make the element full screen then check it out using your favorite 3D goggles (Google Cardboard should do nicely). Here’s a direct … Continue reading

Posted in Simulation | Tagged , , , | Leave a comment

A Simple Discrete-Event Simulation: Part 59

After attaching some new functionality, drawing the paths using the DisplayElements objects, defining 3D elements using the information already available, and learning some more about the Three.js framework and WebGL, we have a nice 3D display. There are many possible … Continue reading

Posted in Simulation | Tagged , , | Leave a comment

A Simple Discrete-Event Simulation: Part 58

Today I started experimenting with the Three.js framework that supports the creation of WebGL apps in most modern browsers. I started from the most basic example I saw demonstrated at a recent JavaScript Meetup in Baltimore. I then began to … Continue reading

Posted in Simulation | Tagged , , | Leave a comment

A Simple Discrete-Event Simulation: Part 57

Today I got a number of things done. I’ll describe them briefly but forego the code listings for today. Too much going on. I created an external way to graphically represent the non-Path components. These work roughly the same way … Continue reading

Posted in Simulation | Tagged | Leave a comment

A Simple Discrete-Event Simulation: Part 56

I the process of working off some of the TODO: items I have sprinkled through the code I ended up fleshing out the model verification function. It is called after everything is defined but before the model runs. I haven’t … Continue reading

Posted in Simulation | Tagged | Leave a comment

A Simple Discrete-Event Simulation: Part 55

Today I got a lot of updates into the mechanism for forwarding entities from one component to another. The changes were chiefly made to the Queue and Process components with some supplementary changes to the Path component. The first change … Continue reading

Posted in Simulation | Tagged | Leave a comment

A Simple Discrete-Event Simulation: Part 54

Today I updated the mechanism by which the components pull entities from previous components when there are multiple options. This involves pulling the entity that has been waiting the longest. Each entity is timestamped using a new member named forwardAttemptTime, … Continue reading

Posted in Simulation | Tagged | Leave a comment

A Simple Discrete-Event Simulation: Part 53

The framework is meant to work without including Path components, which would be the case when transfer between components is effectively instantaneous, as would be the case when simulating an information or logical system rather than a physical system of … Continue reading

Posted in Simulation | Tagged | Leave a comment