summaryrefslogtreecommitdiff
path: root/webapp/data_structures_correct/EVTDLY_c.js
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/data_structures_correct/EVTDLY_c.js')
-rw-r--r--webapp/data_structures_correct/EVTDLY_c.js49
1 files changed, 49 insertions, 0 deletions
diff --git a/webapp/data_structures_correct/EVTDLY_c.js b/webapp/data_structures_correct/EVTDLY_c.js
new file mode 100644
index 0000000..46b336c
--- /dev/null
+++ b/webapp/data_structures_correct/EVTDLY_c.js
@@ -0,0 +1,49 @@
+function EVTDLY_c() {
+
+ EVTDLY_c.prototype.internal = function EVTDLY_c() {
+ var dt = 0.1;
+ var ff = 0.0;
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["evtdly4"]), new ScilabDouble([4]));
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([dt], [ff]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([ff]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+ // changed
+ model.outtyp = new ScilabDouble();
+ var exprs = new ScilabString([dt], [ff]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTDLY_c\",sz(1),sz(2));"]);
+ var block = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3,2 -> 80
+ block.graphics.style = new ScilabString(["EVTDLY_c"]);
+ return block;
+
+ }
+
+ EVTDLY_c.prototype.define = function EVTDLY_c() {
+ this.dt = 0.1;
+ this.ff = 0.0;
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["evtdly4"]), new ScilabDouble([4]));
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble([this.dt], [this.ff]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([this.ff]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+ // changed
+ model.outtyp = new ScilabDouble();
+ var exprs = new ScilabString([this.dt], [this.ff]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTDLY_c\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3,2 -> 80
+ this.x.graphics.style = new ScilabString(["EVTDLY_c"]);
+ return new BasicBlock(this.x);
+
+ }
+
+ EVTDLY_c.prototype.details = function EVTDLY_c() {
+
+ return this.x;
+ }
+}