diff options
author | Chhavi | 2016-07-03 11:20:26 +0000 |
---|---|---|
committer | Chhavi | 2016-07-03 11:20:26 +0000 |
commit | d8e4f55fd7ae4651236714035e3408ec9118aa70 (patch) | |
tree | 07afcd2bdc9adf67182c5e9fb336c15eaaf483c3 | |
parent | 8c667733722b35f9500b06057e4a4c2505c47bc2 (diff) | |
download | xcos-on-web-d8e4f55fd7ae4651236714035e3408ec9118aa70.tar.gz xcos-on-web-d8e4f55fd7ae4651236714035e3408ec9118aa70.tar.bz2 xcos-on-web-d8e4f55fd7ae4651236714035e3408ec9118aa70.zip |
IN_f
-rw-r--r-- | data_structures_correct/IN_f.js | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/data_structures_correct/IN_f.js b/data_structures_correct/IN_f.js new file mode 100644 index 0000000..7527ab6 --- /dev/null +++ b/data_structures_correct/IN_f.js @@ -0,0 +1,48 @@ +function IN_f () { + + IN_f.prototype.internal = function IN_f() { + this.prt = 1; + + var model = scicos_model(); + model.sim = new ScilabString(["input"]); + model.out = new ScilabDouble([-1]); + model.out2 = new ScilabDouble([-2]); + model.outtyp = new ScilabDouble([-1]); + model.ipar=new ScilabDouble([this.prt]); + model.blocktype = new ScilabString(["c"]); + model.dep_ut = new ScilabBoolean([false,false]); + + var exprs = new ScilabString([sci2exp(this.prt)]); + + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IN_f\",sz(1),sz(2));"]); + var block=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i); + block.graphics.style = new ScilabString(["IN_f"]); // changed + block.graphics.out_implicit = new ScilabString(["E"]); + block.graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]); + block.graphics.out_label = new ScilabString([""]); + return block; + } + + IN_f.prototype.define = function IN_f() { + this.prt = 1; + + var model = scicos_model(); + model.sim = new ScilabString(["input"]); + model.out = new ScilabDouble([-1]); + model.out2 = new ScilabDouble([-2]); + model.outtyp = new ScilabDouble([-1]); + model.ipar=new ScilabDouble([this.prt]); + model.blocktype = new ScilabString(["c"]); + model.dep_ut = new ScilabBoolean([false,false]); + + var exprs = new ScilabString([sci2exp(this.prt)]); + + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IN_f\",sz(1),sz(2));"]); + this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i); + return new ExplicitInBlock(this.x); + } + + IN_f.prototype.details = function IN_f() { + return this.x; + } +} |