summaryrefslogtreecommitdiff
path: root/js/Misc/func_block.js
blob: d7e4b6f0f52f6aebd4136039a8ead6c8b01d8e78 (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
/* autogenerated from "macros/Misc/func_block.sci" */
function func_block() {
    func_block.prototype.define = function func_block() {
model=scicos_model();
model.sim=" ";
model.in1=1;
model.out=1;
model.blocktype="c";
model.dep_ut=[true,false];
exprs="v=sin(u);y=u*v";
gr_i=[];
x=standard_define([2,2],model,exprs,gr_i);
    }
    func_block.prototype.details = function func_block() {
    }
    func_block.prototype.get = function func_block() {
    }
    func_block.prototype.set = function func_block() {
model=arg1.model;
graphics=arg1.graphics;
exprs=graphics.exprs;
x=arg1;
model=x.model;
[ok,mac,exprs]=genfunc[exprs-1];
if (ok) {
model.sim=mac;
graphics.exprs=exprs;
x.model=model;
x.graphics=graphics;
}
    }
}