• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revisionf33321704d9cbc5cc2401438feccbf492a599ffc (tree)
Time2015-03-26 17:09:38
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Add: PIONE tutorial for examples by null data.
new file: SampleCode/PIONE-PNML/Basic6/date.md
new file: SampleCode/PIONE-PNML/Basic6/date.pnml
new file: SampleCode/PIONE-PNML/Basic6/date2.md
new file: SampleCode/PIONE-PNML/Basic6/date2.pnml
new file: SampleCode/PIONE/Basic7/ForDebug2.pione

Change Summary

Incremental Difference

--- /dev/null
+++ b/SampleCode/PIONE-PNML/Basic6/date.md
@@ -0,0 +1 @@
1+# date.pione ## Date Output the current date and time. ``` date > {$O[1]} ```
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE-PNML/Basic6/date.pnml
@@ -0,0 +1,86 @@
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>&lt;null</text>
9+ <graphics>
10+ <offset x="30" y="70"/>
11+ </graphics>
12+ </name>
13+ <graphics>
14+ <position x="30" y="30"/>
15+ <dimension x="40" y="40"/>
16+ </graphics>
17+ </place>
18+ <place id="p3">
19+ <name>
20+ <text>>'date.log'</text>
21+ <graphics>
22+ <offset x="230" y="70"/>
23+ </graphics>
24+ </name>
25+ <graphics>
26+ <position x="240" y="30"/>
27+ <dimension x="40" y="40"/>
28+ </graphics>
29+ </place>
30+ <transition id="t2">
31+ <name>
32+ <text>Date</text>
33+ <graphics>
34+ <offset x="140" y="70"/>
35+ </graphics>
36+ </name>
37+ <graphics>
38+ <position x="140" y="30"/>
39+ <dimension x="40" y="40"/>
40+ </graphics>
41+ <toolspecific tool="WoPeD" version="1.0">
42+ <time>0</time>
43+ <timeUnit>1</timeUnit>
44+ <orientation>1</orientation>
45+ </toolspecific>
46+ </transition>
47+ <arc id="a1" source="p1" target="t2">
48+ <inscription>
49+ <text>1</text>
50+ </inscription>
51+ <graphics/>
52+ <toolspecific tool="WoPeD" version="1.0">
53+ <probability>1.0</probability>
54+ <displayProbabilityOn>false</displayProbabilityOn>
55+ <displayProbabilityPosition x="500.0" y="0.0"/>
56+ </toolspecific>
57+ </arc>
58+ <arc id="a3" source="t2" target="p3">
59+ <inscription>
60+ <text>1</text>
61+ </inscription>
62+ <graphics/>
63+ <toolspecific tool="WoPeD" version="1.0">
64+ <probability>1.0</probability>
65+ <displayProbabilityOn>false</displayProbabilityOn>
66+ <displayProbabilityPosition x="500.0" y="0.0"/>
67+ </toolspecific>
68+ </arc>
69+ <toolspecific tool="WoPeD" version="1.0">
70+ <bounds>
71+ <position x="11" y="33"/>
72+ <dimension x="755" y="474"/>
73+ </bounds>
74+ <scale>100</scale>
75+ <treeWidthRight>597</treeWidthRight>
76+ <overviewPanelVisible>true</overviewPanelVisible>
77+ <treeHeightOverview>100</treeHeightOverview>
78+ <treePanelVisible>true</treePanelVisible>
79+ <verticalLayout>false</verticalLayout>
80+ <resources/>
81+ <simulations/>
82+ <partnerLinks/>
83+ <variables/>
84+ </toolspecific>
85+ </net>
86+</pnml>
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE-PNML/Basic6/date2.md
@@ -0,0 +1 @@
1+# date2.pione ## Date Output the current date and time. ``` cp {?$I[1]} {$O[1]} date >> {$O[1]} ```
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE-PNML/Basic6/date2.pnml
@@ -0,0 +1,86 @@
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>&lt;'*.in' or null</text>
9+ <graphics>
10+ <offset x="20" y="70"/>
11+ </graphics>
12+ </name>
13+ <graphics>
14+ <position x="40" y="30"/>
15+ <dimension x="40" y="40"/>
16+ </graphics>
17+ </place>
18+ <place id="p3">
19+ <name>
20+ <text>>'date.log'</text>
21+ <graphics>
22+ <offset x="200" y="70"/>
23+ </graphics>
24+ </name>
25+ <graphics>
26+ <position x="220" y="30"/>
27+ <dimension x="40" y="40"/>
28+ </graphics>
29+ </place>
30+ <transition id="t2">
31+ <name>
32+ <text>Date</text>
33+ <graphics>
34+ <offset x="140" y="70"/>
35+ </graphics>
36+ </name>
37+ <graphics>
38+ <position x="140" y="30"/>
39+ <dimension x="40" y="40"/>
40+ </graphics>
41+ <toolspecific tool="WoPeD" version="1.0">
42+ <time>0</time>
43+ <timeUnit>1</timeUnit>
44+ <orientation>1</orientation>
45+ </toolspecific>
46+ </transition>
47+ <arc id="a1" source="p1" target="t2">
48+ <inscription>
49+ <text>1</text>
50+ </inscription>
51+ <graphics/>
52+ <toolspecific tool="WoPeD" version="1.0">
53+ <probability>1.0</probability>
54+ <displayProbabilityOn>false</displayProbabilityOn>
55+ <displayProbabilityPosition x="500.0" y="0.0"/>
56+ </toolspecific>
57+ </arc>
58+ <arc id="a3" source="t2" target="p3">
59+ <inscription>
60+ <text>1</text>
61+ </inscription>
62+ <graphics/>
63+ <toolspecific tool="WoPeD" version="1.0">
64+ <probability>1.0</probability>
65+ <displayProbabilityOn>false</displayProbabilityOn>
66+ <displayProbabilityPosition x="500.0" y="0.0"/>
67+ </toolspecific>
68+ </arc>
69+ <toolspecific tool="WoPeD" version="1.0">
70+ <bounds>
71+ <position x="11" y="33"/>
72+ <dimension x="755" y="474"/>
73+ </bounds>
74+ <scale>100</scale>
75+ <treeWidthRight>597</treeWidthRight>
76+ <overviewPanelVisible>true</overviewPanelVisible>
77+ <treeHeightOverview>100</treeHeightOverview>
78+ <treePanelVisible>true</treePanelVisible>
79+ <verticalLayout>false</verticalLayout>
80+ <resources/>
81+ <simulations/>
82+ <partnerLinks/>
83+ <variables/>
84+ </toolspecific>
85+ </net>
86+</pnml>
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE/Basic7/ForDebug2.pione
@@ -0,0 +1,54 @@
1+$Debug := false
2+
3+if $Debug
4+ $LogFile := ('*.info' |
5+ '*.pwd' |
6+ '*.ls' |
7+ '*.log').all
8+else
9+ $LogFile := null
10+end
11+
12+Rule Main
13+ input '*.txt'
14+ output '{$I[1][1]}.out'
15+ if $LogFile.empty?.not
16+ output $LogFile
17+ end
18+Flow
19+ rule Sub1
20+End
21+
22+Rule Sub1
23+ input '*.txt'
24+ output '{$I[1][1]}.out'
25+ if $LogFile.empty?.not
26+ output $LogFile
27+ end
28+Flow
29+ rule Sub2
30+End
31+
32+Rule Sub2
33+ input '*.txt'
34+ output '{$I[1][1]}.out'
35+ if $LogFile.empty?.not
36+ output $LogFile
37+ end
38+Flow
39+ rule Sub3
40+End
41+
42+Rule Sub3
43+ input '*.txt'
44+ output '{$I[1][1]}.out'
45+ if $LogFile.empty?.not
46+ output $LogFile
47+ end
48+Action
49+ touch {$O[1]}
50+ wc {$I[1]} > {$I[1][1]}.info
51+ pwd > {$I[1][1]}.pwd
52+ ls > {$I[1][1]}.ls
53+ date > {$I[1][1]}.log
54+End
\ No newline at end of file
Show on old repository browser