diff options
Diffstat (limited to 'js/Branching/NRMSOM_f.js')
-rw-r--r-- | js/Branching/NRMSOM_f.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/js/Branching/NRMSOM_f.js b/js/Branching/NRMSOM_f.js index 72d5ea26..eee8baed 100644 --- a/js/Branching/NRMSOM_f.js +++ b/js/Branching/NRMSOM_f.js @@ -3,15 +3,15 @@ function NRMSOM_f() { NRMSOM_f.prototype.define = function NRMSOM_f() { in1 = [[-1],[-1]]; this.nin = 2; - model = scicos_model(); - model.sim = "junk"; - model.in1 = in1; - model.out = -1; - model.blocktype = "c"; - model.dep_ut = [true,false]; + this.model = scicos_model(); + this.model.sim = new ScilabString("junk"); + this.model.in1 = in1; + this.model.out = new ScilabDouble(-1); + this.model.blocktype = new ScilabString("c"); + this.model.dep_ut = [true,false]; exprs = [string(this.nin)]; gr_i = []; - this.x = standard_define([.2,2],model,exprs,gr_i); + this.x = standard_define([.2,2],this.model,exprs,gr_i); return new BasicBlock(this.x); } NRMSOM_f.prototype.details = function NRMSOM_f() { @@ -28,17 +28,17 @@ function NRMSOM_f() { this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; - model = arg1.model; + this.model = arg1.model; while (true) { [ok,this.nin,exprs] = scicos_getvalue("Set parameters",["number of inputs"],list("vec",1),exprs); if (!ok) { break; } - [model,graphics,ok] = check_io(model,graphics,-ones(this.nin,1),-1,[],[]); + [model,graphics,ok] = check_io(this.model,graphics,-ones(this.nin,1),-1,[],[]); if (ok) { graphics.exprs = exprs; this.x.graphics = graphics; - this.x.model = model; + this.x.model = this.model; break; } } |