• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revision25ef3c26094b19714eea0f87a6788cc26abf932a (tree)
Time2014-11-27 17:08:03
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Add: tutorial for PIONE about Parameter Setting
new file: SampleCode/PIONE/Basic6/ParamEcho.pione

Change Summary

Incremental Difference

--- /dev/null
+++ b/SampleCode/PIONE/Basic6/ParamEcho.pione
@@ -0,0 +1,39 @@
1+param $val := 123
2+basic param $b_val := 456
3+advanced param $a_val := 987
4+
5+Basic Param
6+ $b_val1 := 135
7+ $b_val2 := 246
8+End
9+
10+Advanced Param
11+ $a_val1 := 975
12+ $a_val2 := 864
13+End
14+
15+Rule Main
16+ output 'message.txt'
17+ param $main_val := $val * 10
18+Flow
19+ rule Sub {sub_val1: $main_val}
20+End
21+
22+Rule Sub
23+ output 'message.txt'
24+ param $sub_val1
25+ param $sub_val2 := $val * 100
26+Action
27+ echo "Basic Parameters:" > {$O[1]};
28+ echo " val: {$val}" >> {$O[1]};
29+ echo " b_val: {$b_val}" >> {$O[1]};
30+ echo " b_val1: {$b_val1}" >> {$O[1]};
31+ echo " b_val2: {$b_val2}" >> {$O[1]};
32+ echo "Advanced Parameters:" >> {$O[1]};
33+ echo " a_val: {$a_val}" >> {$O[1]};
34+ echo " a_val1: {$a_val1}" >> {$O[1]};
35+ echo " a_val2: {$a_val2}" >> {$O[1]};
36+ echo "Parameters in Sub:" >> {$O[1]};
37+ echo " sub_val1: {$sub_val1}" >> {$O[1]};
38+ echo " sub_val2: {$sub_val2}" >> {$O[1]};
39+End
Show on old repository browser