pione 0.4.2 → 0.5.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (306) hide show
  1. checksums.yaml +8 -8
  2. data/.travis.yml +1 -1
  3. data/History.txt +6 -0
  4. data/example/ActionError/ActionError.action.md +11 -0
  5. data/example/ActionError/ActionError.pione +6 -3
  6. data/example/ActionError/ActionError.pnml +86 -0
  7. data/example/ActionError/Package.pione +2 -0
  8. data/example/ActionError/pione-package.json +5 -1
  9. data/example/CTFCorrection/CTFCorrection.action.md +46 -0
  10. data/example/CTFCorrection/CTFCorrection.pione +19 -41
  11. data/example/CTFCorrection/CTFCorrection.pnml +839 -0
  12. data/example/CTFCorrection/Package.pione +1 -0
  13. data/example/CTFCorrection/Params.pione +21 -0
  14. data/example/CTFCorrection/pione-package.json +20 -0
  15. data/example/ChildPackage/ChildPackage.pione +8 -0
  16. data/example/ChildPackage/pione-package.json +20 -0
  17. data/example/CountChar/CountChar.pione +31 -0
  18. data/example/CountChar/CountChar.pnml +239 -0
  19. data/example/CountChar/Main.pione +6 -26
  20. data/example/CountChar/Main.pnml +32 -100
  21. data/example/CountChar/Package.pione +1 -0
  22. data/example/CountChar/pione-package.json +3 -1
  23. data/example/DeferredChoice/DeferredChoice.action.md +46 -0
  24. data/example/DeferredChoice/DeferredChoice.pione +2 -7
  25. data/example/DeferredChoice/DeferredChoice.pnml +371 -0
  26. data/example/DeferredChoice/Package.pione +4 -0
  27. data/example/DeferredChoice/pione-package.json +7 -3
  28. data/example/DeferredChoiceWithPage/DeferredChoiceWithPage.action.md +34 -0
  29. data/example/DeferredChoiceWithPage/DefferredChoiceWithPage.pnml +371 -0
  30. data/example/DeferredChoiceWithPage/Package.pione +2 -0
  31. data/example/FeatureExample/FeatureExample.action.md +7 -0
  32. data/example/FeatureExample/FeatureExample.pione +7 -4
  33. data/example/FeatureExample/FeatureExample.pnml +86 -0
  34. data/example/FeatureExample/Package.pione +1 -0
  35. data/example/FeatureExample/pione-package.json +4 -0
  36. data/example/Fib/Fib.action.md +33 -0
  37. data/example/Fib/Fib.pnml +208 -0
  38. data/example/Fib/FibN.pnml +807 -0
  39. data/example/Fib/Package.pione +6 -0
  40. data/example/HelloWorld/HelloWorld.action.md +7 -0
  41. data/example/HelloWorld/HelloWorld.pione +6 -2
  42. data/example/HelloWorld/HelloWorld.pnml +86 -0
  43. data/example/HelloWorld/Package.pione +2 -0
  44. data/example/HelloWorld/pione-package.json +5 -1
  45. data/example/Interaction/Interaction.action.md +21 -0
  46. data/example/Interaction/Interaction.pnml +89 -0
  47. data/example/Interaction/Package.pione +2 -0
  48. data/example/LoopByTouch/LoopByTouch.pione +32 -12
  49. data/example/LoopByTouch/LoopByTouch.pnml +575 -0
  50. data/example/LoopByTouch/Package.pione +3 -0
  51. data/example/LoopByTouch/PairLoop.pione +6 -7
  52. data/example/LoopByTouch/PairLoop.pnml +188 -0
  53. data/example/LoopByTouch/SingleLoop.pione +6 -0
  54. data/example/LoopByTouch/SingleLoop.pnml +86 -0
  55. data/example/LoopByTouch/TripletLoop.pione +12 -13
  56. data/example/LoopByTouch/TripletLoop.pnml +239 -0
  57. data/example/LoopByTouch/pione-package.json +7 -3
  58. data/example/LucasNumber/LucasNumber.action.md +25 -0
  59. data/example/LucasNumber/LucasNumber.pnml +244 -0
  60. data/example/LucasNumber/LucasNumberN.pnml +1719 -0
  61. data/example/LucasNumber/Package.pione +2 -0
  62. data/example/MakePair/MakePair.pione +8 -10
  63. data/example/MakePair/MakePair.pnml +1141 -0
  64. data/example/MakePair/Package.pione +2 -0
  65. data/example/MakePair/pione-package.json +7 -3
  66. data/example/MakePair/scenario/case1/pione-scenario.json +30 -30
  67. data/example/MakePair/scenario/case2/pione-scenario.json +10 -10
  68. data/example/MakePair/scenario/case3/pione-scenario.json +28 -28
  69. data/example/OddSelector/OddSelector.pione +8 -8
  70. data/example/OddSelector/OddSelector.pnml +401 -0
  71. data/example/OddSelector/Package.pione +2 -0
  72. data/example/OddSelector/pione-package.json +4 -0
  73. data/example/OddSelector/scenario/pione-scenario.json +8 -8
  74. data/example/ParentPackage/ParentPackage.pione +13 -0
  75. data/example/ParentPackage/pione-package.json +18 -0
  76. data/example/PegasusWMS/Merge/Package.pione +2 -0
  77. data/example/PegasusWMS/Merge/PegasusWMSMerge.action.md +17 -0
  78. data/example/PegasusWMS/Merge/{Merge.pione → PegasusWMSMerge.pione} +9 -10
  79. data/example/PegasusWMS/Merge/PegasusWMSMerge.pnml +217 -0
  80. data/example/PegasusWMS/Merge/pione-package.json +6 -2
  81. data/example/PegasusWMS/Pipeline/Package.pione +2 -0
  82. data/example/PegasusWMS/Pipeline/PegasusWMSPipeline.action.md +17 -0
  83. data/example/PegasusWMS/Pipeline/{Pipeline.pione → PegasusWMSPipeline.pione} +7 -9
  84. data/example/PegasusWMS/Pipeline/PegasusWMSPipeline.pnml +137 -0
  85. data/example/PegasusWMS/Pipeline/pione-package.json +6 -2
  86. data/example/PegasusWMS/Split/Package.pione +2 -0
  87. data/example/PegasusWMS/Split/PegasusWMSSplit.action.md +19 -0
  88. data/example/PegasusWMS/Split/{Split.pione → PegasusWMSSplit.pione} +9 -10
  89. data/example/PegasusWMS/Split/PegasusWMSSplit.pnml +293 -0
  90. data/example/PegasusWMS/Split/pione-package.json +6 -2
  91. data/example/ScoreAggregation/Package.pione +2 -0
  92. data/example/ScoreAggregation/ScoreAggregation.action.md +56 -0
  93. data/example/ScoreAggregation/ScoreAggregation.pione +37 -76
  94. data/example/ScoreAggregation/ScoreAggregation.pnml +1221 -0
  95. data/example/ScoreAggregation/pione-package.json +6 -2
  96. data/example/ScoreAggregation/scenario/case1/pione-scenario.json +21 -21
  97. data/example/SelectRuleByParam/Package.pione +2 -0
  98. data/example/SelectRuleByParam/SelectRuleByParam.action.md +19 -0
  99. data/example/SelectRuleByParam/SelectRuleByParam.pnml +388 -0
  100. data/example/SequentialParameter/Package.pione +2 -0
  101. data/example/SequentialParameter/SequentialParameter.pione +9 -3
  102. data/example/SequentialParameter/SequentialParameter.pnml +140 -0
  103. data/example/SequentialParameter/pione-package.json +19 -0
  104. data/example/SerialProcessing/A.pione +25 -0
  105. data/example/SerialProcessing/A.pnml +395 -0
  106. data/example/SerialProcessing/B.pione +25 -0
  107. data/example/SerialProcessing/B.pnml +395 -0
  108. data/example/SerialProcessing/Package.pione +2 -0
  109. data/example/SerialProcessing/SerialProcessing.pione +9 -60
  110. data/example/SerialProcessing/SerialProcessing.pnml +160 -0
  111. data/example/SerialProcessing/pione-package.json +7 -1
  112. data/example/SieveOfEratosthenes/CreateUndeterminedNumbers.pnml +157 -0
  113. data/example/SieveOfEratosthenes/Package.pione +4 -0
  114. data/example/SieveOfEratosthenes/Sieve.pnml +1493 -0
  115. data/example/SieveOfEratosthenes/SieveOfEratosthenes.pnml +174 -0
  116. data/example/SingleParticlesWithRef/Create3dinfo.pnml +342 -0
  117. data/example/SingleParticlesWithRef/Package.pione +42 -0
  118. data/example/SingleParticlesWithRef/SingleParticlesWithRef.action.md +34 -0
  119. data/example/SingleParticlesWithRef/SingleParticlesWithRef.pnml +404 -0
  120. data/example/SingleParticlesWithRef/{Makefile → misc/Makefile} +0 -0
  121. data/example/SingleParticlesWithRef/{SingleParticlesWithRef.Display2.pione → misc/SingleParticlesWithRef.Display2.pione} +0 -0
  122. data/example/SingleParticlesWithRef/{SingleParticlesWithRef.Makefile → misc/SingleParticlesWithRef.Makefile} +0 -0
  123. data/example/SingleParticlesWithRef/{SingleParticlesWithRefFull.pione → misc/SingleParticlesWithRefFull.pione} +0 -0
  124. data/example/Sum/CalcEachLine.pione +30 -0
  125. data/example/Sum/CalcEachLine.pnml +327 -0
  126. data/example/Sum/Package.pione +2 -0
  127. data/example/Sum/Sum.action.md +35 -0
  128. data/example/Sum/Sum.pione +9 -35
  129. data/example/Sum/Sum.pnml +191 -0
  130. data/example/Sum/pione-package.json +5 -0
  131. data/example/Touch/Package.pione +2 -0
  132. data/example/Touch/Touch.pione +8 -2
  133. data/example/Touch/Touch.pnml +89 -0
  134. data/example/Touch/pione-package.json +4 -0
  135. data/example/WorkflowPatterns/01_Sequence/Package.pione +2 -0
  136. data/example/WorkflowPatterns/01_Sequence/Sequence.pione +9 -9
  137. data/example/WorkflowPatterns/01_Sequence/Sequence.pnml +191 -0
  138. data/example/WorkflowPatterns/01_Sequence/pione-package.json +19 -0
  139. data/example/WorkflowPatterns/02_PrallelSplit/Package.pione +2 -0
  140. data/example/WorkflowPatterns/02_PrallelSplit/ParallelSplit.pione +12 -12
  141. data/example/WorkflowPatterns/02_PrallelSplit/ParallelSplit.pnml +265 -0
  142. data/example/WorkflowPatterns/02_PrallelSplit/pione-package.json +19 -0
  143. data/example/WorkflowPatterns/03_Synchronization/Package.pione +2 -0
  144. data/example/WorkflowPatterns/03_Synchronization/Synchronization.pione +12 -13
  145. data/example/WorkflowPatterns/03_Synchronization/Synchronization.pnml +273 -0
  146. data/example/WorkflowPatterns/03_Synchronization/pione-package.json +19 -0
  147. data/example/WorkflowPatterns/04_ExclusiveChoice/ExclusiveChoice.pione +15 -22
  148. data/example/WorkflowPatterns/04_ExclusiveChoice/ExclusiveChoice.pnml +533 -0
  149. data/example/WorkflowPatterns/04_ExclusiveChoice/Package.pione +4 -0
  150. data/example/WorkflowPatterns/04_ExclusiveChoice/pione-package.json +19 -0
  151. data/example/WorkflowPatterns/05_SimpleMerge/Package.pione +4 -0
  152. data/example/WorkflowPatterns/05_SimpleMerge/SimpleMerge.pione +10 -18
  153. data/example/WorkflowPatterns/05_SimpleMerge/SimpleMerge.pnml +431 -0
  154. data/example/WorkflowPatterns/05_SimpleMerge/pione-package.json +19 -0
  155. data/example/WorkflowPatterns/06_MultiChoice/MultiChoice.pione +20 -28
  156. data/example/WorkflowPatterns/06_MultiChoice/MultiChoice.pnml +797 -0
  157. data/example/WorkflowPatterns/06_MultiChoice/Package.pione +5 -0
  158. data/example/WorkflowPatterns/06_MultiChoice/pione-package.json +19 -0
  159. data/example/WorkflowPatterns/07_StructuredSynchronizingMerge/Package.pione +5 -0
  160. data/example/WorkflowPatterns/07_StructuredSynchronizingMerge/StructuredSynchronizingMerge.pnml +668 -0
  161. data/example/WorkflowPatterns/08_MultiMerge/MultiMerge.pione +9 -20
  162. data/example/WorkflowPatterns/08_MultiMerge/MultiMerge.pnml +551 -0
  163. data/example/WorkflowPatterns/08_MultiMerge/Package.pione +4 -0
  164. data/example/WorkflowPatterns/08_MultiMerge/pione-package.json +19 -0
  165. data/example/WorkflowPatterns/11_ImplicitTermination/ImplicitTermination.pione +9 -17
  166. data/example/WorkflowPatterns/11_ImplicitTermination/ImplicitTermination.pnml +188 -0
  167. data/example/WorkflowPatterns/11_ImplicitTermination/Package.pione +2 -0
  168. data/example/WorkflowPatterns/11_ImplicitTermination/pione-package.json +19 -0
  169. data/example/WorkflowPatterns/12_MultipleInstancesWithoutSynchronization/MultipleInstancesWithoutSynchronization.pione +11 -11
  170. data/example/WorkflowPatterns/12_MultipleInstancesWithoutSynchronization/MultipleInstancesWithoutSynchronization.pnml +319 -0
  171. data/example/WorkflowPatterns/12_MultipleInstancesWithoutSynchronization/Package.pione +4 -0
  172. data/example/WorkflowPatterns/12_MultipleInstancesWithoutSynchronization/pione-package.json +19 -0
  173. data/example/WorkflowPatterns/13_MultipleInstancesWithDesignTimeKnowledge/MultipleInstancesWithDesignTimeKnowledge.pione +11 -11
  174. data/example/WorkflowPatterns/13_MultipleInstancesWithDesignTimeKnowledge/MultipleInstancesWithDesignTimeKnowledge.pnml +319 -0
  175. data/example/WorkflowPatterns/13_MultipleInstancesWithDesignTimeKnowledge/Package.pione +2 -0
  176. data/example/WorkflowPatterns/13_MultipleInstancesWithDesignTimeKnowledge/pione-package.json +19 -0
  177. data/example/WorkflowPatterns/14_MultipleInstancesWithRunTimeKnowledge/MultipleInstancesWithRunTimeKnowledge.pione +14 -17
  178. data/example/WorkflowPatterns/14_MultipleInstancesWithRunTimeKnowledge/MultipleInstancesWithRunTimeKnowledge.pnml +355 -0
  179. data/example/WorkflowPatterns/14_MultipleInstancesWithRunTimeKnowledge/Package.pione +4 -0
  180. data/example/WorkflowPatterns/14_MultipleInstancesWithRunTimeKnowledge/pione-package.json +19 -0
  181. data/example/WorkflowPatterns/33_GeneralizedANDJoin/GeneralizedANDJoin.pione +9 -10
  182. data/example/WorkflowPatterns/33_GeneralizedANDJoin/GeneralizedANDJoin.pnml +409 -0
  183. data/example/WorkflowPatterns/33_GeneralizedANDJoin/Package.pione +2 -0
  184. data/example/WorkflowPatterns/33_GeneralizedANDJoin/pione-package.json +19 -0
  185. data/example/WorkflowPatterns/37_LocalSynchronizingMerge/A.pione +34 -0
  186. data/example/WorkflowPatterns/37_LocalSynchronizingMerge/A.pnml +570 -0
  187. data/example/WorkflowPatterns/37_LocalSynchronizingMerge/LocalSynchronizingMerge.pione +36 -70
  188. data/example/WorkflowPatterns/37_LocalSynchronizingMerge/LocalSynchronizingMerge.pnml +854 -0
  189. data/example/WorkflowPatterns/37_LocalSynchronizingMerge/Package.pione +5 -0
  190. data/example/WorkflowPatterns/37_LocalSynchronizingMerge/pione-package.json +20 -0
  191. data/example/WorkflowPatterns/38_GeneralSynchronizingMerge/GeneralSynchronizingMerge.pnml +1003 -0
  192. data/example/WorkflowPatterns/38_GeneralSynchronizingMerge/Package.pione +6 -0
  193. data/example/WorkflowPatterns/41_ThreadMerge/A.pnml +429 -0
  194. data/example/WorkflowPatterns/41_ThreadMerge/A1.pnml +141 -0
  195. data/example/WorkflowPatterns/41_ThreadMerge/Package.pione +2 -0
  196. data/example/WorkflowPatterns/41_ThreadMerge/ThreadMerge.pnml +205 -0
  197. data/example/WorkflowPatterns/42_ThreadSplit/Package.pione +2 -0
  198. data/example/WorkflowPatterns/42_ThreadSplit/ThreadSplit.pnml +217 -0
  199. data/lib/pione/agent/job-manager.rb +4 -3
  200. data/lib/pione/agent/task-worker.rb +2 -7
  201. data/lib/pione/command.rb +1 -0
  202. data/lib/pione/command/basic-command.rb +3 -1
  203. data/lib/pione/command/command-exception.rb +14 -0
  204. data/lib/pione/command/pione-action-exec.rb +4 -1
  205. data/lib/pione/command/pione-clean.rb +13 -6
  206. data/lib/pione/command/pione-client.rb +5 -5
  207. data/lib/pione/command/pione-compile.rb +1 -1
  208. data/lib/pione/command/pione-log-format.rb +1 -1
  209. data/lib/pione/command/pione-package-add.rb +1 -1
  210. data/lib/pione/command/pione-package-build.rb +87 -32
  211. data/lib/pione/command/pione-package-remove.rb +117 -0
  212. data/lib/pione/command/pione-package.rb +1 -0
  213. data/lib/pione/command/spawner.rb +12 -3
  214. data/lib/pione/lang/boolean.rb +1 -1
  215. data/lib/pione/lang/common-parser.rb +5 -3
  216. data/lib/pione/lang/context-parser.rb +8 -2
  217. data/lib/pione/lang/context-transformer.rb +13 -3
  218. data/lib/pione/lang/context.rb +20 -2
  219. data/lib/pione/lang/data-expr.rb +1 -1
  220. data/lib/pione/lang/declaration-parser.rb +18 -4
  221. data/lib/pione/lang/declaration-transformer.rb +1 -1
  222. data/lib/pione/lang/declaration.rb +5 -3
  223. data/lib/pione/lang/definition.rb +1 -0
  224. data/lib/pione/lang/environment.rb +37 -2
  225. data/lib/pione/lang/expr.rb +10 -12
  226. data/lib/pione/lang/feature-expr.rb +1 -1
  227. data/lib/pione/lang/float.rb +1 -1
  228. data/lib/pione/lang/integer.rb +1 -1
  229. data/lib/pione/lang/keyed-sequence.rb +5 -5
  230. data/lib/pione/lang/lang-exception.rb +9 -5
  231. data/lib/pione/lang/literal-parser.rb +2 -2
  232. data/lib/pione/lang/literal-transformer.rb +3 -0
  233. data/lib/pione/lang/message.rb +3 -3
  234. data/lib/pione/lang/ordinal-sequence.rb +1 -1
  235. data/lib/pione/lang/package-expr.rb +1 -1
  236. data/lib/pione/lang/parameters.rb +1 -1
  237. data/lib/pione/lang/pione-method.rb +16 -16
  238. data/lib/pione/lang/rule-expr.rb +6 -1
  239. data/lib/pione/lang/sequence.rb +8 -3
  240. data/lib/pione/lang/string.rb +1 -1
  241. data/lib/pione/lang/ticket-expr.rb +1 -1
  242. data/lib/pione/lang/type.rb +17 -8
  243. data/lib/pione/lang/variable.rb +4 -1
  244. data/lib/pione/literate-action.rb +1 -2
  245. data/lib/pione/literate-action/document.rb +1 -1
  246. data/lib/pione/literate-action/handler.rb +22 -7
  247. data/lib/pione/literate-action/{parser.rb → markdown-parser.rb} +2 -1
  248. data/lib/pione/log/domain-log.rb +1 -1
  249. data/lib/pione/model/task-worker-broker-model.rb +1 -1
  250. data/lib/pione/package/package-database.rb +16 -2
  251. data/lib/pione/package/package-exception.rb +1 -1
  252. data/lib/pione/package/package-handler.rb +11 -7
  253. data/lib/pione/package/package-info.rb +13 -7
  254. data/lib/pione/package/package-scanner.rb +1 -1
  255. data/lib/pione/package/scenario-info.rb +2 -2
  256. data/lib/pione/pnml.rb +6 -0
  257. data/lib/pione/pnml/compiler.rb +329 -95
  258. data/lib/pione/pnml/declaration-extractor.rb +90 -0
  259. data/lib/pione/pnml/input-merge-complement.rb +17 -11
  260. data/lib/pione/pnml/input-parallelization-complement.rb +10 -6
  261. data/lib/pione/pnml/input-reduction.rb +5 -5
  262. data/lib/pione/pnml/invalid-arc-elimination.rb +2 -2
  263. data/lib/pione/pnml/io-expansion.rb +9 -5
  264. data/lib/pione/pnml/isolated-element-elimination.rb +2 -2
  265. data/lib/pione/pnml/label-extractor.rb +258 -0
  266. data/lib/pione/pnml/net-rewriter.rb +6 -4
  267. data/lib/pione/pnml/output-decomposition-complement.rb +12 -7
  268. data/lib/pione/pnml/output-reduction.rb +11 -5
  269. data/lib/pione/pnml/output-synchronization-complement.rb +11 -7
  270. data/lib/pione/pnml/parser.rb +106 -0
  271. data/lib/pione/pnml/pione-model.rb +685 -230
  272. data/lib/pione/pnml/pnml-model.rb +73 -41
  273. data/lib/pione/pnml/ticket-instantiation.rb +42 -0
  274. data/lib/pione/rule-engine/action-handler.rb +212 -135
  275. data/lib/pione/rule-engine/basic-handler.rb +29 -3
  276. data/lib/pione/rule-engine/engine-exception.rb +10 -6
  277. data/lib/pione/system/status.rb +12 -6
  278. data/lib/pione/version.rb +1 -1
  279. data/lib/rootage/help.md.erb +45 -0
  280. data/lib/rootage/help.rb +1 -0
  281. data/lib/rootage/scenario.rb +20 -2
  282. data/misc/pione-completion.bash +15 -5
  283. data/misc/pione-completion.zsh +16 -6
  284. data/test/command/spec_pione-client.rb +60 -60
  285. data/test/lang/data/context-parser.yml +12 -1
  286. data/test/lang/spec_pione-method.rb +7 -6
  287. data/test/literate-action/spec_handler.rb +19 -13
  288. data/test/literate-action/{spec_parser.rb → spec_markdown-parser.rb} +3 -3
  289. data/test/log/spec_message-log-receiver.rb +1 -1
  290. data/test/package/spec_package-info.rb +1 -1
  291. data/test/pnml/spec_input-merge-complement.rb +4 -2
  292. data/test/pnml/spec_input-parallelization-complement.rb +4 -2
  293. data/test/pnml/spec_input-reduction.rb +8 -4
  294. data/test/pnml/spec_invalid-arc-elimination.rb +2 -1
  295. data/test/pnml/spec_io-expansion.rb +4 -2
  296. data/test/pnml/spec_isolated-element-elimination.rb +2 -1
  297. data/test/pnml/spec_label-extractor.rb +100 -0
  298. data/test/pnml/spec_output-decomposition-complement.rb +4 -2
  299. data/test/pnml/spec_output-reduction.rb +8 -4
  300. data/test/pnml/spec_output-synchronization-complement.rb +4 -2
  301. data/test/pnml/spec_pione-element.rb +116 -37
  302. data/test/pnml/spec_pnml-element.rb +32 -8
  303. data/test/rule-engine/spec_action-handler.rb +12 -20
  304. metadata +159 -16
  305. data/example/CTFCorrection/package.yml +0 -1
  306. data/example/DeferredChoice/bin/ui.xml +0 -28
@@ -0,0 +1 @@
1
+ .@ PackageName :: "CTFCorrection"
@@ -0,0 +1,21 @@
1
+ Basic Param
2
+ $RESOLUTION := 3.80 # tiff2mrc -r
3
+ $CTF_DETERMINE_Cc := 0.7 # ctfDetermine -Cc
4
+ $CTF_DETERMINE_Cs := 2.1 # ctfDetermine -Cs
5
+ End
6
+
7
+ Advanced Param
8
+ $TIFF2MRC_m := 0
9
+ $TIFF2MRC_Offset := 0.0
10
+ $MRC_IMAGE_CENTER_Nx := 1000 # FIXME
11
+ $MRC_IMAGE_CENTER_Ny := 1000 # FIXME
12
+ $MRC_IMAGE_ABNORMAL_VALUE_REMOVE_u_MAX := 65535
13
+ $MRC_IMAGE_ABNORMAL_VALUE_REMOVE_u_HALF := 16384
14
+ $MRC_IMAGE_ABNORMAL_VALUE_REMOVE_m := 1
15
+ $MRC_DETERMINE_D := 50000
16
+ $MRC_DETERMINE_m := 128
17
+ $MRC_DETERMINE_CutLow := 0.025
18
+ $MRC_DETERMINE_CutHigh := 0.15
19
+ $MRC_DETERMINE_d := 3
20
+ $MRC_IMAGE_CTF_COMPENSATION_m := 1
21
+ End
@@ -0,0 +1,20 @@
1
+ {
2
+ "PackageName": "CTFCorrection",
3
+ "Parents": [
4
+
5
+ ],
6
+ "Documents": [
7
+ "CTFCorrection.pione",
8
+ "Package.pione",
9
+ "Params.pione"
10
+ ],
11
+ "Scenarios": [
12
+
13
+ ],
14
+ "Bins": [
15
+
16
+ ],
17
+ "Etcs": [
18
+
19
+ ]
20
+ }
@@ -0,0 +1,8 @@
1
+ .@ PackageName :: "ChildPackage"
2
+ .@ Parent :: &ParentPackage
3
+
4
+ Rule DoAction
5
+ output 'result.txt'.stdout
6
+ Action
7
+ echo "This is a child's action."
8
+ End
@@ -0,0 +1,20 @@
1
+ {
2
+ "PackageName": "ChildPackage",
3
+ "Parents": [
4
+ {
5
+ "PackageName": "ParentPackage"
6
+ }
7
+ ],
8
+ "Documents": [
9
+ "ChildPackage.pione"
10
+ ],
11
+ "Scenarios": [
12
+
13
+ ],
14
+ "Bins": [
15
+
16
+ ],
17
+ "Etcs": [
18
+
19
+ ]
20
+ }
@@ -0,0 +1,31 @@
1
+ Rule CountChar
2
+ input '*.txt'
3
+ output '{$*}.count'
4
+ Flow
5
+ rule CountUTF8Char
6
+ rule ConvertToUTF8
7
+ End
8
+
9
+ Rule CountUTF8Char
10
+ input '*.utf8'
11
+ output '{$*}.count'.stdout
12
+ Action
13
+ #!/usr/bin/env ruby
14
+ # coding: utf-8
15
+
16
+ table = {}
17
+ text = File.open("{$I[1]}").read
18
+ text.split("").each do |c|
19
+ table[c] = table.has_key?(c) ? table[c].succ : 1
20
+ end
21
+ table.keys.sort {|a,b| table[b] <=> table[a] }.each do |key|
22
+ puts "#{key.inspect[1..-2]}:#{table[key]}"
23
+ end
24
+ End
25
+
26
+ Rule ConvertToUTF8
27
+ input '*.txt'
28
+ output '{$*}.utf8'
29
+ Action
30
+ iconv -c -f Shift_JIS -t UTF-8 {$I[1]} > {$O[1]}
31
+ End
@@ -0,0 +1,239 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--PLEASE DO NOT EDIT THIS FILE
3
+ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
4
+ <pnml>
5
+ <net type="http://www.informatik.hu-berlin.de/top/pntd/ptNetb" id="noID">
6
+ <place id="p7">
7
+ <name>
8
+ <text>'*.utf8'</text>
9
+ <graphics>
10
+ <offset x="400" y="210"/>
11
+ </graphics>
12
+ </name>
13
+ <graphics>
14
+ <position x="400" y="170"/>
15
+ <dimension x="40" y="40"/>
16
+ </graphics>
17
+ </place>
18
+ <place id="p5">
19
+ <name>
20
+ <text>'{$*}.count'.stdout</text>
21
+ <graphics>
22
+ <offset x="540" y="140"/>
23
+ </graphics>
24
+ </name>
25
+ <graphics>
26
+ <position x="560" y="170"/>
27
+ <dimension x="40" y="40"/>
28
+ </graphics>
29
+ </place>
30
+ <place id="p3">
31
+ <name>
32
+ <text>>'{$*}.count'</text>
33
+ <graphics>
34
+ <offset x="740" y="210"/>
35
+ </graphics>
36
+ </name>
37
+ <graphics>
38
+ <position x="740" y="170"/>
39
+ <dimension x="40" y="40"/>
40
+ </graphics>
41
+ </place>
42
+ <place id="p2">
43
+ <name>
44
+ <text>'{$*}.utf8'</text>
45
+ <graphics>
46
+ <offset x="240" y="210"/>
47
+ </graphics>
48
+ </name>
49
+ <graphics>
50
+ <position x="240" y="170"/>
51
+ <dimension x="40" y="40"/>
52
+ </graphics>
53
+ </place>
54
+ <place id="p1">
55
+ <name>
56
+ <text>&lt;'*.txt'</text>
57
+ <graphics>
58
+ <offset x="70" y="210"/>
59
+ </graphics>
60
+ </name>
61
+ <graphics>
62
+ <position x="70" y="170"/>
63
+ <dimension x="40" y="40"/>
64
+ </graphics>
65
+ </place>
66
+ <transition id="t3">
67
+ <name>
68
+ <text>CountUTF8Char</text>
69
+ <graphics>
70
+ <offset x="480" y="210"/>
71
+ </graphics>
72
+ </name>
73
+ <graphics>
74
+ <position x="480" y="170"/>
75
+ <dimension x="40" y="40"/>
76
+ </graphics>
77
+ <toolspecific tool="WoPeD" version="1.0">
78
+ <time>0</time>
79
+ <timeUnit>1</timeUnit>
80
+ <orientation>1</orientation>
81
+ </toolspecific>
82
+ </transition>
83
+ <transition id="t2">
84
+ <name>
85
+ <text/>
86
+ <graphics>
87
+ <offset x="660" y="210"/>
88
+ </graphics>
89
+ </name>
90
+ <graphics>
91
+ <position x="660" y="170"/>
92
+ <dimension x="40" y="40"/>
93
+ </graphics>
94
+ <toolspecific tool="WoPeD" version="1.0">
95
+ <time>0</time>
96
+ <timeUnit>1</timeUnit>
97
+ <orientation>1</orientation>
98
+ </toolspecific>
99
+ </transition>
100
+ <transition id="t1">
101
+ <name>
102
+ <text>ConvertToUTF8</text>
103
+ <graphics>
104
+ <offset x="150" y="210"/>
105
+ </graphics>
106
+ </name>
107
+ <graphics>
108
+ <position x="150" y="170"/>
109
+ <dimension x="40" y="40"/>
110
+ </graphics>
111
+ <toolspecific tool="WoPeD" version="1.0">
112
+ <time>0</time>
113
+ <timeUnit>1</timeUnit>
114
+ <orientation>1</orientation>
115
+ </toolspecific>
116
+ </transition>
117
+ <transition id="t6">
118
+ <name>
119
+ <text/>
120
+ <graphics>
121
+ <offset x="320" y="210"/>
122
+ </graphics>
123
+ </name>
124
+ <graphics>
125
+ <position x="320" y="170"/>
126
+ <dimension x="40" y="40"/>
127
+ </graphics>
128
+ <toolspecific tool="WoPeD" version="1.0">
129
+ <time>0</time>
130
+ <timeUnit>1</timeUnit>
131
+ <orientation>1</orientation>
132
+ </toolspecific>
133
+ </transition>
134
+ <arc id="a11" source="p7" target="t3">
135
+ <inscription>
136
+ <text>1</text>
137
+ </inscription>
138
+ <graphics/>
139
+ <toolspecific tool="WoPeD" version="1.0">
140
+ <probability>1.0</probability>
141
+ <displayProbabilityOn>false</displayProbabilityOn>
142
+ <displayProbabilityPosition x="500.0" y="0.0"/>
143
+ </toolspecific>
144
+ </arc>
145
+ <arc id="a1" source="p1" target="t1">
146
+ <inscription>
147
+ <text>1</text>
148
+ </inscription>
149
+ <graphics/>
150
+ <toolspecific tool="WoPeD" version="1.0">
151
+ <probability>1.0</probability>
152
+ <displayProbabilityOn>false</displayProbabilityOn>
153
+ <displayProbabilityPosition x="500.0" y="0.0"/>
154
+ </toolspecific>
155
+ </arc>
156
+ <arc id="a2" source="t1" target="p2">
157
+ <inscription>
158
+ <text>1</text>
159
+ </inscription>
160
+ <graphics/>
161
+ <toolspecific tool="WoPeD" version="1.0">
162
+ <probability>1.0</probability>
163
+ <displayProbabilityOn>false</displayProbabilityOn>
164
+ <displayProbabilityPosition x="500.0" y="0.0"/>
165
+ </toolspecific>
166
+ </arc>
167
+ <arc id="a3" source="p5" target="t2">
168
+ <inscription>
169
+ <text>1</text>
170
+ </inscription>
171
+ <graphics/>
172
+ <toolspecific tool="WoPeD" version="1.0">
173
+ <probability>1.0</probability>
174
+ <displayProbabilityOn>false</displayProbabilityOn>
175
+ <displayProbabilityPosition x="500.0" y="0.0"/>
176
+ </toolspecific>
177
+ </arc>
178
+ <arc id="a4" source="t2" target="p3">
179
+ <inscription>
180
+ <text>1</text>
181
+ </inscription>
182
+ <graphics/>
183
+ <toolspecific tool="WoPeD" version="1.0">
184
+ <probability>1.0</probability>
185
+ <displayProbabilityOn>false</displayProbabilityOn>
186
+ <displayProbabilityPosition x="500.0" y="0.0"/>
187
+ </toolspecific>
188
+ </arc>
189
+ <arc id="a5" source="p2" target="t6">
190
+ <inscription>
191
+ <text>1</text>
192
+ </inscription>
193
+ <graphics/>
194
+ <toolspecific tool="WoPeD" version="1.0">
195
+ <probability>1.0</probability>
196
+ <displayProbabilityOn>false</displayProbabilityOn>
197
+ <displayProbabilityPosition x="500.0" y="0.0"/>
198
+ </toolspecific>
199
+ </arc>
200
+ <arc id="a6" source="t6" target="p7">
201
+ <inscription>
202
+ <text>1</text>
203
+ </inscription>
204
+ <graphics/>
205
+ <toolspecific tool="WoPeD" version="1.0">
206
+ <probability>1.0</probability>
207
+ <displayProbabilityOn>false</displayProbabilityOn>
208
+ <displayProbabilityPosition x="500.0" y="0.0"/>
209
+ </toolspecific>
210
+ </arc>
211
+ <arc id="a7" source="t3" target="p5">
212
+ <inscription>
213
+ <text>1</text>
214
+ </inscription>
215
+ <graphics/>
216
+ <toolspecific tool="WoPeD" version="1.0">
217
+ <probability>1.0</probability>
218
+ <displayProbabilityOn>false</displayProbabilityOn>
219
+ <displayProbabilityPosition x="500.0" y="0.0"/>
220
+ </toolspecific>
221
+ </arc>
222
+ <toolspecific tool="WoPeD" version="1.0">
223
+ <bounds>
224
+ <position x="2" y="25"/>
225
+ <dimension x="1425" y="596"/>
226
+ </bounds>
227
+ <scale>100</scale>
228
+ <treeWidthRight>1129</treeWidthRight>
229
+ <overviewPanelVisible>true</overviewPanelVisible>
230
+ <treeHeightOverview>100</treeHeightOverview>
231
+ <treePanelVisible>true</treePanelVisible>
232
+ <verticalLayout>false</verticalLayout>
233
+ <resources/>
234
+ <simulations/>
235
+ <partnerLinks/>
236
+ <variables/>
237
+ </toolspecific>
238
+ </net>
239
+ </pnml>
@@ -1,36 +1,16 @@
1
- .@ PackageName :: "CountChar"
2
-
3
1
  Rule Main
4
- input '*.txt'
2
+ input '*.txt'.all
5
3
  output 'summary.out'
6
4
  Flow
7
- rule CountUTF8Char
8
- rule ConvertToUTF8
5
+ rule __Main_CountChar_0__
9
6
  rule Summarize
10
7
  End
11
8
 
12
- Rule CountUTF8Char
13
- input '*.utf8'
14
- output '{$*}.count'.stdout
15
- Action
16
- #!/usr/bin/env ruby
17
- # coding: utf-8
18
-
19
- table = {}
20
- text = File.open("{$I[1]}").read
21
- text.split("").each do |c|
22
- table[c] = table.has_key?(c) ? table[c].succ : 1
23
- end
24
- table.keys.sort {|a,b| table[b] <=> table[a] }.each do |key|
25
- puts "#{key.inspect[1..-2]}:#{table[key]}"
26
- end
27
- End
28
-
29
- Rule ConvertToUTF8
9
+ Rule __Main_CountChar_0__
30
10
  input '*.txt'
31
- output '{$*}.utf8'
32
- Action
33
- iconv -c -f Shift_JIS -t UTF-8 {$I[1]} > {$O[1]}
11
+ output '{$*}.count'
12
+ Flow
13
+ rule CountChar
34
14
  End
35
15
 
36
16
  Rule Summarize
@@ -1,41 +1,29 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!--PLEASE DO NOT EDIT THIS FILE
3
- Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
3
+ Created with Workflow PetriNet Designer Version 3.2.0 (woped.org)-->
4
4
  <pnml>
5
5
  <net type="http://www.informatik.hu-berlin.de/top/pntd/ptNetb" id="noID">
6
- <place id="p7">
7
- <name>
8
- <text>'*.utf8'</text>
9
- <graphics>
10
- <offset x="400" y="210"/>
11
- </graphics>
12
- </name>
13
- <graphics>
14
- <position x="400" y="170"/>
15
- <dimension x="40" y="40"/>
16
- </graphics>
17
- </place>
18
6
  <place id="p6">
19
7
  <name>
20
8
  <text>'summary.out'.stdout</text>
21
9
  <graphics>
22
- <offset x="480" y="340"/>
10
+ <offset x="660" y="210"/>
23
11
  </graphics>
24
12
  </name>
25
13
  <graphics>
26
- <position x="480" y="300"/>
14
+ <position x="660" y="170"/>
27
15
  <dimension x="40" y="40"/>
28
16
  </graphics>
29
17
  </place>
30
18
  <place id="p5">
31
19
  <name>
32
- <text>'{$*}.count'.stdout</text>
20
+ <text>'*.txt'</text>
33
21
  <graphics>
34
- <offset x="560" y="150"/>
22
+ <offset x="220" y="210"/>
35
23
  </graphics>
36
24
  </name>
37
25
  <graphics>
38
- <position x="560" y="170"/>
26
+ <position x="220" y="170"/>
39
27
  <dimension x="40" y="40"/>
40
28
  </graphics>
41
29
  </place>
@@ -43,11 +31,11 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
43
31
  <name>
44
32
  <text>>'summary.out'</text>
45
33
  <graphics>
46
- <offset x="640" y="340"/>
34
+ <offset x="800" y="210"/>
47
35
  </graphics>
48
36
  </name>
49
37
  <graphics>
50
- <position x="640" y="300"/>
38
+ <position x="800" y="170"/>
51
39
  <dimension x="40" y="40"/>
52
40
  </graphics>
53
41
  </place>
@@ -55,64 +43,47 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
55
43
  <name>
56
44
  <text>'*.count'.all</text>
57
45
  <graphics>
58
- <offset x="310" y="340"/>
46
+ <offset x="500" y="210"/>
59
47
  </graphics>
60
48
  </name>
61
49
  <graphics>
62
- <position x="310" y="300"/>
50
+ <position x="500" y="170"/>
63
51
  <dimension x="40" y="40"/>
64
52
  </graphics>
65
53
  </place>
66
54
  <place id="p2">
67
55
  <name>
68
- <text>'{$*}.utf8'</text>
56
+ <text>'{$*}.count'</text>
69
57
  <graphics>
70
- <offset x="240" y="210"/>
58
+ <offset x="350" y="150"/>
71
59
  </graphics>
72
60
  </name>
73
61
  <graphics>
74
- <position x="240" y="170"/>
62
+ <position x="360" y="170"/>
75
63
  <dimension x="40" y="40"/>
76
64
  </graphics>
77
65
  </place>
78
66
  <place id="p1">
79
67
  <name>
80
- <text>&lt;'*.txt'</text>
68
+ <text>&lt;'*.txt'.all</text>
81
69
  <graphics>
82
- <offset x="70" y="210"/>
70
+ <offset x="80" y="210"/>
83
71
  </graphics>
84
72
  </name>
85
73
  <graphics>
86
- <position x="70" y="170"/>
74
+ <position x="80" y="170"/>
87
75
  <dimension x="40" y="40"/>
88
76
  </graphics>
89
77
  </place>
90
- <transition id="t3">
91
- <name>
92
- <text>CountUTF8Char</text>
93
- <graphics>
94
- <offset x="480" y="210"/>
95
- </graphics>
96
- </name>
97
- <graphics>
98
- <position x="480" y="170"/>
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
78
  <transition id="t2">
108
79
  <name>
109
80
  <text/>
110
81
  <graphics>
111
- <offset x="650" y="210"/>
82
+ <offset x="150" y="210"/>
112
83
  </graphics>
113
84
  </name>
114
85
  <graphics>
115
- <position x="650" y="170"/>
86
+ <position x="150" y="170"/>
116
87
  <dimension x="40" y="40"/>
117
88
  </graphics>
118
89
  <toolspecific tool="WoPeD" version="1.0">
@@ -123,13 +94,13 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
123
94
  </transition>
124
95
  <transition id="t1">
125
96
  <name>
126
- <text>ConvertToUTF8</text>
97
+ <text>extern CountChar</text>
127
98
  <graphics>
128
- <offset x="150" y="210"/>
99
+ <offset x="290" y="210"/>
129
100
  </graphics>
130
101
  </name>
131
102
  <graphics>
132
- <position x="150" y="170"/>
103
+ <position x="290" y="170"/>
133
104
  <dimension x="40" y="40"/>
134
105
  </graphics>
135
106
  <toolspecific tool="WoPeD" version="1.0">
@@ -142,11 +113,11 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
142
113
  <name>
143
114
  <text>Summarize</text>
144
115
  <graphics>
145
- <offset x="400" y="340"/>
116
+ <offset x="580" y="210"/>
146
117
  </graphics>
147
118
  </name>
148
119
  <graphics>
149
- <position x="400" y="300"/>
120
+ <position x="580" y="170"/>
150
121
  <dimension x="40" y="40"/>
151
122
  </graphics>
152
123
  <toolspecific tool="WoPeD" version="1.0">
@@ -159,11 +130,11 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
159
130
  <name>
160
131
  <text/>
161
132
  <graphics>
162
- <offset x="560" y="340"/>
133
+ <offset x="730" y="210"/>
163
134
  </graphics>
164
135
  </name>
165
136
  <graphics>
166
- <position x="560" y="300"/>
137
+ <position x="730" y="170"/>
167
138
  <dimension x="40" y="40"/>
168
139
  </graphics>
169
140
  <toolspecific tool="WoPeD" version="1.0">
@@ -176,28 +147,11 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
176
147
  <name>
177
148
  <text/>
178
149
  <graphics>
179
- <offset x="320" y="210"/>
180
- </graphics>
181
- </name>
182
- <graphics>
183
- <position x="320" y="170"/>
184
- <dimension x="40" y="40"/>
185
- </graphics>
186
- <toolspecific tool="WoPeD" version="1.0">
187
- <time>0</time>
188
- <timeUnit>1</timeUnit>
189
- <orientation>1</orientation>
190
- </toolspecific>
191
- </transition>
192
- <transition id="t7">
193
- <name>
194
- <text>.@ PackageName :: "CountChar"</text>
195
- <graphics>
196
- <offset x="70" y="120"/>
150
+ <offset x="430" y="210"/>
197
151
  </graphics>
198
152
  </name>
199
153
  <graphics>
200
- <position x="70" y="80"/>
154
+ <position x="430" y="170"/>
201
155
  <dimension x="40" y="40"/>
202
156
  </graphics>
203
157
  <toolspecific tool="WoPeD" version="1.0">
@@ -217,17 +171,6 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
217
171
  <displayProbabilityPosition x="500.0" y="0.0"/>
218
172
  </toolspecific>
219
173
  </arc>
220
- <arc id="a12" source="t2" target="p3">
221
- <inscription>
222
- <text>1</text>
223
- </inscription>
224
- <graphics/>
225
- <toolspecific tool="WoPeD" version="1.0">
226
- <probability>1.0</probability>
227
- <displayProbabilityOn>false</displayProbabilityOn>
228
- <displayProbabilityPosition x="500.0" y="0.0"/>
229
- </toolspecific>
230
- </arc>
231
174
  <arc id="a10" source="t4" target="p6">
232
175
  <inscription>
233
176
  <text>1</text>
@@ -239,18 +182,7 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
239
182
  <displayProbabilityPosition x="500.0" y="0.0"/>
240
183
  </toolspecific>
241
184
  </arc>
242
- <arc id="a11" source="p7" target="t3">
243
- <inscription>
244
- <text>1</text>
245
- </inscription>
246
- <graphics/>
247
- <toolspecific tool="WoPeD" version="1.0">
248
- <probability>1.0</probability>
249
- <displayProbabilityOn>false</displayProbabilityOn>
250
- <displayProbabilityPosition x="500.0" y="0.0"/>
251
- </toolspecific>
252
- </arc>
253
- <arc id="a1" source="p1" target="t1">
185
+ <arc id="a11" source="p5" target="t1">
254
186
  <inscription>
255
187
  <text>1</text>
256
188
  </inscription>
@@ -305,7 +237,7 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
305
237
  <displayProbabilityPosition x="500.0" y="0.0"/>
306
238
  </toolspecific>
307
239
  </arc>
308
- <arc id="a6" source="t6" target="p7">
240
+ <arc id="a6" source="t6" target="p3">
309
241
  <inscription>
310
242
  <text>1</text>
311
243
  </inscription>
@@ -316,7 +248,7 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
316
248
  <displayProbabilityPosition x="500.0" y="0.0"/>
317
249
  </toolspecific>
318
250
  </arc>
319
- <arc id="a7" source="t3" target="p5">
251
+ <arc id="a7" source="p1" target="t2">
320
252
  <inscription>
321
253
  <text>1</text>
322
254
  </inscription>
@@ -327,7 +259,7 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
327
259
  <displayProbabilityPosition x="500.0" y="0.0"/>
328
260
  </toolspecific>
329
261
  </arc>
330
- <arc id="a8" source="p5" target="t2">
262
+ <arc id="a8" source="t2" target="p5">
331
263
  <inscription>
332
264
  <text>1</text>
333
265
  </inscription>
@@ -340,7 +272,7 @@ Created with Workflow PetriNet Designer Version 1.0 (woped.org)-->
340
272
  </arc>
341
273
  <toolspecific tool="WoPeD" version="1.0">
342
274
  <bounds>
343
- <position x="2" y="25"/>
275
+ <position x="2" y="22"/>
344
276
  <dimension x="1425" y="596"/>
345
277
  </bounds>
346
278
  <scale>100</scale>