summaryrefslogtreecommitdiff
path: root/js/Branching/SELECT_m.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/SELECT_m.js')
-rw-r--r--js/Branching/SELECT_m.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/js/Branching/SELECT_m.js b/js/Branching/SELECT_m.js
index 80cfda5f..3fffd8e7 100644
--- a/js/Branching/SELECT_m.js
+++ b/js/Branching/SELECT_m.js
@@ -4,21 +4,21 @@ function SELECT_m() {
this.z0 = 1;
this.nin = 2;
this.model = scicos_model();
- this.model.sim = list(new ScilabString("selector_m"),new ScilabDouble(4));
+ this.model.sim = list(new ScilabString(["selector_m"]), new ScilabDouble([4]));
this.model.in1 = [[-1],[-1]];
this.model.in2 = [[-2],[-2]];
- 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.intyp = new ScilabDouble([1]);
+ this.model.out = new ScilabDouble([-1]);
+ this.model.out2 = new ScilabDouble([-2]);
+ this.model.outtyp = new ScilabDouble([1]);
this.model.evtout = [];
this.model.state = [];
this.model.rpar = [];
this.model.ipar = [];
this.model.firing = [];
- this.model.evtin = new ScilabDouble(ones(this.nin,1));
- this.model.dstate = new ScilabDouble(this.z0);
- this.model.blocktype = new ScilabString("c");
+ this.model.evtin = new ScilabDouble([ones(this.nin,1)]);
+ this.model.dstate = new ScilabDouble([this.z0]);
+ this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = [true,false];
exprs = [[sci2exp(1)],[sci2exp(this.nin)],[sci2exp(this.z0)]];
gr_i = [];
@@ -63,7 +63,7 @@ function SELECT_m() {
[model,graphics,ok] = set_io(this.model,graphics,list(in1,it),list(out,ot),ones(this.nin,1),[]);
if (ok) {
graphics.exprs = exprs;
- this.model.dstate = new ScilabDouble(this.z0);
+ this.model.dstate = new ScilabDouble([this.z0]);
this.x.graphics = graphics;
this.x.model = this.model;
break;