This repository is for tutorials of Eos.
Revision | 7b4a961ff3524e5f2b85c6da0e76b2ac7ce622db (tree) |
---|---|
Time | 2015-03-26 10:28:53 |
Author | kinoshita-eos <kinoshita@yasu...> |
Commiter | kinoshita-eos |
Add: PIONE-PNML tutorial about parameter setting.
new file: SampleCode/PIONE-PNML/Basic4/Serial2-4.md
new file: SampleCode/PIONE-PNML/Basic4/Serial2-4.pnml
new file: SampleCode/PIONE-PNML/Basic4/SerialInput/test1.in
new file: SampleCode/PIONE-PNML/Basic4/SerialInput/test2.in
new file: SampleCode/PIONE-PNML/Basic4/SerialInput/test3.in
new file: SampleCode/PIONE-PNML/Basic4/SerialInput/test4.in
new file: SampleCode/PIONE-PNML/Basic4/SerialInput/test5.in
@@ -0,0 +1,15 @@ | ||
1 | +# Serial2-4.pione | |
2 | + | |
3 | +## First | |
4 | +Multiply a specified number to all input data. | |
5 | + | |
6 | +``` | |
7 | +awk '{print $1*{$d1}}' {$I[1]} > {$O[1]} | |
8 | +``` | |
9 | + | |
10 | +## Second | |
11 | +Add a specified number to all input data. | |
12 | + | |
13 | +``` | |
14 | +awk '{print $1+{$d2}}' {$I[1]} > {$O[1]} | |
15 | +``` |
@@ -0,0 +1,263 @@ | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!--PLEASE DO NOT EDIT THIS FILE | |
3 | +Created with Workflow PetriNet Designer Version 3.2.0 (woped.org)--> | |
4 | +<pnml> | |
5 | + <net type="http://www.informatik.hu-berlin.de/top/pntd/ptNetb" id="noID"> | |
6 | + <place id="p1"> | |
7 | + <name> | |
8 | + <text><'*.in'</text> | |
9 | + <graphics> | |
10 | + <offset x="10" y="60"/> | |
11 | + </graphics> | |
12 | + </name> | |
13 | + <graphics> | |
14 | + <position x="10" y="20"/> | |
15 | + <dimension x="40" y="40"/> | |
16 | + </graphics> | |
17 | + </place> | |
18 | + <place id="p2"> | |
19 | + <name> | |
20 | + <text>param $d1 := 2</text> | |
21 | + <graphics> | |
22 | + <offset x="10" y="140"/> | |
23 | + </graphics> | |
24 | + </name> | |
25 | + <graphics> | |
26 | + <position x="10" y="100"/> | |
27 | + <dimension x="40" y="40"/> | |
28 | + </graphics> | |
29 | + </place> | |
30 | + <place id="p3"> | |
31 | + <name> | |
32 | + <text>'{$*}.out'</text> | |
33 | + <graphics> | |
34 | + <offset x="410" y="60"/> | |
35 | + </graphics> | |
36 | + </name> | |
37 | + <graphics> | |
38 | + <position x="410" y="20"/> | |
39 | + <dimension x="40" y="40"/> | |
40 | + </graphics> | |
41 | + </place> | |
42 | + <place id="p4"> | |
43 | + <name> | |
44 | + <text>'*.route'</text> | |
45 | + <graphics> | |
46 | + <offset x="260" y="60"/> | |
47 | + </graphics> | |
48 | + </name> | |
49 | + <graphics> | |
50 | + <position x="270" y="20"/> | |
51 | + <dimension x="40" y="40"/> | |
52 | + </graphics> | |
53 | + </place> | |
54 | + <place id="p5"> | |
55 | + <name> | |
56 | + <text>'{$*}.route'</text> | |
57 | + <graphics> | |
58 | + <offset x="130" y="60"/> | |
59 | + </graphics> | |
60 | + </name> | |
61 | + <graphics> | |
62 | + <position x="140" y="20"/> | |
63 | + <dimension x="40" y="40"/> | |
64 | + </graphics> | |
65 | + </place> | |
66 | + <place id="p6"> | |
67 | + <name> | |
68 | + <text>>'*.out'</text> | |
69 | + <graphics> | |
70 | + <offset x="530" y="60"/> | |
71 | + </graphics> | |
72 | + </name> | |
73 | + <graphics> | |
74 | + <position x="530" y="20"/> | |
75 | + <dimension x="40" y="40"/> | |
76 | + </graphics> | |
77 | + </place> | |
78 | + <place id="p7"> | |
79 | + <name> | |
80 | + <text>param $d2 := 1</text> | |
81 | + <graphics> | |
82 | + <offset x="270" y="140"/> | |
83 | + </graphics> | |
84 | + </name> | |
85 | + <graphics> | |
86 | + <position x="270" y="100"/> | |
87 | + <dimension x="40" y="40"/> | |
88 | + </graphics> | |
89 | + </place> | |
90 | + <transition id="t6"> | |
91 | + <name> | |
92 | + <text/> | |
93 | + <graphics> | |
94 | + <offset x="200" y="60"/> | |
95 | + </graphics> | |
96 | + </name> | |
97 | + <graphics> | |
98 | + <position x="200" y="20"/> | |
99 | + <dimension x="40" y="40"/> | |
100 | + </graphics> | |
101 | + <toolspecific tool="WoPeD" version="1.0"> | |
102 | + <time>0</time> | |
103 | + <timeUnit>1</timeUnit> | |
104 | + <orientation>1</orientation> | |
105 | + </toolspecific> | |
106 | + </transition> | |
107 | + <transition id="t7"> | |
108 | + <name> | |
109 | + <text/> | |
110 | + <graphics> | |
111 | + <offset x="470" y="60"/> | |
112 | + </graphics> | |
113 | + </name> | |
114 | + <graphics> | |
115 | + <position x="470" y="20"/> | |
116 | + <dimension x="40" y="40"/> | |
117 | + </graphics> | |
118 | + <toolspecific tool="WoPeD" version="1.0"> | |
119 | + <time>0</time> | |
120 | + <timeUnit>1</timeUnit> | |
121 | + <orientation>1</orientation> | |
122 | + </toolspecific> | |
123 | + </transition> | |
124 | + <transition id="t1"> | |
125 | + <name> | |
126 | + <text>First</text> | |
127 | + <graphics> | |
128 | + <offset x="80" y="60"/> | |
129 | + </graphics> | |
130 | + </name> | |
131 | + <graphics> | |
132 | + <position x="80" y="20"/> | |
133 | + <dimension x="40" y="40"/> | |
134 | + </graphics> | |
135 | + <toolspecific tool="WoPeD" version="1.0"> | |
136 | + <time>0</time> | |
137 | + <timeUnit>1</timeUnit> | |
138 | + <orientation>1</orientation> | |
139 | + </toolspecific> | |
140 | + </transition> | |
141 | + <transition id="t2"> | |
142 | + <name> | |
143 | + <text>Second</text> | |
144 | + <graphics> | |
145 | + <offset x="340" y="60"/> | |
146 | + </graphics> | |
147 | + </name> | |
148 | + <graphics> | |
149 | + <position x="340" y="20"/> | |
150 | + <dimension x="40" y="40"/> | |
151 | + </graphics> | |
152 | + <toolspecific tool="WoPeD" version="1.0"> | |
153 | + <time>0</time> | |
154 | + <timeUnit>1</timeUnit> | |
155 | + <orientation>1</orientation> | |
156 | + </toolspecific> | |
157 | + </transition> | |
158 | + <arc id="a1" source="p1" target="t1"> | |
159 | + <inscription> | |
160 | + <text>1</text> | |
161 | + </inscription> | |
162 | + <graphics/> | |
163 | + <toolspecific tool="WoPeD" version="1.0"> | |
164 | + <probability>1.0</probability> | |
165 | + <displayProbabilityOn>false</displayProbabilityOn> | |
166 | + <displayProbabilityPosition x="500.0" y="0.0"/> | |
167 | + </toolspecific> | |
168 | + </arc> | |
169 | + <arc id="a11" source="t6" target="p4"> | |
170 | + <inscription> | |
171 | + <text>1</text> | |
172 | + </inscription> | |
173 | + <graphics/> | |
174 | + <toolspecific tool="WoPeD" version="1.0"> | |
175 | + <probability>1.0</probability> | |
176 | + <displayProbabilityOn>false</displayProbabilityOn> | |
177 | + <displayProbabilityPosition x="500.0" y="0.0"/> | |
178 | + </toolspecific> | |
179 | + </arc> | |
180 | + <arc id="a10" source="p5" target="t6"> | |
181 | + <inscription> | |
182 | + <text>1</text> | |
183 | + </inscription> | |
184 | + <graphics/> | |
185 | + <toolspecific tool="WoPeD" version="1.0"> | |
186 | + <probability>1.0</probability> | |
187 | + <displayProbabilityOn>false</displayProbabilityOn> | |
188 | + <displayProbabilityPosition x="500.0" y="0.0"/> | |
189 | + </toolspecific> | |
190 | + </arc> | |
191 | + <arc id="a3" source="t2" target="p3"> | |
192 | + <inscription> | |
193 | + <text>1</text> | |
194 | + </inscription> | |
195 | + <graphics/> | |
196 | + <toolspecific tool="WoPeD" version="1.0"> | |
197 | + <probability>1.0</probability> | |
198 | + <displayProbabilityOn>false</displayProbabilityOn> | |
199 | + <displayProbabilityPosition x="500.0" y="0.0"/> | |
200 | + </toolspecific> | |
201 | + </arc> | |
202 | + <arc id="a13" source="t7" target="p6"> | |
203 | + <inscription> | |
204 | + <text>1</text> | |
205 | + </inscription> | |
206 | + <graphics/> | |
207 | + <toolspecific tool="WoPeD" version="1.0"> | |
208 | + <probability>1.0</probability> | |
209 | + <displayProbabilityOn>false</displayProbabilityOn> | |
210 | + <displayProbabilityPosition x="500.0" y="0.0"/> | |
211 | + </toolspecific> | |
212 | + </arc> | |
213 | + <arc id="a12" source="p3" target="t7"> | |
214 | + <inscription> | |
215 | + <text>1</text> | |
216 | + </inscription> | |
217 | + <graphics/> | |
218 | + <toolspecific tool="WoPeD" version="1.0"> | |
219 | + <probability>1.0</probability> | |
220 | + <displayProbabilityOn>false</displayProbabilityOn> | |
221 | + <displayProbabilityPosition x="500.0" y="0.0"/> | |
222 | + </toolspecific> | |
223 | + </arc> | |
224 | + <arc id="a6" source="p4" target="t2"> | |
225 | + <inscription> | |
226 | + <text>1</text> | |
227 | + </inscription> | |
228 | + <graphics/> | |
229 | + <toolspecific tool="WoPeD" version="1.0"> | |
230 | + <probability>1.0</probability> | |
231 | + <displayProbabilityOn>false</displayProbabilityOn> | |
232 | + <displayProbabilityPosition x="500.0" y="0.0"/> | |
233 | + </toolspecific> | |
234 | + </arc> | |
235 | + <arc id="a9" source="t1" target="p5"> | |
236 | + <inscription> | |
237 | + <text>1</text> | |
238 | + </inscription> | |
239 | + <graphics/> | |
240 | + <toolspecific tool="WoPeD" version="1.0"> | |
241 | + <probability>1.0</probability> | |
242 | + <displayProbabilityOn>false</displayProbabilityOn> | |
243 | + <displayProbabilityPosition x="500.0" y="0.0"/> | |
244 | + </toolspecific> | |
245 | + </arc> | |
246 | + <toolspecific tool="WoPeD" version="1.0"> | |
247 | + <bounds> | |
248 | + <position x="11" y="33"/> | |
249 | + <dimension x="755" y="474"/> | |
250 | + </bounds> | |
251 | + <scale>100</scale> | |
252 | + <treeWidthRight>597</treeWidthRight> | |
253 | + <overviewPanelVisible>true</overviewPanelVisible> | |
254 | + <treeHeightOverview>100</treeHeightOverview> | |
255 | + <treePanelVisible>true</treePanelVisible> | |
256 | + <verticalLayout>false</verticalLayout> | |
257 | + <resources/> | |
258 | + <simulations/> | |
259 | + <partnerLinks/> | |
260 | + <variables/> | |
261 | + </toolspecific> | |
262 | + </net> | |
263 | +</pnml> | |
\ No newline at end of file |
@@ -0,0 +1,2 @@ | ||
1 | +3 | |
2 | +5 |
@@ -0,0 +1,2 @@ | ||
1 | +2 | |
2 | +4 |
@@ -0,0 +1,2 @@ | ||
1 | +7 | |
2 | +1 |
@@ -0,0 +1,3 @@ | ||
1 | +8 | |
2 | +9 | |
3 | +6 |
@@ -0,0 +1,9 @@ | ||
1 | +1 | |
2 | +2 | |
3 | +3 | |
4 | +4 | |
5 | +5 | |
6 | +6 | |
7 | +7 | |
8 | +8 | |
9 | +9 |