summaryrefslogtreecommitdiff
path: root/js/Misc/scifunc_block_m.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-02 22:51:03 +0530
committerSunil Shetye2018-07-02 22:51:03 +0530
commitca1a67f78f7de40a7956c69e41f4ddae2542f4f2 (patch)
tree6a07bd0428e542567726ff7325fcb71203ad6d15 /js/Misc/scifunc_block_m.js
parent5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (diff)
downloadsci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.gz
sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.bz2
sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.zip
add options block
Diffstat (limited to 'js/Misc/scifunc_block_m.js')
-rw-r--r--js/Misc/scifunc_block_m.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/Misc/scifunc_block_m.js b/js/Misc/scifunc_block_m.js
index b96f422c..ddfb8bbb 100644
--- a/js/Misc/scifunc_block_m.js
+++ b/js/Misc/scifunc_block_m.js
@@ -38,6 +38,18 @@ function scifunc_block_m() {
return this.x;
}
scifunc_block_m.prototype.get = function scifunc_block_m() {
+ var options = {
+ i:["input ports sizes",this.i],
+ o:["output port sizes",this.o],
+ ci:["input event ports sizes",this.ci],
+ co:["output events ports sizes",this.co],
+ xx:["initial continuous state",this.xx],
+ z:["initial discrete state",this.z],
+ rpar:["System parameters vector",this.rpar],
+ auto0:["initial firing vector (<0 for no firing)",this.auto0],
+ deptime:["is block always active (0:no, 1:yes)",this.deptime],
+ }
+ return options;
}
scifunc_block_m.prototype.set = function scifunc_block_m() {
this.i = parseFloat((arguments[0]["i"]))