summaryrefslogtreecommitdiff
path: root/js/Threshold/GENERAL_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-09-17 16:11:31 +0530
committerSunil Shetye2018-10-08 11:24:12 +0530
commitf389f174481df676c841ebcc87a7b8b313921bbc (patch)
tree2551fd05222a78d4441f5883a97980bda1d6b241 /js/Threshold/GENERAL_f.js
parent4dc055ae23c9e33e459b7b583a67f92b5972a062 (diff)
downloadsci2js-f389f174481df676c841ebcc87a7b8b313921bbc.tar.gz
sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.tar.bz2
sci2js-f389f174481df676c841ebcc87a7b8b313921bbc.zip
add importset and getContainer to combined.js
Diffstat (limited to 'js/Threshold/GENERAL_f.js')
-rw-r--r--js/Threshold/GENERAL_f.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/js/Threshold/GENERAL_f.js b/js/Threshold/GENERAL_f.js
index af7e11dd..ef70faba 100644
--- a/js/Threshold/GENERAL_f.js
+++ b/js/Threshold/GENERAL_f.js
@@ -30,8 +30,8 @@ function GENERAL_f() {
var nout = sum(this.out);
this.set_param_popup_title = "Set General Zero-Crossing parameters";
var options = {
- in1:["Input size",this.in1],
- out:["Number of event output",this.out],
+ in1:["Input size",this.in1],
+ out:["Number of event output",this.out],
}
return options;
}
@@ -77,4 +77,11 @@ function GENERAL_f() {
GENERAL_f.prototype.get_popup_title = function GENERAL_f() {
return this.set_param_popup_title;
}
+ GENERAL_f.prototype.importset = function GENERAL_f() {
+ var graphics = this.x.graphics;
+ var ary = getData(graphics.exprs);
+ this.in1 = ary[0];
+ this.out = ary[1];
+ }
+ GENERAL_f.prototype.getContainer = function GENERAL_f() { return new BasicBlock(this.x); }
}