summaryrefslogtreecommitdiff
path: root/data_structures_correct/Modulo_Count.js
diff options
context:
space:
mode:
authorAdhitya Kamakshidasan2016-07-04 14:48:23 +0530
committerGitHub2016-07-04 14:48:23 +0530
commitebcbdbcf50fd0162e1dd60ba2a2c93a40823380e (patch)
tree93648fa22398f3fdc9ade29982d33bea0f9e8973 /data_structures_correct/Modulo_Count.js
parent11d05ce3adb9d7bd91cdb38ff5c176f0d9033cf9 (diff)
parent4bc7ed4e852c4e2c4a427867daa5cc183e4a45c6 (diff)
downloadxcos-on-web-ebcbdbcf50fd0162e1dd60ba2a2c93a40823380e.tar.gz
xcos-on-web-ebcbdbcf50fd0162e1dd60ba2a2c93a40823380e.tar.bz2
xcos-on-web-ebcbdbcf50fd0162e1dd60ba2a2c93a40823380e.zip
Merge pull request #118 from Chhavi2208/master
Updated Modulo_Count
Diffstat (limited to 'data_structures_correct/Modulo_Count.js')
-rw-r--r--data_structures_correct/Modulo_Count.js22
1 files changed, 21 insertions, 1 deletions
diff --git a/data_structures_correct/Modulo_Count.js b/data_structures_correct/Modulo_Count.js
index bb6ad29..dfff095 100644
--- a/data_structures_correct/Modulo_Count.js
+++ b/data_structures_correct/Modulo_Count.js
@@ -19,8 +19,28 @@ function Modulo_Count() {
this.x = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
return new BasicBlock(this.x);
}
+ Modulo_Count.prototype.internal = function Modulo_Count() {
+ this.ini_c = 0;
+ this.base = 3;
+
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["modulo_count"]), new ScilabDouble([4]));
+ model.evtin = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([this.ini_c]);
+ model.ipar = new ScilabDouble([this.base]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString([this.ini_c], [this.base]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"Modulo_Count\",sz(1),sz(2));"]);
+ var block = new standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ block.graphics.style = new ScilabString(["Modulo_Count"]);
+ return block;
+ }
Modulo_Count.prototype.details = function Modulo_Count() {
return this.x;
}
}
-