summaryrefslogtreecommitdiff
path: root/js/Branching/SWITCH2_m.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/SWITCH2_m.js')
-rw-r--r--js/Branching/SWITCH2_m.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/js/Branching/SWITCH2_m.js b/js/Branching/SWITCH2_m.js
index 080c3d90..d83240fb 100644
--- a/js/Branching/SWITCH2_m.js
+++ b/js/Branching/SWITCH2_m.js
@@ -5,18 +5,18 @@ function SWITCH2_m() {
this.nzz = 1;
rpar = 0;
this.model = scicos_model();
- this.model.sim = list(new ScilabString("switch2_m"),new ScilabDouble(4));
+ this.model.sim = list(new ScilabString(["switch2_m"]), new ScilabDouble([4]));
this.model.in1 = [[-1],[1],[-1]];
this.model.in2 = [[-2],[1],[-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.ipar = ipar;
- this.model.rpar = new ScilabDouble(rpar);
- this.model.nzcross = new ScilabDouble(this.nzz);
- this.model.nmode = new ScilabDouble(1);
- this.model.blocktype = new ScilabString("c");
+ this.model.rpar = new ScilabDouble([rpar]);
+ this.model.nzcross = new ScilabDouble([this.nzz]);
+ this.model.nmode = new ScilabDouble([1]);
+ this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = [true,false];
exprs = [[sci2exp(1)],[string(ipar)],[string(rpar)],[string(this.nzz)]];
gr_i = [];
@@ -57,14 +57,14 @@ function SWITCH2_m() {
this.rule = 2;
}
graphics.exprs = exprs;
- this.model.ipar = new ScilabDouble(this.rule);
- this.model.rpar = new ScilabDouble(this.thra);
+ this.model.ipar = new ScilabDouble([this.rule]);
+ this.model.rpar = new ScilabDouble([this.thra]);
if (this.nzz!=0) {
- this.model.nmode = new ScilabDouble(1);
- this.model.nzcross = new ScilabDouble(1);
+ this.model.nmode = new ScilabDouble([1]);
+ this.model.nzcross = new ScilabDouble([1]);
} else {
- this.model.nmode = new ScilabDouble(0);
- this.model.nzcross = new ScilabDouble(0);
+ this.model.nmode = new ScilabDouble([0]);
+ this.model.nzcross = new ScilabDouble([0]);
}
if (((this.ot<1)||(this.ot>8))&&(this.ot!=-1)) {
message("Datatype is not supported");