git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit eaf33c2d3536ae3ec69d335f257a01bfee3f9dd3

rebuild docs

Signed-off-by: wanderer <mjbecze@gmail.com>
wanderer committed on 12/2/2017, 6:43:44 AM
Parent: 3ae2283be27509914459ba5c6d1acd9f4cc59b8d

Files changed

docs/actor.mdchanged
docs/capsStore.mdchanged
docs/hypervisor.mdchanged
docs/inbox.mdchanged
docs/scheduler.mdchanged
docs/actor.mdView
@@ -14,9 +14,9 @@
1414 - [send](#send)
1515
1616 ## constructor
1717
18-[actor.js:16-33](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/actor.js#L16-L33 "Source code on GitHub")
18+[actor.js:17-32](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/actor.js#L17-L32 "Source code on GitHub")
1919
2020 the Actor manages the varous message passing functions and provides
2121 an interface for the containers to use
2222
@@ -29,9 +29,9 @@
2929 - `opts.container` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the container constuctor and argments
3030
3131 ## mintCap
3232
33-[actor.js:40-45](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/actor.js#L40-L45 "Source code on GitHub")
33+[actor.js:39-44](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/actor.js#L39-L44 "Source code on GitHub")
3434
3535 Mints a new capabilitly with a given tag
3636
3737 **Parameters**
@@ -41,9 +41,9 @@
4141 Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
4242
4343 ## queue
4444
45-[actor.js:52-55](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/actor.js#L52-L55 "Source code on GitHub")
45+[actor.js:51-54](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/actor.js#L51-L54 "Source code on GitHub")
4646
4747 adds a message to this actor's message queue
4848
4949 **Parameters**
@@ -52,9 +52,9 @@
5252 - `portName` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
5353
5454 ## create
5555
56-[actor.js:62-68](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/actor.js#L62-L68 "Source code on GitHub")
56+[actor.js:61-67](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/actor.js#L61-L67 "Source code on GitHub")
5757
5858 runs the creation routine for the actor
5959
6060 **Parameters**
@@ -64,21 +64,21 @@
6464 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
6565
6666 ## shutdown
6767
68-[actor.js:97-99](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/actor.js#L97-L99 "Source code on GitHub")
68+[actor.js:98-103](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/actor.js#L98-L103 "Source code on GitHub")
6969
7070 Runs the shutdown routine for the actor
7171
7272 ## startup
7373
74-[actor.js:104-106](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/actor.js#L104-L106 "Source code on GitHub")
74+[actor.js:108-110](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/actor.js#L108-L110 "Source code on GitHub")
7575
7676 Runs the startup routine for the actor
7777
7878 ## runMessage
7979
80-[actor.js:114-134](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/actor.js#L114-L134 "Source code on GitHub")
80+[actor.js:118-138](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/actor.js#L118-L138 "Source code on GitHub")
8181
8282 run the Actor with a given message
8383
8484 **Parameters**
@@ -89,9 +89,9 @@
8989 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
9090
9191 ## incrementTicks
9292
93-[actor.js:140-143](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/actor.js#L140-L143 "Source code on GitHub")
93+[actor.js:144-147](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/actor.js#L144-L147 "Source code on GitHub")
9494
9595 updates the number of ticks that the actor has run
9696
9797 **Parameters**
@@ -99,9 +99,9 @@
9999 - `count` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** the number of ticks to add
100100
101101 ## createActor
102102
103-[actor.js:150-153](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/actor.js#L150-L153 "Source code on GitHub")
103+[actor.js:154-157](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/actor.js#L154-L157 "Source code on GitHub")
104104
105105 creates an actor
106106
107107 **Parameters**
@@ -110,9 +110,9 @@
110110 - `message` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** an intial [message](https://github.com/primea/js-primea-message) to send newly created actor
111111
112112 ## send
113113
114-[actor.js:170-177](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/actor.js#L170-L177 "Source code on GitHub")
114+[actor.js:174-181](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/actor.js#L174-L181 "Source code on GitHub")
115115
116116 sends a message to a given port
117117
118118 **Parameters**
docs/capsStore.mdView
@@ -1,51 +1,3 @@
11 <!-- Generated by documentation.js. Update this documentation by updating the source code. -->
22
33 ### Table of Contents
4-
5-- [constructor](#constructor)
6-- [store](#store)
7-- [load](#load)
8-- [delete](#delete)
9-
10-## constructor
11-
12-[capsStore.js:6-8](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/capsStore.js#L6-L8 "Source code on GitHub")
13-
14-The caps store, persistantly stores an actors capabilites.
15-
16-**Parameters**
17-
18-- `storedCaps` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
19-
20-## store
21-
22-[capsStore.js:15-18](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/capsStore.js#L15-L18 "Source code on GitHub")
23-
24-Stores a cap at a given key
25-
26-**Parameters**
27-
28-- `key` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
29-- `cap` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
30-
31-## load
32-
33-[capsStore.js:25-28](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/capsStore.js#L25-L28 "Source code on GitHub")
34-
35-gets a cap given its key
36-
37-**Parameters**
38-
39-- `key` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
40-
41-Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
42-
43-## delete
44-
45-[capsStore.js:34-36](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/capsStore.js#L34-L36 "Source code on GitHub")
46-
47-delete cap given its key
48-
49-**Parameters**
50-
51-- `key` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**
docs/hypervisor.mdView
@@ -10,20 +10,21 @@
1010 - [registerContainer](#registercontainer)
1111
1212 ## constructor
1313
14-[index.js:10-15](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/index.js#L10-L15 "Source code on GitHub")
14+[index.js:10-15](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/index.js#L10-L15 "Source code on GitHub")
1515
1616 The Hypervisor manages the container instances by instantiating them and
1717 destorying them when possible. It also facilitates localating Containers
1818
1919 **Parameters**
2020
2121 - `tree` **Tree** a [radix tree](https://github.com/dfinity/js-dfinity-radix-tree) to store the state
22+- `nonce` (optional, default `0`)
2223
2324 ## send
2425
25-[index.js:23-27](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/index.js#L23-L27 "Source code on GitHub")
26+[index.js:23-27](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/index.js#L23-L27 "Source code on GitHub")
2627
2728 sends a message
2829
2930 **Parameters**
@@ -34,9 +35,9 @@
3435 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)** a promise that resolves once the receiving container is loaded
3536
3637 ## getActor
3738
38-[index.js:52-63](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/index.js#L52-L63 "Source code on GitHub")
39+[index.js:52-63](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/index.js#L52-L63 "Source code on GitHub")
3940
4041 gets an existsing actor
4142
4243 **Parameters**
@@ -46,9 +47,9 @@
4647 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
4748
4849 ## createActor
4950
50-[index.js:71-94](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/index.js#L71-L94 "Source code on GitHub")
51+[index.js:71-85](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/index.js#L71-L85 "Source code on GitHub")
5152
5253 creates an instance of an Actor
5354
5455 **Parameters**
@@ -58,22 +59,22 @@
5859 - `id` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the id for the actor (optional, default `{nonce:this.nonce++,parent:null}`)
5960
6061 ## createStateRoot
6162
62-[index.js:107-110](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/index.js#L107-L110 "Source code on GitHub")
63+[index.js:98-101](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/index.js#L98-L101 "Source code on GitHub")
6364
6465 creates a state root starting from a given container and a given number of
6566 ticks
6667
6768 **Parameters**
6869
69-- `ticks` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** the number of ticks at which to create the state root
70+- `ticks` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** the number of ticks at which to create the state root (optional, default `Infinity`)
7071
7172 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
7273
7374 ## registerContainer
7475
75-[index.js:118-123](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/index.js#L118-L123 "Source code on GitHub")
76+[index.js:109-114](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/index.js#L109-L114 "Source code on GitHub")
7677
7778 regirsters a container with the hypervisor
7879
7980 **Parameters**
docs/inbox.mdView
@@ -8,9 +8,9 @@
88 - [nextMessage](#nextmessage)
99
1010 ## constructor
1111
12-[inbox.js:23-31](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/inbox.js#L23-L31 "Source code on GitHub")
12+[inbox.js:23-31](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/inbox.js#L23-L31 "Source code on GitHub")
1313
1414 The inbox manages and sorts incoming messages and provides functions
1515 to wait on messages
1616
@@ -21,9 +21,9 @@
2121 - `opts.hypervisor` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
2222
2323 ## queue
2424
25-[inbox.js:37-47](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/inbox.js#L37-L47 "Source code on GitHub")
25+[inbox.js:37-47](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/inbox.js#L37-L47 "Source code on GitHub")
2626
2727 queues a message
2828
2929 **Parameters**
@@ -31,9 +31,9 @@
3131 - `message` **Message**
3232
3333 ## nextTaggedMessage
3434
35-[inbox.js:55-66](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/inbox.js#L55-L66 "Source code on GitHub")
35+[inbox.js:55-66](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/inbox.js#L55-L66 "Source code on GitHub")
3636
3737 Waits for a message sent with a capablitly that has one of the given tags
3838
3939 **Parameters**
@@ -44,9 +44,9 @@
4444 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
4545
4646 ## nextMessage
4747
48-[inbox.js:73-110](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/inbox.js#L73-L110 "Source code on GitHub")
48+[inbox.js:73-110](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/inbox.js#L73-L110 "Source code on GitHub")
4949
5050 Waits for the the next message if any
5151
5252 **Parameters**
docs/scheduler.mdView
@@ -11,16 +11,16 @@
1111 - [leastNumberOfTicks](#leastnumberofticks)
1212
1313 ## constructor
1414
15-[scheduler.js:14-20](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/scheduler.js#L14-L20 "Source code on GitHub")
15+[scheduler.js:14-20](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/scheduler.js#L14-L20 "Source code on GitHub")
1616
1717 The Scheduler manages the actor instances and tracks how many "ticks" they
1818 have ran.
1919
2020 ## lock
2121
22-[scheduler.js:27-29](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/scheduler.js#L27-L29 "Source code on GitHub")
22+[scheduler.js:27-29](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/scheduler.js#L27-L29 "Source code on GitHub")
2323
2424 locks the scheduler from clearing waits untill the lock is resolved
2525
2626 **Parameters**
@@ -30,9 +30,9 @@
3030 Returns **[function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** the resolve function to call once it to unlock
3131
3232 ## update
3333
34-[scheduler.js:35-40](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/scheduler.js#L35-L40 "Source code on GitHub")
34+[scheduler.js:35-40](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/scheduler.js#L35-L40 "Source code on GitHub")
3535
3636 updates an instance with a new tick count
3737
3838 **Parameters**
@@ -40,9 +40,9 @@
4040 - `instance` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** an actor instance
4141
4242 ## getInstance
4343
44-[scheduler.js:52-54](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/scheduler.js#L52-L54 "Source code on GitHub")
44+[scheduler.js:52-54](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/scheduler.js#L52-L54 "Source code on GitHub")
4545
4646 returns an Actor instance
4747
4848 **Parameters**
@@ -52,9 +52,9 @@
5252 Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)**
5353
5454 ## done
5555
56-[scheduler.js:60-64](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/scheduler.js#L60-L64 "Source code on GitHub")
56+[scheduler.js:60-64](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/scheduler.js#L60-L64 "Source code on GitHub")
5757
5858 deletes an instance from the scheduler
5959
6060 **Parameters**
@@ -62,9 +62,9 @@
6262 - `id` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** the containers id
6363
6464 ## wait
6565
66-[scheduler.js:73-84](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/scheduler.js#L73-L84 "Source code on GitHub")
66+[scheduler.js:73-84](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/scheduler.js#L73-L84 "Source code on GitHub")
6767
6868 returns a promise that resolves once all containers have reached the given
6969 number of ticks
7070
@@ -76,9 +76,9 @@
7676 Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)**
7777
7878 ## leastNumberOfTicks
7979
80-[scheduler.js:90-100](https://github.com/primea/js-primea-hypervisor/blob/46c11229b2dac84739660d8242a0eaa65697f8bc/scheduler.js#L90-L100 "Source code on GitHub")
80+[scheduler.js:90-100](https://github.com/primea/js-primea-hypervisor/blob/3ae2283be27509914459ba5c6d1acd9f4cc59b8d/scheduler.js#L90-L100 "Source code on GitHub")
8181
8282 returns the oldest container's ticks
8383
8484 **Parameters**

Built with git-ssb-web