summaryrefslogtreecommitdiff
path: root/js/MatrixOp/RICC.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/MatrixOp/RICC.js')
-rw-r--r--js/MatrixOp/RICC.js47
1 files changed, 24 insertions, 23 deletions
diff --git a/js/MatrixOp/RICC.js b/js/MatrixOp/RICC.js
index 048958fa..037c41eb 100644
--- a/js/MatrixOp/RICC.js
+++ b/js/MatrixOp/RICC.js
@@ -22,39 +22,40 @@ function RICC() {
model.dep_ut = [true,false];
label = [[sci2exp(1)],[sci2exp(1)]];
gr_i = [];
- x = standard_define([2,2],model,label,gr_i);
+ this.x = standard_define([2,2],model,label,gr_i);
}
RICC.prototype.details = function RICC() {
+ return this.x;
}
RICC.prototype.get = function RICC() {
}
RICC.prototype.set = function RICC() {
- x = arg1;
+ this.x = arg1;
graphics = arg1.graphics;
label = graphics.exprs;
model = arg1.model;
if (size(label,"*")==14) {
- label[9-1] = [];
-}
+ label[9-1] = [];
+ }
while (true) {
- [ok,tpe,mod,exprs] = scicos_getvalue("Set RICC Block",[["Type (1=Cont 2=Disc)"],["Model(1=Schr 2=sign(cont) inv(disc))"]],list("vec",1,"vec",1),label);
- if (!ok) {
-break;
-}
- in1 = [model.in1,model.in2];
- out = [model.out,model.out2];
- it = [1,1,1];
- ot = 1;
- label = exprs;
- [model,graphics,ok] = set_io(model,graphics,list(in1,it),list(out,ot),[],[]);
- if (ok) {
- model.ipar = [[tpe],[mod]];
- graphics.exprs = label;
- arg1.graphics = graphics;
- arg1.model = model;
- x = arg1;
-break;
-}
-}
+ [ok,tpe,mod,exprs] = scicos_getvalue("Set RICC Block",[["Type (1=Cont 2=Disc)"],["Model(1=Schr 2=sign(cont) inv(disc))"]],list("vec",1,"vec",1),label);
+ if (!ok) {
+ break;
+ }
+ in1 = [model.in1,model.in2];
+ out = [model.out,model.out2];
+ it = [1,1,1];
+ ot = 1;
+ label = exprs;
+ [model,graphics,ok] = set_io(model,graphics,list(in1,it),list(out,ot),[],[]);
+ if (ok) {
+ model.ipar = [[tpe],[mod]];
+ graphics.exprs = label;
+ arg1.graphics = graphics;
+ arg1.model = model;
+ this.x = arg1;
+ break;
+ }
+ }
}
}