summaryrefslogtreecommitdiff
path: root/js/Branching
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 17:51:05 +0530
committerSunil Shetye2018-07-12 23:01:50 +0530
commit44a3807a94783e831070f0e003340af58dc64d16 (patch)
treecce50388afa463583d7a7aead34d40f5b02281f7 /js/Branching
parent0047c3bea1d86b12a08544f6f0833c63e77f6eac (diff)
downloadsci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.gz
sci2js-44a3807a94783e831070f0e003340af58dc64d16.tar.bz2
sci2js-44a3807a94783e831070f0e003340af58dc64d16.zip
change graphics to object
Diffstat (limited to 'js/Branching')
-rw-r--r--js/Branching/CLKFROM.js8
-rw-r--r--js/Branching/CLKFROM.pickle6
-rw-r--r--js/Branching/CLKGOTO.js8
-rw-r--r--js/Branching/CLKGOTO.pickle6
-rw-r--r--js/Branching/CLKGotoTagVisibility.js8
-rw-r--r--js/Branching/CLKGotoTagVisibility.pickle6
-rw-r--r--js/Branching/DEMUX.js20
-rw-r--r--js/Branching/DEMUX.pickle6
-rw-r--r--js/Branching/DEMUX_f.js20
-rw-r--r--js/Branching/DEMUX_f.pickle6
-rw-r--r--js/Branching/ESELECT_f.js14
-rw-r--r--js/Branching/ESELECT_f.pickle16
-rw-r--r--js/Branching/EXTRACTOR.js14
-rw-r--r--js/Branching/EXTRACTOR.pickle6
-rw-r--r--js/Branching/FROM.js8
-rw-r--r--js/Branching/FROM.pickle6
-rw-r--r--js/Branching/FROMMO.js8
-rw-r--r--js/Branching/FROMMO.pickle6
-rw-r--r--js/Branching/GOTO.js8
-rw-r--r--js/Branching/GOTO.pickle6
-rw-r--r--js/Branching/GOTOMO.js8
-rw-r--r--js/Branching/GOTOMO.pickle6
-rw-r--r--js/Branching/GotoTagVisibility.js8
-rw-r--r--js/Branching/GotoTagVisibility.pickle6
-rw-r--r--js/Branching/GotoTagVisibilityMO.js8
-rw-r--r--js/Branching/GotoTagVisibilityMO.pickle6
-rw-r--r--js/Branching/ISELECT_f.js14
-rw-r--r--js/Branching/ISELECT_f.pickle6
-rw-r--r--js/Branching/ISELECT_m.js14
-rw-r--r--js/Branching/ISELECT_m.pickle16
-rw-r--r--js/Branching/MUX.js20
-rw-r--r--js/Branching/MUX.pickle6
-rw-r--r--js/Branching/MUX_f.js20
-rw-r--r--js/Branching/MUX_f.pickle6
-rw-r--r--js/Branching/M_SWITCH.js14
-rw-r--r--js/Branching/M_SWITCH.pickle14
-rw-r--r--js/Branching/NRMSOM_f.js14
-rw-r--r--js/Branching/NRMSOM_f.pickle6
-rw-r--r--js/Branching/RELAY_f.js14
-rw-r--r--js/Branching/RELAY_f.pickle6
-rw-r--r--js/Branching/SCALAR2VECTOR.js14
-rw-r--r--js/Branching/SCALAR2VECTOR.pickle6
-rw-r--r--js/Branching/SELECT_f.js14
-rw-r--r--js/Branching/SELECT_f.pickle6
-rw-r--r--js/Branching/SELECT_m.js14
-rw-r--r--js/Branching/SELECT_m.pickle16
-rw-r--r--js/Branching/SWITCH2.js8
-rw-r--r--js/Branching/SWITCH2.pickle16
-rw-r--r--js/Branching/SWITCH2_m.js14
-rw-r--r--js/Branching/SWITCH2_m.pickle12
-rw-r--r--js/Branching/SWITCH_f.js14
-rw-r--r--js/Branching/SWITCH_f.pickle6
52 files changed, 295 insertions, 243 deletions
diff --git a/js/Branching/CLKFROM.js b/js/Branching/CLKFROM.js
index 1ff250ee..ab278050 100644
--- a/js/Branching/CLKFROM.js
+++ b/js/Branching/CLKFROM.js
@@ -24,9 +24,9 @@ function CLKFROM() {
CLKFROM.prototype.set = function CLKFROM() {
this.tag = arguments[0]["tag"]
this.x = arg1;
- var graphics = arg1.graphics;
+ this.graphics = arg1.graphics;
this.model = arg1.model;
- var exprs = graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
[ok,this.tag,exprs] = scicos_getvalue("Set block parameters","Tag",list("str",-1),exprs);
if (!ok) {
@@ -39,8 +39,8 @@ function CLKFROM() {
this.model.opar = list(new ScilabDouble([this.tag]));
this.model.evtout = new ScilabDouble([1]);
this.model.firing = new ScilabDouble([-1]);
- graphics.exprs = exprs;
- this.x.graphics = graphics;
+ this.graphics.exprs = new ScilabDouble([exprs]);
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/CLKFROM.pickle b/js/Branching/CLKFROM.pickle
index 235b1140..c97cb78c 100644
--- a/js/Branching/CLKFROM.pickle
+++ b/js/Branching/CLKFROM.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'tag'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'needcompile'
p1
diff --git a/js/Branching/CLKGOTO.js b/js/Branching/CLKGOTO.js
index f1462d11..237992ae 100644
--- a/js/Branching/CLKGOTO.js
+++ b/js/Branching/CLKGOTO.js
@@ -28,9 +28,9 @@ function CLKGOTO() {
this.tag = arguments[0]["tag"]
this.tagvis = parseFloat(arguments[0]["tagvis"])
this.x = arg1;
- var graphics = arg1.graphics;
+ this.graphics = arg1.graphics;
this.model = arg1.model;
- var exprs = graphics.exprs;
+ var exprs = this.graphics.exprs;
while (true) {
[ok,this.tag,this.tagvis,exprs] = scicos_getvalue("Set block parameters",["Tag","Tag Visibility (1=Local 2=Scoped 3=Global)"],list("str",-1,"vec",1),exprs);
if (!ok) {
@@ -50,8 +50,8 @@ function CLKGOTO() {
this.model.ipar = new ScilabDouble([this.tagvis]);
this.model.evtin = new ScilabDouble([1]);
this.model.firing = new ScilabDouble([-1]);
- graphics.exprs = exprs;
- this.x.graphics = graphics;
+ this.graphics.exprs = new ScilabDouble([exprs]);
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/CLKGOTO.pickle b/js/Branching/CLKGOTO.pickle
index 90bbe8f3..8c0d2129 100644
--- a/js/Branching/CLKGOTO.pickle
+++ b/js/Branching/CLKGOTO.pickle
@@ -10,8 +10,10 @@ aS'tag'
p4
aS'tagvis'
p5
-atp6
-Rp7
+aS'graphics'
+p6
+atp7
+Rp8
.(dp0
S'needcompile'
p1
diff --git a/js/Branching/CLKGotoTagVisibility.js b/js/Branching/CLKGotoTagVisibility.js
index d7ea947b..72fac875 100644
--- a/js/Branching/CLKGotoTagVisibility.js
+++ b/js/Branching/CLKGotoTagVisibility.js
@@ -31,8 +31,8 @@ function CLKGotoTagVisibility() {
CLKGotoTagVisibility.prototype.set = function CLKGotoTagVisibility() {
this.tag = arguments[0]["tag"]
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.tag,exprs] = scicos_getvalue("Set parameters",["GotoTag"],list("str",-1),exprs);
@@ -44,9 +44,9 @@ function CLKGotoTagVisibility() {
var needcompile = 4;
var y = needcompile;
}
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.opar = list(new ScilabDouble([this.tag]));
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/CLKGotoTagVisibility.pickle b/js/Branching/CLKGotoTagVisibility.pickle
index ebf3fd56..a7889058 100644
--- a/js/Branching/CLKGotoTagVisibility.pickle
+++ b/js/Branching/CLKGotoTagVisibility.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'tag'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'arg1'
p1
diff --git a/js/Branching/DEMUX.js b/js/Branching/DEMUX.js
index 5c1cb1be..8b537934 100644
--- a/js/Branching/DEMUX.js
+++ b/js/Branching/DEMUX.js
@@ -27,8 +27,8 @@ function DEMUX() {
DEMUX.prototype.set = function DEMUX() {
this.out = parseFloat(arguments[0]["out"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.out,exprs] = scicos_getvalue("Set DEMUX block parameters",["number of output ports or vector of sizes"],list("intvec",-1),exprs);
@@ -40,9 +40,9 @@ function DEMUX() {
message("Block must have at least 2 and at most 31 output ports");
var ok = false;
} else {
- var tmpvar0 = check_io(this.model,graphics,0,-transpose([1:this.out]),[],[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,0,-transpose([1:this.out]),[],[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
}
} else {
@@ -55,9 +55,9 @@ function DEMUX() {
} else {
var nin = sum(this.out);
}
- var tmpvar1 = check_io(this.model,graphics,nin,this.out.slice(),[],[])
- this.model = tmpvar1[0]
- var graphics = tmpvar1[1]
+ var tmpvar1 = check_io(this.model,this.graphics,nin,this.out.slice(),[],[]);
+ this.model = tmpvar1[0];
+ this.graphics = tmpvar1[1];
var ok = tmpvar1[2];
if (ok) {
this.out = size(this.out,"*");
@@ -65,9 +65,9 @@ function DEMUX() {
}
}
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.ipar = new ScilabDouble([this.out]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/DEMUX.pickle b/js/Branching/DEMUX.pickle
index b740b0b4..82c8d94b 100644
--- a/js/Branching/DEMUX.pickle
+++ b/js/Branching/DEMUX.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'out'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'model.sim'
p1
diff --git a/js/Branching/DEMUX_f.js b/js/Branching/DEMUX_f.js
index 6e04c129..7184e51c 100644
--- a/js/Branching/DEMUX_f.js
+++ b/js/Branching/DEMUX_f.js
@@ -27,8 +27,8 @@ function DEMUX_f() {
DEMUX_f.prototype.set = function DEMUX_f() {
this.out = parseFloat(arguments[0]["out"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.out,exprs] = scicos_getvalue("Set DEMUX block parameters",["number of output ports or vector of sizes"],list("vec",-1),exprs);
@@ -40,9 +40,9 @@ function DEMUX_f() {
message("Block must have at least 2 and at most 8 output ports");
var ok = false;
} else {
- var tmpvar0 = check_io(this.model,graphics,0,-transpose([1:this.out]),[],[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,0,-transpose([1:this.out]),[],[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
}
} else {
@@ -55,9 +55,9 @@ function DEMUX_f() {
} else {
var nin = sum(this.out);
}
- var tmpvar1 = check_io(this.model,graphics,nin,this.out.slice(),[],[])
- this.model = tmpvar1[0]
- var graphics = tmpvar1[1]
+ var tmpvar1 = check_io(this.model,this.graphics,nin,this.out.slice(),[],[]);
+ this.model = tmpvar1[0];
+ this.graphics = tmpvar1[1];
var ok = tmpvar1[2];
if (ok) {
this.out = size(this.out,"*");
@@ -65,9 +65,9 @@ function DEMUX_f() {
}
}
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.ipar = new ScilabDouble([this.out]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/DEMUX_f.pickle b/js/Branching/DEMUX_f.pickle
index b740b0b4..82c8d94b 100644
--- a/js/Branching/DEMUX_f.pickle
+++ b/js/Branching/DEMUX_f.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'out'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'model.sim'
p1
diff --git a/js/Branching/ESELECT_f.js b/js/Branching/ESELECT_f.js
index 407c795b..b0c6d2dd 100644
--- a/js/Branching/ESELECT_f.js
+++ b/js/Branching/ESELECT_f.js
@@ -35,8 +35,8 @@ function ESELECT_f() {
this.inh = parseFloat(arguments[0]["inh"])
this.nmod = parseFloat(arguments[0]["nmod"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
if (size(exprs,"*")==1) {
exprs[2-1] = string(1);
}
@@ -61,15 +61,15 @@ function ESELECT_f() {
if (this.out<2) {
message("Block must have at least two output ports");
} else {
- var tmpvar0 = check_io(this.model,graphics,1,[],this.inh,[ones(this.out,1)])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,1,[],this.inh,[ones(this.out,1)]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.evtout = new ScilabDouble([ones(this.out,1)]);
this.model.firing = new ScilabDouble([-ones(this.out,1)]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.model.nmode = new ScilabDouble([this.nmod]);
this.model.nzcross = new ScilabDouble([this.nmod]);
this.x.model = this.model;
diff --git a/js/Branching/ESELECT_f.pickle b/js/Branching/ESELECT_f.pickle
index b97e8d58..9775491c 100644
--- a/js/Branching/ESELECT_f.pickle
+++ b/js/Branching/ESELECT_f.pickle
@@ -2,18 +2,20 @@ c__builtin__
set
p0
((lp1
-S'x'
+S'nmod'
p2
-aS'model'
-p3
aS'inh'
+p3
+aS'graphics'
p4
-aS'nmod'
+aS'x'
p5
-aS'out'
+aS'model'
p6
-atp7
-Rp8
+aS'out'
+p7
+atp8
+Rp9
.(dp0
S'arg1'
p1
diff --git a/js/Branching/EXTRACTOR.js b/js/Branching/EXTRACTOR.js
index f08a5f15..5f999f43 100644
--- a/js/Branching/EXTRACTOR.js
+++ b/js/Branching/EXTRACTOR.js
@@ -26,8 +26,8 @@ function EXTRACTOR() {
EXTRACTOR.prototype.set = function EXTRACTOR() {
this.ind = parseFloat(arguments[0]["ind"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.ind,exprs] = scicos_getvalue("Set block parameters",["indices to extract"],list("vec",-1),exprs);
@@ -36,14 +36,14 @@ function EXTRACTOR() {
}
this.ind = int(this.ind);
this.ind = this.ind.slice();
- var tmpvar0 = check_io(this.model,graphics,[-1],size(this.ind,1),[],[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,[-1],size(this.ind,1),[],[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
this.model.ipar = new ScilabDouble(this.ind);
- graphics.exprs = exprs;
- this.x.graphics = graphics;
+ this.graphics.exprs = new ScilabDouble([exprs]);
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/EXTRACTOR.pickle b/js/Branching/EXTRACTOR.pickle
index c3f89749..e8893247 100644
--- a/js/Branching/EXTRACTOR.pickle
+++ b/js/Branching/EXTRACTOR.pickle
@@ -8,8 +8,10 @@ aS'x'
p3
aS'model'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'model.sim'
p1
diff --git a/js/Branching/FROM.js b/js/Branching/FROM.js
index 42b351a1..5f3049dc 100644
--- a/js/Branching/FROM.js
+++ b/js/Branching/FROM.js
@@ -31,8 +31,8 @@ function FROM() {
FROM.prototype.set = function FROM() {
this.tag = arguments[0]["tag"]
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.tag,exprs] = scicos_getvalue("Set parameters",["Tag"],list("str",-1),exprs);
@@ -44,10 +44,10 @@ function FROM() {
var needcompile = 4;
var y = needcompile;
}
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.opar = list(new ScilabDouble([this.tag]));
this.x.model = this.model;
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
break;
}
}
diff --git a/js/Branching/FROM.pickle b/js/Branching/FROM.pickle
index 68df9c4d..a791941b 100644
--- a/js/Branching/FROM.pickle
+++ b/js/Branching/FROM.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'tag'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'arg1'
p1
diff --git a/js/Branching/FROMMO.js b/js/Branching/FROMMO.js
index e80abb71..78f6bc51 100644
--- a/js/Branching/FROMMO.js
+++ b/js/Branching/FROMMO.js
@@ -34,8 +34,8 @@ function FROMMO() {
FROMMO.prototype.set = function FROMMO() {
this.tag = arguments[0]["tag"]
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.tag,exprs] = scicos_getvalue("Set parameters",["Tag"],list("str",-1),exprs);
@@ -47,10 +47,10 @@ function FROMMO() {
var needcompile = 4;
var y = needcompile;
}
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.opar = list(new ScilabDouble([this.tag]));
this.x.model = this.model;
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
break;
}
}
diff --git a/js/Branching/FROMMO.pickle b/js/Branching/FROMMO.pickle
index 59258af9..a3976214 100644
--- a/js/Branching/FROMMO.pickle
+++ b/js/Branching/FROMMO.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'tag'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'arg1'
p1
diff --git a/js/Branching/GOTO.js b/js/Branching/GOTO.js
index 6f561aea..abed8429 100644
--- a/js/Branching/GOTO.js
+++ b/js/Branching/GOTO.js
@@ -33,8 +33,8 @@ function GOTO() {
this.tag = arguments[0]["tag"]
this.tagvis = parseFloat(arguments[0]["tagvis"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.tag,this.tagvis,exprs] = scicos_getvalue("Set parameters",["Tag","Tag Visibility(1=Local 2=scoped 3= global)"],list("str",-1,"vec",1),exprs);
@@ -51,11 +51,11 @@ function GOTO() {
var needcompile = 4;
var y = needcompile;
}
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.opar = list(new ScilabDouble([this.tag]));
this.model.ipar = new ScilabDouble([this.tagvis]);
this.x.model = this.model;
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
var arg1 = this.x;
break;
}
diff --git a/js/Branching/GOTO.pickle b/js/Branching/GOTO.pickle
index d80b82be..06f62621 100644
--- a/js/Branching/GOTO.pickle
+++ b/js/Branching/GOTO.pickle
@@ -10,8 +10,10 @@ aS'tag'
p4
aS'tagvis'
p5
-atp6
-Rp7
+aS'graphics'
+p6
+atp7
+Rp8
.(dp0
S'tagvis'
p1
diff --git a/js/Branching/GOTOMO.js b/js/Branching/GOTOMO.js
index e6ea2dd2..f3998900 100644
--- a/js/Branching/GOTOMO.js
+++ b/js/Branching/GOTOMO.js
@@ -36,8 +36,8 @@ function GOTOMO() {
this.tag = arguments[0]["tag"]
this.tagvis = parseFloat(arguments[0]["tagvis"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.tag,this.tagvis,exprs] = scicos_getvalue("Set parameters",["Tag","Tag Visibility(1=Local 2=scoped 3= global)"],list("str",-1,"vec",1),exprs);
@@ -54,11 +54,11 @@ function GOTOMO() {
var needcompile = 4;
var y = needcompile;
}
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.opar = list(new ScilabDouble([this.tag]));
this.model.ipar = new ScilabDouble([this.tagvis]);
this.x.model = this.model;
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
var arg1 = this.x;
break;
}
diff --git a/js/Branching/GOTOMO.pickle b/js/Branching/GOTOMO.pickle
index 147b79bb..aaf02f69 100644
--- a/js/Branching/GOTOMO.pickle
+++ b/js/Branching/GOTOMO.pickle
@@ -10,8 +10,10 @@ aS'tag'
p4
aS'tagvis'
p5
-atp6
-Rp7
+aS'graphics'
+p6
+atp7
+Rp8
.(dp0
S'tagvis'
p1
diff --git a/js/Branching/GotoTagVisibility.js b/js/Branching/GotoTagVisibility.js
index 7f10aaa2..fc76df5b 100644
--- a/js/Branching/GotoTagVisibility.js
+++ b/js/Branching/GotoTagVisibility.js
@@ -31,8 +31,8 @@ function GotoTagVisibility() {
GotoTagVisibility.prototype.set = function GotoTagVisibility() {
this.tag = arguments[0]["tag"]
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.tag,exprs] = scicos_getvalue("Set parameters",["GotoTag"],list("str",-1),exprs);
@@ -44,9 +44,9 @@ function GotoTagVisibility() {
var needcompile = 4;
var y = needcompile;
}
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.opar = list(new ScilabDouble([this.tag]));
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/GotoTagVisibility.pickle b/js/Branching/GotoTagVisibility.pickle
index ebf3fd56..a7889058 100644
--- a/js/Branching/GotoTagVisibility.pickle
+++ b/js/Branching/GotoTagVisibility.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'tag'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'arg1'
p1
diff --git a/js/Branching/GotoTagVisibilityMO.js b/js/Branching/GotoTagVisibilityMO.js
index 65c93537..91f935e4 100644
--- a/js/Branching/GotoTagVisibilityMO.js
+++ b/js/Branching/GotoTagVisibilityMO.js
@@ -31,8 +31,8 @@ function GotoTagVisibilityMO() {
GotoTagVisibilityMO.prototype.set = function GotoTagVisibilityMO() {
this.tag = arguments[0]["tag"]
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.tag,exprs] = scicos_getvalue("Set parameters",["GotoTag"],list("str",-1),exprs);
@@ -44,9 +44,9 @@ function GotoTagVisibilityMO() {
var needcompile = 4;
var y = needcompile;
}
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.opar = list(new ScilabDouble([this.tag]));
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/GotoTagVisibilityMO.pickle b/js/Branching/GotoTagVisibilityMO.pickle
index ebf3fd56..a7889058 100644
--- a/js/Branching/GotoTagVisibilityMO.pickle
+++ b/js/Branching/GotoTagVisibilityMO.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'tag'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'arg1'
p1
diff --git a/js/Branching/ISELECT_f.js b/js/Branching/ISELECT_f.js
index 4ae441a3..a4953e7b 100644
--- a/js/Branching/ISELECT_f.js
+++ b/js/Branching/ISELECT_f.js
@@ -31,8 +31,8 @@ function ISELECT_f() {
this.nout = parseFloat(arguments[0]["nout"])
this.z0 = parseFloat(arguments[0]["z0"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.nout,this.z0,exprs] = scicos_getvalue("Set parameters",["number of outputs","initial connected output"],list("vec",1,"vec",1),exprs);
@@ -42,14 +42,14 @@ function ISELECT_f() {
if (this.z0>this.nout||this.z0<=0) {
message("initial connected input is not a valid input port number");
} else {
- var tmpvar0 = check_io(this.model,graphics,-1,-ones(this.nout,1),ones(this.nout,1),[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,-1,-ones(this.nout,1),ones(this.nout,1),[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.dstate = new ScilabDouble([this.z0-1]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/ISELECT_f.pickle b/js/Branching/ISELECT_f.pickle
index 9790452a..b64cb2f9 100644
--- a/js/Branching/ISELECT_f.pickle
+++ b/js/Branching/ISELECT_f.pickle
@@ -10,8 +10,10 @@ aS'z0'
p4
aS'nout'
p5
-atp6
-Rp7
+aS'graphics'
+p6
+atp7
+Rp8
.(dp0
S'model.sim'
p1
diff --git a/js/Branching/ISELECT_m.js b/js/Branching/ISELECT_m.js
index ed09ed94..7b828ea8 100644
--- a/js/Branching/ISELECT_m.js
+++ b/js/Branching/ISELECT_m.js
@@ -41,8 +41,8 @@ function ISELECT_m() {
this.nout = parseFloat(arguments[0]["nout"])
this.z0 = parseFloat(arguments[0]["z0"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.typ,this.nout,this.z0,exprs] = scicos_getvalue("Set parameters",["Datatype(1= real double 2=Complex 3=int32 ...)","number of outputs","initial connected output"],list("vec",1,"vec",1,"vec",1),exprs);
@@ -60,14 +60,14 @@ function ISELECT_m() {
if (ok) {
var out = [-ones(this.nout,1),-2*ones(this.nout,1)];
var in1 = [-1,-2];
- var tmpvar0 = set_io(this.model,graphics,list(in1,it),list(out,ot),ones(this.nout,1),[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = set_io(this.model,this.graphics,list(in1,it),list(out,ot),ones(this.nout,1),[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.dstate = new ScilabDouble([this.z0]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/ISELECT_m.pickle b/js/Branching/ISELECT_m.pickle
index f1b30901..e4aa840a 100644
--- a/js/Branching/ISELECT_m.pickle
+++ b/js/Branching/ISELECT_m.pickle
@@ -2,18 +2,20 @@ c__builtin__
set
p0
((lp1
-S'x'
+S'typ'
p2
-aS'model'
+aS'graphics'
p3
-aS'z0'
+aS'x'
p4
-aS'typ'
+aS'model'
p5
-aS'nout'
+aS'z0'
p6
-atp7
-Rp8
+aS'nout'
+p7
+atp8
+Rp9
.(dp0
S'model.dstate'
p1
diff --git a/js/Branching/MUX.js b/js/Branching/MUX.js
index 7d77713f..9bfc3ef9 100644
--- a/js/Branching/MUX.js
+++ b/js/Branching/MUX.js
@@ -25,8 +25,8 @@ function MUX() {
MUX.prototype.set = function MUX() {
this.in1 = parseFloat(arguments[0]["in1"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.in1,exprs] = scicos_getvalue("Set MUX block parameters","number of input ports or vector of sizes",list("intvec",-1),exprs);
@@ -38,9 +38,9 @@ function MUX() {
message("Block must have at least two input ports and at most 31");
var ok = false;
} else {
- var tmpvar0 = check_io(this.model,graphics,-transpose([1:this.in1]),0,[],[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,-transpose([1:this.in1]),0,[],[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
}
} else {
@@ -53,9 +53,9 @@ function MUX() {
} else {
var nout = sum(this.in1);
}
- var tmpvar1 = check_io(this.model,graphics,this.in1.slice(),nout,[],[])
- this.model = tmpvar1[0]
- var graphics = tmpvar1[1]
+ var tmpvar1 = check_io(this.model,this.graphics,this.in1.slice(),nout,[],[]);
+ this.model = tmpvar1[0];
+ this.graphics = tmpvar1[1];
var ok = tmpvar1[2];
if (ok) {
this.in1 = size(this.in1,"*");
@@ -63,9 +63,9 @@ function MUX() {
}
}
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.ipar = new ScilabDouble([this.in1]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/MUX.pickle b/js/Branching/MUX.pickle
index 2dbb6528..bc3a11ca 100644
--- a/js/Branching/MUX.pickle
+++ b/js/Branching/MUX.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'in1'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'model.sim'
p1
diff --git a/js/Branching/MUX_f.js b/js/Branching/MUX_f.js
index f3bedb89..ea6bf4f3 100644
--- a/js/Branching/MUX_f.js
+++ b/js/Branching/MUX_f.js
@@ -25,8 +25,8 @@ function MUX_f() {
MUX_f.prototype.set = function MUX_f() {
this.in1 = parseFloat(arguments[0]["in1"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.in1,exprs] = scicos_getvalue("Set MUX block parameters","number of input ports or vector of sizes",list("vec",-1),exprs);
@@ -38,9 +38,9 @@ function MUX_f() {
message("Block must have at least two input ports and at most eight");
var ok = false;
} else {
- var tmpvar0 = check_io(this.model,graphics,-transpose([1:this.in1]),0,[],[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,-transpose([1:this.in1]),0,[],[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
}
} else {
@@ -53,9 +53,9 @@ function MUX_f() {
} else {
var nout = sum(this.in1);
}
- var tmpvar1 = check_io(this.model,graphics,this.in1.slice(),nout,[],[])
- this.model = tmpvar1[0]
- var graphics = tmpvar1[1]
+ var tmpvar1 = check_io(this.model,this.graphics,this.in1.slice(),nout,[],[]);
+ this.model = tmpvar1[0];
+ this.graphics = tmpvar1[1];
var ok = tmpvar1[2];
if (ok) {
this.in1 = size(this.in1,"*");
@@ -63,9 +63,9 @@ function MUX_f() {
}
}
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.ipar = new ScilabDouble([this.in1]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/MUX_f.pickle b/js/Branching/MUX_f.pickle
index 2dbb6528..bc3a11ca 100644
--- a/js/Branching/MUX_f.pickle
+++ b/js/Branching/MUX_f.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'in1'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'model.sim'
p1
diff --git a/js/Branching/M_SWITCH.js b/js/Branching/M_SWITCH.js
index 3b75f7e2..9d893685 100644
--- a/js/Branching/M_SWITCH.js
+++ b/js/Branching/M_SWITCH.js
@@ -32,8 +32,8 @@ function M_SWITCH() {
this.base = parseFloat(arguments[0]["base"])
this.rule = arguments[0]["rule"]
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.nin,this.base,this.rule,exprs] = scicos_getvalue("Set parameters",["number of inputs","zero base indexing (0), otherwise 1","rounding rule: int (0), round (1), ceil (2), floor (3)"],list("vec",1,"vec",1,"vec",1),exprs);
@@ -60,14 +60,14 @@ function M_SWITCH() {
}
var it = [[-1],[-2*ones(this.nin,1)]];
var ot = -2;
- var tmpvar0 = set_io(this.model,graphics,list(in1,it),list(out,ot),[],[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = set_io(this.model,this.graphics,list(in1,it),list(out,ot),[],[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.ipar = new ScilabDouble([this.base],[this.rule]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/M_SWITCH.pickle b/js/Branching/M_SWITCH.pickle
index 2736cffb..b2f42465 100644
--- a/js/Branching/M_SWITCH.pickle
+++ b/js/Branching/M_SWITCH.pickle
@@ -2,18 +2,20 @@ c__builtin__
set
p0
((lp1
-S'x'
+S'nin'
p2
-aS'model'
+aS'rule'
p3
aS'base'
p4
-aS'nin'
+aS'graphics'
p5
-aS'rule'
+aS'x'
p6
-atp7
-Rp8
+aS'model'
+p7
+atp8
+Rp9
.(dp0
S'arg1'
p1
diff --git a/js/Branching/NRMSOM_f.js b/js/Branching/NRMSOM_f.js
index ae1cc248..b6a26ec8 100644
--- a/js/Branching/NRMSOM_f.js
+++ b/js/Branching/NRMSOM_f.js
@@ -26,21 +26,21 @@ function NRMSOM_f() {
NRMSOM_f.prototype.set = function NRMSOM_f() {
this.nin = parseFloat(arguments[0]["nin"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.nin,exprs] = scicos_getvalue("Set parameters",["number of inputs"],list("vec",1),exprs);
if (!ok) {
break;
}
- var tmpvar0 = check_io(this.model,graphics,-ones(this.nin,1),-1,[],[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,-ones(this.nin,1),-1,[],[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
- graphics.exprs = exprs;
- this.x.graphics = graphics;
+ this.graphics.exprs = new ScilabDouble([exprs]);
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/NRMSOM_f.pickle b/js/Branching/NRMSOM_f.pickle
index 20fb9bc4..95b68196 100644
--- a/js/Branching/NRMSOM_f.pickle
+++ b/js/Branching/NRMSOM_f.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'nin'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'model.sim'
p1
diff --git a/js/Branching/RELAY_f.js b/js/Branching/RELAY_f.js
index 3052e95c..afb1673b 100644
--- a/js/Branching/RELAY_f.js
+++ b/js/Branching/RELAY_f.js
@@ -32,8 +32,8 @@ function RELAY_f() {
this.nin = parseFloat(arguments[0]["nin"])
this.z0 = arguments[0]["z0"]
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
var ipar = this.model.ipar;
while (true) {
@@ -44,14 +44,14 @@ function RELAY_f() {
if (this.z0>this.nin||this.z0<=0) {
message("initial connected input is not a valid input port number");
} else {
- var tmpvar0 = check_io(this.model,graphics,-ones(this.nin,1),-1,ones(this.nin,1),[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,-ones(this.nin,1),-1,ones(this.nin,1),[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.dstate = new ScilabString([this.z0-1]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/RELAY_f.pickle b/js/Branching/RELAY_f.pickle
index 8e77d212..cb090d13 100644
--- a/js/Branching/RELAY_f.pickle
+++ b/js/Branching/RELAY_f.pickle
@@ -10,8 +10,10 @@ aS'z0'
p4
aS'nin'
p5
-atp6
-Rp7
+aS'graphics'
+p6
+atp7
+Rp8
.(dp0
S'model.dstate'
p1
diff --git a/js/Branching/SCALAR2VECTOR.js b/js/Branching/SCALAR2VECTOR.js
index a775f16e..43d92954 100644
--- a/js/Branching/SCALAR2VECTOR.js
+++ b/js/Branching/SCALAR2VECTOR.js
@@ -25,8 +25,8 @@ function SCALAR2VECTOR() {
SCALAR2VECTOR.prototype.set = function SCALAR2VECTOR() {
this.nout = parseFloat(arguments[0]["nout"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.nout,exprs] = scicos_getvalue("Set block parameters",["size of output (-1: if don\'t know)"],list("vec",1),exprs);
@@ -39,14 +39,14 @@ function SCALAR2VECTOR() {
var ok = false;
}
if (ok) {
- var tmpvar0 = check_io(this.model,graphics,[1],this.nout,[],[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,[1],this.nout,[],[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
}
if (ok) {
- graphics.exprs = exprs;
- this.x.graphics = graphics;
+ this.graphics.exprs = new ScilabDouble([exprs]);
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/SCALAR2VECTOR.pickle b/js/Branching/SCALAR2VECTOR.pickle
index d1ff3945..ed70c2af 100644
--- a/js/Branching/SCALAR2VECTOR.pickle
+++ b/js/Branching/SCALAR2VECTOR.pickle
@@ -8,8 +8,10 @@ aS'model'
p3
aS'nout'
p4
-atp5
-Rp6
+aS'graphics'
+p5
+atp6
+Rp7
.(dp0
S'model.sim'
p1
diff --git a/js/Branching/SELECT_f.js b/js/Branching/SELECT_f.js
index 9cca42a2..73bdc8eb 100644
--- a/js/Branching/SELECT_f.js
+++ b/js/Branching/SELECT_f.js
@@ -31,8 +31,8 @@ function SELECT_f() {
this.nin = parseFloat(arguments[0]["nin"])
this.z0 = parseFloat(arguments[0]["z0"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.nin,this.z0,exprs] = scicos_getvalue("Set parameters",["number of inputs","initial connected input"],list("vec",1,"vec",1),exprs);
@@ -42,14 +42,14 @@ function SELECT_f() {
if (this.z0>this.nin||this.z0<=0) {
message("initial connected input is not a valid input port number");
} else {
- var tmpvar0 = check_io(this.model,graphics,-ones(this.nin,1),-1,ones(this.nin,1),[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,-ones(this.nin,1),-1,ones(this.nin,1),[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.dstate = new ScilabDouble([this.z0-1]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/SELECT_f.pickle b/js/Branching/SELECT_f.pickle
index 8a09ab8c..33b87e7a 100644
--- a/js/Branching/SELECT_f.pickle
+++ b/js/Branching/SELECT_f.pickle
@@ -10,8 +10,10 @@ aS'z0'
p4
aS'nin'
p5
-atp6
-Rp7
+aS'graphics'
+p6
+atp7
+Rp8
.(dp0
S'model.sim'
p1
diff --git a/js/Branching/SELECT_m.js b/js/Branching/SELECT_m.js
index af52a5b0..32e62c27 100644
--- a/js/Branching/SELECT_m.js
+++ b/js/Branching/SELECT_m.js
@@ -41,8 +41,8 @@ function SELECT_m() {
this.nin = parseFloat(arguments[0]["nin"])
this.z0 = parseFloat(arguments[0]["z0"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.typ,this.nin,this.z0,exprs] = scicos_getvalue("Set parameters",["Datatype(1= real double 2=Complex 3=int32 ..)","number of inputs","initial connected input"],list("vec",1,"vec",1,"vec",1),exprs);
@@ -60,14 +60,14 @@ function SELECT_m() {
if (ok) {
var in1 = [-ones(this.nin,1),-2*ones(this.nin,1)];
var out = [-1,-2];
- var tmpvar0 = set_io(this.model,graphics,list(in1,it),list(out,ot),ones(this.nin,1),[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = set_io(this.model,this.graphics,list(in1,it),list(out,ot),ones(this.nin,1),[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.dstate = new ScilabDouble([this.z0]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/SELECT_m.pickle b/js/Branching/SELECT_m.pickle
index 5c1a1a33..f9c2cfa9 100644
--- a/js/Branching/SELECT_m.pickle
+++ b/js/Branching/SELECT_m.pickle
@@ -2,18 +2,20 @@ c__builtin__
set
p0
((lp1
-S'x'
+S'nin'
p2
-aS'model'
+aS'typ'
p3
-aS'z0'
+aS'graphics'
p4
-aS'typ'
+aS'x'
p5
-aS'nin'
+aS'model'
p6
-atp7
-Rp8
+aS'z0'
+p7
+atp8
+Rp9
.(dp0
S'model.dstate'
p1
diff --git a/js/Branching/SWITCH2.js b/js/Branching/SWITCH2.js
index 3667651f..04f504b5 100644
--- a/js/Branching/SWITCH2.js
+++ b/js/Branching/SWITCH2.js
@@ -36,8 +36,8 @@ function SWITCH2() {
this.thra = arguments[0]["thra"]
this.nzz = parseFloat(arguments[0]["nzz"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.rule,this.thra,this.nzz,exprs] = scicos_getvalue("Set parameters",["pass first input if: u2>=a (0), u2>a (1), u2~=a (2)","threshold a","use zero crossing: yes (1), no (0)"],list("vec",1,"vec",1,"vec",1),exprs);
@@ -51,7 +51,7 @@ function SWITCH2() {
if ((this.rule>2)) {
this.rule = 2;
}
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.ipar = new ScilabDouble([this.rule]);
this.model.rpar = new ScilabDouble([this.thra]);
if (this.nzz!=0) {
@@ -61,7 +61,7 @@ function SWITCH2() {
this.model.nmode = new ScilabDouble([0]);
this.model.nzcross = new ScilabDouble([0]);
}
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/SWITCH2.pickle b/js/Branching/SWITCH2.pickle
index 4fad17f0..c7e23169 100644
--- a/js/Branching/SWITCH2.pickle
+++ b/js/Branching/SWITCH2.pickle
@@ -2,18 +2,20 @@ c__builtin__
set
p0
((lp1
-S'x'
+S'nzz'
p2
-aS'model'
+aS'rule'
p3
-aS'nzz'
+aS'thra'
p4
-aS'rule'
+aS'graphics'
p5
-aS'thra'
+aS'x'
p6
-atp7
-Rp8
+aS'model'
+p7
+atp8
+Rp9
.(dp0
S'arg1'
p1
diff --git a/js/Branching/SWITCH2_m.js b/js/Branching/SWITCH2_m.js
index 087fe226..798077ad 100644
--- a/js/Branching/SWITCH2_m.js
+++ b/js/Branching/SWITCH2_m.js
@@ -41,8 +41,8 @@ function SWITCH2_m() {
this.thra = arguments[0]["thra"]
this.nzz = parseFloat(arguments[0]["nzz"])
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
while (true) {
[ok,this.ot,this.rule,this.thra,this.nzz,exprs] = scicos_getvalue("Set parameters",["Datatype (1=real double 2=complex 3=int32 ...)","pass first input if: u2>=a (0), u2>a (1), u2~=a (2)","threshold a","use zero crossing: yes (1), no (0)"],list("vec",1,"vec",1,"vec",1,"vec",1),exprs);
@@ -56,7 +56,7 @@ function SWITCH2_m() {
if ((this.rule>2)) {
this.rule = 2;
}
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.ipar = new ScilabDouble([this.rule]);
this.model.rpar = new ScilabDouble([this.thra]);
if (this.nzz!=0) {
@@ -76,13 +76,13 @@ function SWITCH2_m() {
it[3-1] = this.ot;
var in1 = [this.model.in1,this.model.in2];
var out = [this.model.out,this.model.out2];
- var tmpvar0 = set_io(this.model,graphics,list(in1,it),list(out,this.ot),[],[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = set_io(this.model,this.graphics,list(in1,it),list(out,this.ot),[],[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
}
if (ok) {
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/SWITCH2_m.pickle b/js/Branching/SWITCH2_m.pickle
index 5b66bbf0..b798f56f 100644
--- a/js/Branching/SWITCH2_m.pickle
+++ b/js/Branching/SWITCH2_m.pickle
@@ -8,14 +8,16 @@ aS'rule'
p3
aS'thra'
p4
-aS'x'
+aS'graphics'
p5
-aS'model'
+aS'x'
p6
-aS'ot'
+aS'model'
p7
-atp8
-Rp9
+aS'ot'
+p8
+atp9
+Rp10
.(dp0
S'arg1'
p1
diff --git a/js/Branching/SWITCH_f.js b/js/Branching/SWITCH_f.js
index 87d7a165..68375cea 100644
--- a/js/Branching/SWITCH_f.js
+++ b/js/Branching/SWITCH_f.js
@@ -31,8 +31,8 @@ function SWITCH_f() {
this.nin = parseFloat(arguments[0]["nin"])
this.z0 = arguments[0]["z0"]
this.x = arg1;
- var graphics = arg1.graphics;
- var exprs = graphics.exprs;
+ this.graphics = arg1.graphics;
+ var exprs = this.graphics.exprs;
this.model = arg1.model;
var ipar = this.model.ipar;
while (true) {
@@ -43,14 +43,14 @@ function SWITCH_f() {
if (this.z0>this.nin||this.z0<=0) {
message("initial connected input is not a valid input port number");
} else {
- var tmpvar0 = check_io(this.model,graphics,-ones(this.nin,1),-1,[],[])
- this.model = tmpvar0[0]
- var graphics = tmpvar0[1]
+ var tmpvar0 = check_io(this.model,this.graphics,-ones(this.nin,1),-1,[],[]);
+ this.model = tmpvar0[0];
+ this.graphics = tmpvar0[1];
var ok = tmpvar0[2];
if (ok) {
- graphics.exprs = exprs;
+ this.graphics.exprs = new ScilabDouble([exprs]);
this.model.ipar = new ScilabString([this.z0-1]);
- this.x.graphics = graphics;
+ this.x.graphics = this.graphics;
this.x.model = this.model;
break;
}
diff --git a/js/Branching/SWITCH_f.pickle b/js/Branching/SWITCH_f.pickle
index aa8254c3..bd0fe2a2 100644
--- a/js/Branching/SWITCH_f.pickle
+++ b/js/Branching/SWITCH_f.pickle
@@ -10,8 +10,10 @@ aS'z0'
p4
aS'nin'
p5
-atp6
-Rp7
+aS'graphics'
+p6
+atp7
+Rp8
.(dp0
S'arg1'
p1