You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

simjs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simjs

Discrete Event Simulation in Javascript

1.0.1
Source
npmnpm
Version published
Weekly downloads
8
700%
Maintainers
1
Weekly downloads
 
Created
Source

SimJS-node

SimJS-node is a port of SimJS for use in NodeJS.

About SimJS

SIM.JS is a general-purpose Discrete Event Simulation library written entirely in JavaScript.

More information and documentation at http://www.simjs.com

SIM.JS is a library for modeling discrete time event systems:

  • The library provides constructs to create Entity which are the active actors in the system and encapsulate the state and logic of the system operations.

  • The entities contend for resources, which can be Facilities (services that are requested by entities; facilities have a maximum limit on number of concurrent users) and Buffers (resources that can store finite amount of tokens; entities store or retrieve tokens from the buffers).

  • The entities communicate by waiting on Events or by sending Messages.

  • Statistics recording and analysis capability is provided by Data Series (collection of discrete, time-independent observations), Time Series (collection of discrete, time-dependent observations) and Population (the behavior of population growth and decline).

  • SIM.JS also provides a random number generation library to generate seeded random variates from various distributions, including uniform, exponential, normal, gamma, pareto and others.

SIM.JS is written in idiomatic JavaScript. The library is written in event-based design paradigm: the changes in system states are notified via callback functions. The design takes advantage of the powerful feature sets of JavaScript: prototype based inheritance, first-class functions, closures, anonymous functions, runtime object modifications and so on. Of course, a knowledge of these principles is not required (a lot of this behind the scenes), but we do certainly hope that using SIM.JS will be pleasurable experience for the amateur as well as the experienced practitioners of JavaScript.

Keywords

discrete

FAQs

Package last updated on 19 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.