blob: 168cf14d6587fc8123758d39c284c0a66a777c7f (
plain)
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
|
/* autogenerated from "macros/Branching/CLKFROM.sci" */
function CLKFROM() {
CLKFROM.prototype.define = function CLKFROM() {
model = scicos_model();
model.sim = "clkfrom";
model.evtout = 1;
model.opar = list("A");
model.blocktype = "d";
model.firing = -1;
model.dep_ut = [false,false];
exprs = "A";
this.x = standard_define([2,1],model,exprs," ");
this.x.graphics.id = "From";
}
CLKFROM.prototype.details = function CLKFROM() {
return this.x;
}
CLKFROM.prototype.get = function CLKFROM() {
}
CLKFROM.prototype.set = function CLKFROM() {
this.x = arg1;
graphics = arg1.graphics;
model = arg1.model;
exprs = graphics.exprs;
while (true) {
[ok,tag,exprs] = scicos_getvalue("Set block parameters","Tag",list("str",-1),exprs);
if (!ok) {
break;
}
if (model.opar!=list(tag)) {
needcompile = 4;
y = needcompile;
}
model.opar = list(tag);
model.evtout = 1;
model.firing = -1;
graphics.exprs = exprs;
this.x.graphics = graphics;
this.x.model = model;
break;
}
needcompile=resume(needcompile)
}
}
|