diff options
author | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
commit | ca1a67f78f7de40a7956c69e41f4ddae2542f4f2 (patch) | |
tree | 6a07bd0428e542567726ff7325fcb71203ad6d15 /js/Misc/generic_block.js | |
parent | 5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (diff) | |
download | sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.gz sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.bz2 sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.zip |
add options block
Diffstat (limited to 'js/Misc/generic_block.js')
-rw-r--r-- | js/Misc/generic_block.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/Misc/generic_block.js b/js/Misc/generic_block.js index eab48a00..6c774b38 100644 --- a/js/Misc/generic_block.js +++ b/js/Misc/generic_block.js @@ -25,6 +25,22 @@ function generic_block() { return this.x; } generic_block.prototype.get = function generic_block() { + var options = { + function_name:["simulation function",this.function_name], + funtyp:["function type (0,1,2,..)",this.funtyp], + 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:["Real parameters vector",this.rpar], + ipar:["Integer parameters vector",this.ipar], + auto0:["initial firing vector (<0 for no firing)",this.auto0], + depu:["direct feedthrough (y or n)",this.depu], + dept:["time dependence (y or n)",this.dept], + } + return options; } generic_block.prototype.set = function generic_block() { this.function_name = parseFloat((arguments[0]["function_name"])) |