logic setParamNumber logic setParamFunction 42 logic setParamFunction

 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
60
61
62
63
logic.setParamNumber(3,4);
logic.setParamFunction(0,0.0,1.0,0.42,1.0,0.7,0.0);
logic.setParamFunction(0,0.7,0.0,0.9,1.0,1.0,1.0);
logic.setParamFunction(1,0.0,1.0,0.1,1.0,0.5,0.0);
logic.setParamFunction(1,0.2,0.0,0.45,1.0,0.6,0.0);
logic.setParamFunction(1,0.5,0.0,0.9,1.0,1.0,1.0);
logic.setParamFunction(2,0.0,1.0,0.25,1.0,0.6,0.0);
logic.setParamFunction(2,0.5,0.0,0.9,1.0,1.0,1.0);
logic.setResultFunction(0,0.0,1.0,0.6,0.0);
logic.setResultFunction(0,0.4,0.0,1.0,1.0);
logic.setResultFunction(1,0.0,1.0,0.6,0.0);
logic.setResultFunction(1,0.4,0.0,1.0,1.0);
logic.setResultFunction(2,0.0,1.0,0.4,0.0);
logic.setResultFunction(2,0.3,0.0,0.5,1.0,0.7,0.0);
logic.setResultFunction(2,0.6,0.0,1.0,1.0);
logic.setResultFunction(3,0.0,1.0,0.4,0.0);
logic.setResultFunction(3,0.3,0.0,0.5,1.0,0.7,0.0);
logic.setResultFunction(3,0.6,0.0,1.0,1.0);
QVector<quint16> vec1 = {0,2,1};
logic.setRule(vec1,0,0);
logic.setRule(vec1,1,0);
logic.setRule(vec1,2,2);
logic.setRule(vec1,3,1);
QVector<quint16> vec2 = {0,1,0};
logic.setRule(vec2,0,1);
logic.setRule(vec2,1,1);
logic.setRule(vec2,2,2);
logic.setRule(vec2,3,1);
QVector<quint16> vec3 = {0,2,0};
logic.setRule(vec3,0,0);
logic.setRule(vec3,1,0);
logic.setRule(vec3,2,0);
logic.setRule(vec3,3,0);
QVector<quint16> vec4 = {1,0,1};
logic.setRule(vec4,0,0);
logic.setRule(vec4,1,0);
logic.setRule(vec4,2,0);
logic.setRule(vec4,3,2);
QVector<quint16> vec5 = {0,1,1};
logic.setRule(vec5,0,0);
logic.setRule(vec5,1,0);
logic.setRule(vec5,2,2);
logic.setRule(vec5,3,1);
QVector<quint16> vec6 = {0,0,1};
logic.setRule(vec6,0,0);
logic.setRule(vec6,1,0);
logic.setRule(vec6,2,0);
logic.setRule(vec6,3,1);
QVector<quint16> vec7 = {0,0,0};
logic.setRule(vec7,0,0);
logic.setRule(vec7,1,0);
logic.setRule(vec7,2,1);
logic.setRule(vec7,3,1);