summaryrefslogtreecommitdiff
path: root/data_structures_correct
diff options
context:
space:
mode:
authorAdhitya Kamakshidasan2016-06-30 14:51:23 +0530
committerGitHub2016-06-30 14:51:23 +0530
commit809f387751158481b5455b70ddeced323a4ed134 (patch)
tree9d376a1a5a8642913f56539ca838b1cec2c281e1 /data_structures_correct
parent77041e647a47534c0071d3e31a498911f79ff660 (diff)
parenta55c31eefa5afb67a6f5099bcfa9f8af44cb599f (diff)
downloadxcos-on-web-809f387751158481b5455b70ddeced323a4ed134.tar.gz
xcos-on-web-809f387751158481b5455b70ddeced323a4ed134.tar.bz2
xcos-on-web-809f387751158481b5455b70ddeced323a4ed134.zip
Merge pull request #92 from avi-psvm-dutta/master
Implement GoToTagVisibility Block
Diffstat (limited to 'data_structures_correct')
-rw-r--r--data_structures_correct/GotoTagVisibility.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/data_structures_correct/GotoTagVisibility.js b/data_structures_correct/GotoTagVisibility.js
new file mode 100644
index 0000000..61eb71c
--- /dev/null
+++ b/data_structures_correct/GotoTagVisibility.js
@@ -0,0 +1,30 @@
+function GotoTagVisibility() {
+
+ GotoTagVisibility.prototype.define = function GotoTagVisibility() {
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["gototagvisibility"]);
+ model.in1 = new ScilabDouble();
+ model.in2 = new ScilabDouble();
+ model.out = new ScilabDouble();
+ model.out2 = new ScilabDouble();
+ model.evtin = new ScilabDouble();
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.opar = list(new ScilabString(["A"]));
+ model.blocktype = new ScilabString(["c"]);
+ model.firing = new ScilabBoolean([false]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+
+ var exprs = new ScilabString(["A"]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"GotoTagVisibility\",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i);
+ return new BasicBlock(this.x);
+ }
+
+ GotoTagVisibility.prototype.details = function GotoTagVisibility() {
+
+ return this.x;
+ }
+}