OSDN Git Service

Add: PIONE tutorial for examples by null data. v2.0.2p0108
authorkinoshita-eos <kinoshita@yasunaga-lab.bio.kyutech.ac.jp>
Thu, 26 Mar 2015 08:09:38 +0000 (17:09 +0900)
committerkinoshita-eos <kinoshita@yasunaga-lab.bio.kyutech.ac.jp>
Thu, 26 Mar 2015 08:09:38 +0000 (17:09 +0900)
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

SampleCode/PIONE-PNML/Basic6/date.md [new file with mode: 0644]
SampleCode/PIONE-PNML/Basic6/date.pnml [new file with mode: 0644]
SampleCode/PIONE-PNML/Basic6/date2.md [new file with mode: 0644]
SampleCode/PIONE-PNML/Basic6/date2.pnml [new file with mode: 0644]
SampleCode/PIONE/Basic7/ForDebug2.pione [new file with mode: 0644]

diff --git a/SampleCode/PIONE-PNML/Basic6/date.md b/SampleCode/PIONE-PNML/Basic6/date.md
new file mode 100644 (file)
index 0000000..6701137
--- /dev/null
@@ -0,0 +1 @@
+# date.pione\r\r## Date\rOutput the current date and time.\r\r```\rdate > {$O[1]}\r```\r
\ No newline at end of file
diff --git a/SampleCode/PIONE-PNML/Basic6/date.pnml b/SampleCode/PIONE-PNML/Basic6/date.pnml
new file mode 100644 (file)
index 0000000..a991e18
--- /dev/null
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--PLEASE DO NOT EDIT THIS FILE
+Created with Workflow PetriNet Designer Version 3.2.0 (woped.org)-->
+<pnml>
+  <net type="http://www.informatik.hu-berlin.de/top/pntd/ptNetb" id="noID">
+    <place id="p1">
+      <name>
+        <text>&lt;null</text>
+        <graphics>
+          <offset x="30" y="70"/>
+        </graphics>
+      </name>
+      <graphics>
+        <position x="30" y="30"/>
+        <dimension x="40" y="40"/>
+      </graphics>
+    </place>
+    <place id="p3">
+      <name>
+        <text>>'date.log'</text>
+        <graphics>
+          <offset x="230" y="70"/>
+        </graphics>
+      </name>
+      <graphics>
+        <position x="240" y="30"/>
+        <dimension x="40" y="40"/>
+      </graphics>
+    </place>
+    <transition id="t2">
+      <name>
+        <text>Date</text>
+        <graphics>
+          <offset x="140" y="70"/>
+        </graphics>
+      </name>
+      <graphics>
+        <position x="140" y="30"/>
+        <dimension x="40" y="40"/>
+      </graphics>
+      <toolspecific tool="WoPeD" version="1.0">
+        <time>0</time>
+        <timeUnit>1</timeUnit>
+        <orientation>1</orientation>
+      </toolspecific>
+    </transition>
+    <arc id="a1" source="p1" target="t2">
+      <inscription>
+        <text>1</text>
+      </inscription>
+      <graphics/>
+      <toolspecific tool="WoPeD" version="1.0">
+        <probability>1.0</probability>
+        <displayProbabilityOn>false</displayProbabilityOn>
+        <displayProbabilityPosition x="500.0" y="0.0"/>
+      </toolspecific>
+    </arc>
+    <arc id="a3" source="t2" target="p3">
+      <inscription>
+        <text>1</text>
+      </inscription>
+      <graphics/>
+      <toolspecific tool="WoPeD" version="1.0">
+        <probability>1.0</probability>
+        <displayProbabilityOn>false</displayProbabilityOn>
+        <displayProbabilityPosition x="500.0" y="0.0"/>
+      </toolspecific>
+    </arc>
+    <toolspecific tool="WoPeD" version="1.0">
+      <bounds>
+        <position x="11" y="33"/>
+        <dimension x="755" y="474"/>
+      </bounds>
+      <scale>100</scale>
+      <treeWidthRight>597</treeWidthRight>
+      <overviewPanelVisible>true</overviewPanelVisible>
+      <treeHeightOverview>100</treeHeightOverview>
+      <treePanelVisible>true</treePanelVisible>
+      <verticalLayout>false</verticalLayout>
+      <resources/>
+      <simulations/>
+      <partnerLinks/>
+      <variables/>
+    </toolspecific>
+  </net>
+</pnml>
\ No newline at end of file
diff --git a/SampleCode/PIONE-PNML/Basic6/date2.md b/SampleCode/PIONE-PNML/Basic6/date2.md
new file mode 100644 (file)
index 0000000..29f8f7c
--- /dev/null
@@ -0,0 +1 @@
+# date2.pione\r\r## Date\rOutput the current date and time.\r\r```\rcp {?$I[1]} {$O[1]}\rdate >> {$O[1]}\r```\r
\ No newline at end of file
diff --git a/SampleCode/PIONE-PNML/Basic6/date2.pnml b/SampleCode/PIONE-PNML/Basic6/date2.pnml
new file mode 100644 (file)
index 0000000..021ff94
--- /dev/null
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--PLEASE DO NOT EDIT THIS FILE
+Created with Workflow PetriNet Designer Version 3.2.0 (woped.org)-->
+<pnml>
+  <net type="http://www.informatik.hu-berlin.de/top/pntd/ptNetb" id="noID">
+    <place id="p1">
+      <name>
+        <text>&lt;'*.in' or null</text>
+        <graphics>
+          <offset x="20" y="70"/>
+        </graphics>
+      </name>
+      <graphics>
+        <position x="40" y="30"/>
+        <dimension x="40" y="40"/>
+      </graphics>
+    </place>
+    <place id="p3">
+      <name>
+        <text>>'date.log'</text>
+        <graphics>
+          <offset x="200" y="70"/>
+        </graphics>
+      </name>
+      <graphics>
+        <position x="220" y="30"/>
+        <dimension x="40" y="40"/>
+      </graphics>
+    </place>
+    <transition id="t2">
+      <name>
+        <text>Date</text>
+        <graphics>
+          <offset x="140" y="70"/>
+        </graphics>
+      </name>
+      <graphics>
+        <position x="140" y="30"/>
+        <dimension x="40" y="40"/>
+      </graphics>
+      <toolspecific tool="WoPeD" version="1.0">
+        <time>0</time>
+        <timeUnit>1</timeUnit>
+        <orientation>1</orientation>
+      </toolspecific>
+    </transition>
+    <arc id="a1" source="p1" target="t2">
+      <inscription>
+        <text>1</text>
+      </inscription>
+      <graphics/>
+      <toolspecific tool="WoPeD" version="1.0">
+        <probability>1.0</probability>
+        <displayProbabilityOn>false</displayProbabilityOn>
+        <displayProbabilityPosition x="500.0" y="0.0"/>
+      </toolspecific>
+    </arc>
+    <arc id="a3" source="t2" target="p3">
+      <inscription>
+        <text>1</text>
+      </inscription>
+      <graphics/>
+      <toolspecific tool="WoPeD" version="1.0">
+        <probability>1.0</probability>
+        <displayProbabilityOn>false</displayProbabilityOn>
+        <displayProbabilityPosition x="500.0" y="0.0"/>
+      </toolspecific>
+    </arc>
+    <toolspecific tool="WoPeD" version="1.0">
+      <bounds>
+        <position x="11" y="33"/>
+        <dimension x="755" y="474"/>
+      </bounds>
+      <scale>100</scale>
+      <treeWidthRight>597</treeWidthRight>
+      <overviewPanelVisible>true</overviewPanelVisible>
+      <treeHeightOverview>100</treeHeightOverview>
+      <treePanelVisible>true</treePanelVisible>
+      <verticalLayout>false</verticalLayout>
+      <resources/>
+      <simulations/>
+      <partnerLinks/>
+      <variables/>
+    </toolspecific>
+  </net>
+</pnml>
\ No newline at end of file
diff --git a/SampleCode/PIONE/Basic7/ForDebug2.pione b/SampleCode/PIONE/Basic7/ForDebug2.pione
new file mode 100644 (file)
index 0000000..f16283c
--- /dev/null
@@ -0,0 +1,54 @@
+$Debug := false
+
+if $Debug
+       $LogFile := ('*.info' |
+                               '*.pwd' |
+                               '*.ls' |
+                               '*.log').all
+else
+       $LogFile := null
+end
+
+Rule Main
+       input '*.txt'
+       output '{$I[1][1]}.out'
+       if $LogFile.empty?.not
+               output $LogFile
+       end
+Flow
+       rule Sub1
+End
+
+Rule Sub1
+       input '*.txt'
+       output '{$I[1][1]}.out'
+       if $LogFile.empty?.not
+               output $LogFile
+       end
+Flow
+       rule Sub2
+End
+
+Rule Sub2
+       input '*.txt'
+       output '{$I[1][1]}.out'
+       if $LogFile.empty?.not
+               output $LogFile
+       end
+Flow
+       rule Sub3
+End
+
+Rule Sub3
+       input '*.txt'
+       output '{$I[1][1]}.out'
+       if $LogFile.empty?.not
+               output $LogFile
+       end
+Action
+       touch {$O[1]}
+       wc {$I[1]} > {$I[1][1]}.info
+       pwd > {$I[1][1]}.pwd
+       ls > {$I[1][1]}.ls
+       date > {$I[1][1]}.log
+End
\ No newline at end of file