diff options
Diffstat (limited to 'js/Branching/FROMMO.js')
-rw-r--r-- | js/Branching/FROMMO.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/js/Branching/FROMMO.js b/js/Branching/FROMMO.js index e72205b8..0995e5cc 100644 --- a/js/Branching/FROMMO.js +++ b/js/Branching/FROMMO.js @@ -1,24 +1,24 @@ /* autogenerated from "macros/Branching/FROMMO.sci" */ function FROMMO() { FROMMO.prototype.define = function FROMMO() { - model = scicos_model(); - model.sim = "frommo"; - model.in1 = []; - model.in2 = []; - model.intyp = 1; - model.out = -1; - model.out2 = -2; - model.outtyp = -1; - model.ipar = []; - model.opar = list("A"); - model.blocktype = "c"; - model.dep_ut = [false,false]; + this.model = scicos_model(); + this.model.sim = new ScilabString("frommo"); + this.model.in1 = []; + this.model.in2 = []; + this.model.intyp = new ScilabDouble(1); + this.model.out = new ScilabDouble(-1); + this.model.out2 = new ScilabDouble(-2); + this.model.outtyp = new ScilabDouble(-1); + this.model.ipar = []; + this.model.opar = list("A"); + this.model.blocktype = new ScilabString("c"); + this.model.dep_ut = [false,false]; mo = modelica(); mo.model = "frommo"; mo.outputs = "n"; exprs = ["A"]; gr_i = []; - this.x = standard_define([2,1],model,exprs,gr_i); + this.x = standard_define([2,1],this.model,exprs,gr_i); this.x.graphics.out_implicit = ["I"]; return new BasicBlock(this.x); } @@ -36,20 +36,20 @@ function FROMMO() { this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; - model = arg1.model; + this.model = arg1.model; while (true) { [ok,this.tag,exprs] = scicos_getvalue("Set parameters",["Tag"],list("str",-1),exprs); if (!ok) { break; } if (ok) { - if (model.opar!=list(this.tag)) { + if (this.model.opar!=list(this.tag)) { needcompile = 4; y = needcompile; } graphics.exprs = exprs; - model.opar = list(this.tag); - this.x.model = model; + this.model.opar = list(this.tag); + this.x.model = this.model; this.x.graphics = graphics; break; } |