-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
32 lines (24 loc) · 1.08 KB
/
app.js
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
// this module helps the definition of a new emulation binding together
//
// simulation
// id self generated
// area {id, population, neighbours}
// neighbours {area_id, connections} // list of close areas
// - connections, rate of population moving daily to the neighbour area
// params
// - actions
// - status
// - conditions
// - events
// schedule
// - speed: string or number (utility to convert), e.g. 3600 = 1h each second
// - cycles: integer, 0: until death of all agents
// - events: {event_id, day} schedule of events at given cycles
// - population: {rate, max, min, initial}
// rate: integer, 0: none, 1: for each death, 2: for each death. 0.5 one each two deaths..
// initial, integer number of population at day 0
// max, number of max population
// min, number of min population
import Simulator from "./simulator.js";
// todo set ENV params for using this as a CLI
// todo set express server for using this via API