-
Recent Posts
Recent Comments
- R.P. Churchill on TWSL Series 07: Discovery and Data Collection
- R.P. Churchill on A Simulationist’s Framework for Business Analysis: Round Two
- LN on A Simulationist’s Framework for Business Analysis: Round Two
- R.P. Churchill on Starting to Learn About the Java Memory Model
- R.P. Churchill on Multidimensional Arrays in Javascript
Categories
Meta
May 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Tag Archives: JavaScript
A Simple Discrete-Event Simulation: Part 42
Today I replumbed the layout of components to include a single entry, a single queue, and two processes that each feed the single exit. This required the following modifications: The Queue component had to support multiple outgoing paths. The Queue … Continue reading
A Simple Discrete-Event Simulation: Part 41
Today I took a step back to slightly simpler version of the simulation that uses the original version of the Path components (the ones that have the nodes built into them and act like standalone components). I took two steps … Continue reading
A Simple Discrete-Event Simulation: Part 40
Today I modified the framework to define Node components separately from Path components. This allows us to have any number of paths going into or out of any node so that any arbitrary network can be defined. In the code’s … Continue reading
A Simple Discrete-Event Simulation: Part 37
Today I finished putting together a basic Path component. It mostly works like a queue but it has “physical” dimensions that take time for the entities to traverse. It also draws the path, its endpoints, and any entities in their … Continue reading
A Simple Discrete-Event Simulation: Part 35
Today I finished mods to the DisplayGroup object that allows it to be set up to hide itself a set amount of time after one or more displayed variables change. We begin with the code that now includes the requisite … Continue reading
A Simple Discrete-Event Simulation: Part 31
Today I made a few basic changes. Instead of placing all elements (components and entities) that contain discrete-event simulation features into the setOfEntities array I created a setOfComponents array and placed the components in there, instead. This allows me to … Continue reading
A Simple Discrete-Event Simulation: Part 30
The Exit component is always available to accept any entities sent to it. It doesn’t have to store any entities but only has to keep track of when they “arrive,” which means they are leaving the model. The Exit component … Continue reading
A Simple Discrete-Event Simulation: Part 29
Today I added a Process component. This component is meant to represent a process that takes some amount of time to complete. The time could be zero and there can be other side effects, which usually involve changing properties of … Continue reading
A Simple Discrete-Event Simulation: Part 28
Today I added a queue component, so the entities are generated by the Arrivals component, inserted at the Entry component, and forwarded to the Queue component. At this point the processes are all instantaneous, but they will get more interesting … Continue reading
A Simple Discrete-Event Simulation: Part 27
Today I made a few tweaks, but the main thing was adding an Entry component and a means of moving entities through the model. Remembering that the entities are entirely passive, the components must be able to hand entities off … Continue reading