-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
59 lines (54 loc) · 2.07 KB
/
index.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SimScript</title>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<script src="https://www.x3dom.org/download/x3dom.js"></script>
<link rel='stylesheet' type="text/css" href="https://www.x3dom.org/download/x3dom.css" >
</head>
<body>
<h1>
SimScript
</h1>
<p>
A Discrete Event Simulation library in TypeScript.
</p>
<p>
<b>SimScript</b> uses JavaScript's
<a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Async_await">async/await</a>
features to make simulations easy to write and understand.
</p>
<p>
<b>SimScript</b> simulations are built using these classes:
</p>
<ul>
<li>
<b>Simulation</b>:
Simulations create resources (queues) and entities which execute an async <b>script</b>
method that describes the actions each entity should perform.
</li>
<li>
<b>Queues</b>:
Queues represent resources that can be seized and released by entities.
Queues keep track of their utilization and may constrain the flow of entities through
the simulation.
</li>
<li>
<b>Entities</b>:
Entities represent active elements that execute scripts. Scripts are JavaScript methods that
contain instructions for entities. Typical actions are entering and leaving queues,
going through delays, and sending or waiting for signals.
</li>
<li>
<b>Animations</b>:
Animations use HTML or SVG elements to render entities waiting in queues or in transit
between queues.
Animations are useful for presentations and also for debugging simulations.
</li>
</ul>
<script type="module" src="/main.ts"></script>
</body>
</html>