diff options
author | ASP1234 | 2016-07-12 10:08:17 +0000 |
---|---|---|
committer | ASP1234 | 2016-07-12 10:08:17 +0000 |
commit | 21eb583fa4e278c8bbeaa7e760a3004760cd667d (patch) | |
tree | 321111e372b6f5b5f1c7e84328b43e5ccaf464a7 /data_structures_correct/DELAY_f.js | |
parent | b0434f8e6acae956aedc0239da70be326fdcf2a3 (diff) | |
parent | a0a37b2eb0f8912f5f62166c57b760d35d5760f0 (diff) | |
download | xcos-on-web-21eb583fa4e278c8bbeaa7e760a3004760cd667d.tar.gz xcos-on-web-21eb583fa4e278c8bbeaa7e760a3004760cd667d.tar.bz2 xcos-on-web-21eb583fa4e278c8bbeaa7e760a3004760cd667d.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'data_structures_correct/DELAY_f.js')
-rw-r--r-- | data_structures_correct/DELAY_f.js | 205 |
1 files changed, 105 insertions, 100 deletions
diff --git a/data_structures_correct/DELAY_f.js b/data_structures_correct/DELAY_f.js index 14e968c..650ac12 100644 --- a/data_structures_correct/DELAY_f.js +++ b/data_structures_correct/DELAY_f.js @@ -1,116 +1,121 @@ -function DELAY_f () { +function DELAY_f() { - DELAY_f.prototype.define =function DELAY_f() { - var evtdly = new EVTDLY_f().internal(); - evtdly.graphics.orig = new ScilabDouble([243,296]); - evtdly.graphics.sz = new ScilabDouble([40,40]); - evtdly.graphics.flip = new ScilabBoolean([true]); - evtdly.graphics.exprs = new ScilabString(["0.1"],["0"]); - evtdly.graphics.pein = new ScilabDouble([10]); - evtdly.graphics.peout = new ScilabDouble([7]); - evtdly.model.rpar = new ScilabDouble([0.1]); - evtdly.model.firing = new ScilabDouble([0]); - evtdly.model.uid = new ScilabString([count]); // changed + DELAY_f.prototype.define = function DELAY_f() { + var evtdly = new EVTDLY_f().internal(); + evtdly.graphics.orig = new ScilabDouble([243, 296]); + evtdly.graphics.sz = new ScilabDouble([40, 40]); + evtdly.graphics.flip = new ScilabBoolean([true]); + evtdly.graphics.exprs = new ScilabString(["0.1"], ["0"]); + evtdly.graphics.pein = new ScilabDouble([10]); + evtdly.graphics.peout = new ScilabDouble([7]); + evtdly.model.rpar = new ScilabDouble([0.1]); + evtdly.model.firing = new ScilabDouble([0]); + evtdly.model.uid = new ScilabString([count]); // changed evtdly.doc = list(new ScilabString([count++])); evtdly.model.outtyp = new ScilabDouble(); - - var register = new REGISTER_f().internal(); - register.graphics.orig = new ScilabDouble([238,195]); - register.graphics.sz = new ScilabDouble([50,50]); - register.graphics.flip = new ScilabBoolean([true]); - register.graphics.exprs = new ScilabString(["0;0;0;0;0;0;0;0;0;0"]); - register.graphics.pin = new ScilabDouble([6]); - register.graphics.pout = new ScilabDouble([5]); - register.graphics.pein = new ScilabDouble([9]); - register.model.uid = new ScilabString([count]); // changed + + var register = new REGISTER_f().internal(); + register.graphics.orig = new ScilabDouble([238, 195]); + register.graphics.sz = new ScilabDouble([50, 50]); + register.graphics.flip = new ScilabBoolean([true]); + register.graphics.exprs = new ScilabString(["0;0;0;0;0;0;0;0;0;0"]); + register.graphics.pin = new ScilabDouble([6]); + register.graphics.pout = new ScilabDouble([5]); + register.graphics.pein = new ScilabDouble([9]); + register.model.uid = new ScilabString([count]); // changed register.doc = list(new ScilabString([count++])); register.model.in2 = new ScilabDouble([1]); register.model.intyp = new ScilabDouble([1]); register.model.out2 = new ScilabDouble([1]); - - var input_port = new IN_f().internal(); - input_port.graphics.orig = new ScilabDouble([92,210]); - input_port.graphics.sz = new ScilabDouble([20,20]); - input_port.graphics.flip = new ScilabBoolean([true]); - input_port.graphics.exprs = new ScilabString(["1"],["1"]); - input_port.graphics.pout = new ScilabDouble([6]); - input_port.model.ipar = new ScilabDouble([1]); - input_port.model.uid = new ScilabString([count]); // changed + + var input_port = new IN_f().internal(); + input_port.graphics.orig = new ScilabDouble([92, 210]); + input_port.graphics.sz = new ScilabDouble([20, 20]); + input_port.graphics.flip = new ScilabBoolean([true]); + input_port.graphics.exprs = new ScilabString(["1"], ["1"]); + input_port.graphics.pout = new ScilabDouble([6]); + input_port.model.ipar = new ScilabDouble([1]); + input_port.model.uid = new ScilabString([count]); // changed input_port.doc = list(new ScilabString([count++])); input_port.model.outtyp = new ScilabDouble([-1]); - - var output_port = new OUT_f().internal(); - output_port.graphics.orig = new ScilabDouble([440,210]); - output_port.graphics.sz = new ScilabDouble([20,20]); - output_port.graphics.flip = new ScilabBoolean([true]); - output_port.graphics.exprs = new ScilabString(["1"],["1"]); - output_port.graphics.pin = new ScilabDouble([5]); - output_port.model.ipar = new ScilabDouble([1]); - output_port.model.uid = new ScilabString([count]); // changed + + var output_port = new OUT_f().internal(); + output_port.graphics.orig = new ScilabDouble([440, 210]); + output_port.graphics.sz = new ScilabDouble([20, 20]); + output_port.graphics.flip = new ScilabBoolean([true]); + output_port.graphics.exprs = new ScilabString(["1"], ["1"]); + output_port.graphics.pin = new ScilabDouble([5]); + output_port.model.ipar = new ScilabDouble([1]); + output_port.model.uid = new ScilabString([count]); // changed output_port.doc = list(new ScilabString([count++])); output_port.model.outtyp = new ScilabDouble(); - - var split = new CLKSPLIT_f().internal(); - split.graphics.orig = new ScilabDouble([263,271.2]); - split.graphics.pein = new ScilabDouble([7]); - split.graphics.peout = new ScilabDouble([9],[10]); - split.model.uid = new ScilabString([count]); // changed + + var split = new CLKSPLIT_f().internal(); + split.graphics.orig = new ScilabDouble([263, 271.2]); + split.graphics.pein = new ScilabDouble([7]); + split.graphics.peout = new ScilabDouble([9], [10]); + split.model.uid = new ScilabString([count]); // changed split.doc = list(new ScilabString([count++])); - - var diagram = scicos_diagram(); - diagram.objs.push(input_port); - diagram.objs.push(output_port); - diagram.objs.push(register); - diagram.objs.push(evtdly); - diagram.objs.push(split); - diagram.objs.push(scicos_link({ - xx: new ScilabDouble([296.6],[440]), - yy: new ScilabDouble([220],[220]), - from: new ScilabDouble([3,1,0]), - to: new ScilabDouble([2,1,1])})); - diagram.objs.push(scicos_link({ - xx: new ScilabDouble([112],[229.4]), - yy: new ScilabDouble([220],[220]), - from: new ScilabDouble([1,1,0]), - to: new ScilabDouble([3,1,1])})); - diagram.objs.push(scicos_link({ - xx: new ScilabDouble([263],[263]), - yy: new ScilabDouble([290.3],[271.2]), - ct: new ScilabDouble([5,-1]), - from: new ScilabDouble([4,1,0]), - to: new ScilabDouble([5,1,1])})); - diagram.objs.push(scicos_link({ - xx: new ScilabDouble([263],[263]), - yy: new ScilabDouble([271.2],[250.7]), - ct: new ScilabDouble([5,-1]), - from: new ScilabDouble([5,1,0]), - to: new ScilabDouble([3,1,1])})); - diagram.objs.push(scicos_link({ - xx: new ScilabDouble([263],[308.6],[308.6],[263],[263]), - yy: new ScilabDouble([271.2],[271.2],[367],[367],[341.7]), - ct: new ScilabDouble([5,-1]), - from: new ScilabDouble([5,2,0]), - to: new ScilabDouble([4,1,1])})); - - this.x=scicos_block(); - this.x.gui = new ScilabString(["DELAY_f"]); - this.x.graphics.sz = new ScilabDouble([2,2]); - this.x.graphics.gr_i = new ScilabDouble(); - this.x.graphics.pin = new ScilabDouble([0]); - this.x.graphics.pout = new ScilabDouble([0]); - this.x.model.sim = new ScilabString(["csuper"]); - this.x.model.in = new ScilabDouble([1]); - this.x.model.out = new ScilabDouble([1]); - this.x.model.blocktype = new ScilabString(["h"]); - this.x.model.dep_ut = new ScilabBoolean([false,false]); - this.x.model.rpar=diagram; - this.x.graphics.in_implicit = new ScilabString(["E"]); - this.x.graphics.in_style = new ScilabString([""]); - this.x.graphics.out_implicit = new ScilabString(["E"]); - this.x.graphics.out_style = new ScilabString([""]); - return new BasicBlock(this.x); + + var diagram = scicos_diagram(); + diagram.objs.push(input_port); + diagram.objs.push(output_port); + diagram.objs.push(register); + diagram.objs.push(evtdly); + diagram.objs.push(split); + diagram.objs.push(scicos_link({ + xx: new ScilabDouble([296.6], [440]), + yy: new ScilabDouble([220], [220]), + from: new ScilabDouble([3, 1, 0]), + to: new ScilabDouble([2, 1, 1]) + })); + diagram.objs.push(scicos_link({ + xx: new ScilabDouble([112], [229.4]), + yy: new ScilabDouble([220], [220]), + from: new ScilabDouble([1, 1, 0]), + to: new ScilabDouble([3, 1, 1]) + })); + diagram.objs.push(scicos_link({ + xx: new ScilabDouble([263], [263]), + yy: new ScilabDouble([290.3], [271.2]), + ct: new ScilabDouble([5, -1]), + from: new ScilabDouble([4, 1, 0]), + to: new ScilabDouble([5, 1, 1]) + })); + diagram.objs.push(scicos_link({ + xx: new ScilabDouble([263], [263]), + yy: new ScilabDouble([271.2], [250.7]), + ct: new ScilabDouble([5, -1]), + from: new ScilabDouble([5, 1, 0]), + to: new ScilabDouble([3, 1, 1]) + })); + diagram.objs.push(scicos_link({ + xx: new ScilabDouble([263], [308.6], [308.6], [263], [263]), + yy: new ScilabDouble([271.2], [271.2], [367], [367], [341.7]), + ct: new ScilabDouble([5, -1]), + from: new ScilabDouble([5, 2, 0]), + to: new ScilabDouble([4, 1, 1]) + })); + + this.x = scicos_block(); + this.x.gui = new ScilabString(["DELAY_f"]); + this.x.graphics.sz = new ScilabDouble([2, 2]); + this.x.graphics.gr_i = new ScilabDouble(); + this.x.graphics.pin = new ScilabDouble([0]); + this.x.graphics.pout = new ScilabDouble([0]); + this.x.model.sim = new ScilabString(["csuper"]); + this.x.model.in = new ScilabDouble([1]); + this.x.model.out = new ScilabDouble([1]); + this.x.model.blocktype = new ScilabString(["h"]); + this.x.model.dep_ut = new ScilabBoolean([false, false]); + this.x.model.rpar = diagram; + this.x.graphics.in_implicit = new ScilabString(["E"]); + this.x.graphics.in_style = new ScilabString([""]); + this.x.graphics.out_implicit = new ScilabString(["E"]); + this.x.graphics.out_style = new ScilabString([""]); + return new BasicBlock(this.x); } DELAY_f.prototype.details = function DELAY_f() { return this.x; } -} +}
\ No newline at end of file |