-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMOSQUITO.MA
More file actions
50 lines (38 loc) · 1.78 KB
/
Copy pathMOSQUITO.MA
File metadata and controls
50 lines (38 loc) · 1.78 KB
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
[top]
components : ambiente
in : inPort
link : inPort inputPresion@ambiente
[ambiente]
type : cell
dim : (3, 4, 4, 4)
delay : transport
defaultDelayTime : 100
border : wrapped
neighbors : ambiente(0,-1,-1,-1) ambiente(0,-1,-1,0) ambiente(0,-1,-1,1)
neighbors : ambiente(0,-1,0,-1) ambiente(0,-1,0,0) ambiente(0,-1,0,1)
neighbors : ambiente(0,-1,1,-1) ambiente(0,-1,1,0) ambiente(0,-1,1,1)
neighbors : ambiente(0,0,-1,-1) ambiente(0,0,-1,0) ambiente(0,0,-1,1)
neighbors : ambiente(0,0,0,-1) ambiente(0,0,0,0) ambiente(0,0,0,1)
neighbors : ambiente(0,0,1,-1) ambiente(0,0,1,0) ambiente(0,0,1,1)
neighbors : ambiente(0,1,-1,-1) ambiente(0,1,-1,0) ambiente(0,1,-1,1)
neighbors : ambiente(0,1,0,-1) ambiente(0,1,0,0) ambiente(0,1,0,1)
neighbors : ambiente(0,1,1,-1) ambiente(0,1,1,0) ambiente(0,1,1,1)
neighbors : ambiente(-1,0,0,0)
neighbors : ambiente(1,0,0,0)
initialvalue : 0
in : inputPresion
link : inputPresion in@ambiente(0,1,1,0)
localtransition : presion-rule
initialCellsValue : mosquitov2.val
zone : temp-rule { (1,0,0,0)..(1,3,3,3) }
zone : mosquito-rule { (2,0,0,0)..(2,3,3,3) }
portInTransition : in@ambiente(0,1,1,0) setPresion
[setPresion]
rule : { uniform(0.1,1.3) } 0 { t }
[presion-rule]
rule : { ( (0,-1,-1,-1) + (0,-1,-1,0) + (0,-1,-1,1) + (0,-1,0,-1) + (0,-1,0,0) + (0,-1,0,1) + (0,-1,1,-1) + (0,-1,1,0) + (0,-1,1,1) + (0,0,-1,-1) + (0,0,-1,0) + (0,0,-1,1) + (0,0,0,-1) + (0,0,0,0) + (0,0,0,1) + (0,0,1,-1) + (0,0,1,0) + (0,0,1,1) + (0,1,-1,-1) + (0,1,-1,0) + (0,1,-1,1) + (0,1,0,-1) + (0,1,0,0) + (0,1,0,1) + (0,1,1,-1) + (0,1,1,0) + (0,1,1,1) ) / 27 } 1000 { t }
[temp-rule]
rule : { 273 * ( (-1,0,0,0) - 1 ) + 20 } 1000 { t }
[mosquito-rule]
rule : 1 1000 { (0,0,0,-1) = 1 AND (-1,0,0,0) >= 16 }
rule : 0 1000 { t }