pione 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/History.txt +13 -0
  2. data/Rakefile +3 -3
  3. data/example/DeferredChoice/DeferredChoice.pione +50 -0
  4. data/example/Fib/Fib.pione +17 -16
  5. data/example/SingleParticlesWithRef/SingleParticlesWithRef.Display2.pione +128 -0
  6. data/lib/pione.rb +1 -0
  7. data/lib/pione/agent/broker.rb +18 -4
  8. data/lib/pione/agent/task-worker.rb +19 -21
  9. data/lib/pione/command-option/task-worker-owner-option.rb +1 -1
  10. data/lib/pione/command/basic-command.rb +13 -8
  11. data/lib/pione/command/front-owner-command.rb +1 -1
  12. data/lib/pione/command/pione-broker.rb +2 -1
  13. data/lib/pione/command/pione-client.rb +41 -2
  14. data/lib/pione/command/pione-syntax-checker.rb +14 -3
  15. data/lib/pione/command/pione-task-worker.rb +4 -1
  16. data/lib/pione/command/pione-tuple-space-provider.rb +6 -7
  17. data/lib/pione/model/assignment.rb +6 -0
  18. data/lib/pione/model/message.rb +7 -3
  19. data/lib/pione/model/variable.rb +11 -0
  20. data/lib/pione/parser/common-parser.rb +36 -14
  21. data/lib/pione/parser/document-parser.rb +82 -5
  22. data/lib/pione/parser/rule-definition-parser.rb +2 -30
  23. data/lib/pione/system/config.rb +54 -6
  24. data/lib/pione/system/document.rb +13 -4
  25. data/lib/pione/system/global.rb +8 -8
  26. data/lib/pione/system/init.rb +3 -0
  27. data/lib/pione/transformer/document-transformer.rb +5 -1
  28. data/lib/pione/transformer/rule-definition-transformer.rb +8 -14
  29. data/lib/pione/tuple-space/tuple-space-receiver.rb +1 -1
  30. data/lib/pione/version.rb +2 -1
  31. data/pione.gemspec +2 -0
  32. data/test/parser/spec_document-parser.rb +5 -0
  33. data/test/parser/spec_document-parser.yml +62 -0
  34. data/test/{spec_document.rb → system/spec_document.rb} +22 -2
  35. data/test/test-util.rb +3 -3
  36. data/test/transformer/spec_rule-definition-transformer.rb +68 -73
  37. metadata +46 -5
  38. data/example/Fib/FibBC.pione +0 -56
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pione
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-19 00:00:00.000000000 Z
12
+ date: 2013-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parslet
@@ -59,6 +59,22 @@ dependencies:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.6.15
62
+ - !ruby/object:Gem::Dependency
63
+ name: naming
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
62
78
  - !ruby/object:Gem::Dependency
63
79
  name: dropbox-sdk
64
80
  requirement: !ruby/object:Gem::Requirement
@@ -171,6 +187,22 @@ dependencies:
171
187
  - - ! '>='
172
188
  - !ruby/object:Gem::Version
173
189
  version: '0'
190
+ - !ruby/object:Gem::Dependency
191
+ name: redcarpet
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
174
206
  description: PIONE(Process-rule for Input/Output Negotiation Enviromenment) is a rule-based
175
207
  workflow engine.
176
208
  email:
@@ -194,6 +226,7 @@ extra_rdoc_files: []
194
226
  files:
195
227
  - .gitignore
196
228
  - Gemfile
229
+ - History.txt
197
230
  - LICENSE.txt
198
231
  - README.md
199
232
  - Rakefile
@@ -227,9 +260,9 @@ files:
227
260
  - example/CountChar/text/saikachibuchi.txt
228
261
  - example/CountChar/text/saikonihonno_josei.txt
229
262
  - example/CountChar/text/taishojugonenno_bundan.txt
263
+ - example/DeferredChoice/DeferredChoice.pione
230
264
  - example/FeatureExample/FeatureExample.pione
231
265
  - example/Fib/Fib.pione
232
- - example/Fib/FibBC.pione
233
266
  - example/HelloWorld/HelloWorld.pione
234
267
  - example/LucasNumber/LucasNumber.pione
235
268
  - example/MakePair/MakePair.pione
@@ -240,6 +273,7 @@ files:
240
273
  - example/MakePair/data/5.i
241
274
  - example/SieveOfEratosthenes/SieveOfEratosthenes.pione
242
275
  - example/SingleParticlesWithRef/Makefile
276
+ - example/SingleParticlesWithRef/SingleParticlesWithRef.Display2.pione
243
277
  - example/SingleParticlesWithRef/SingleParticlesWithRef.Makefile
244
278
  - example/SingleParticlesWithRef/SingleParticlesWithRef.pione
245
279
  - example/SingleParticlesWithRef/SingleParticlesWithRefFull.pione
@@ -518,6 +552,8 @@ files:
518
552
  - test/parser/spec_block-parser.rb
519
553
  - test/parser/spec_block-parser.yml
520
554
  - test/parser/spec_common-parser.rb
555
+ - test/parser/spec_document-parser.rb
556
+ - test/parser/spec_document-parser.yml
521
557
  - test/parser/spec_expr-parser.rb
522
558
  - test/parser/spec_expr-parser.yml
523
559
  - test/parser/spec_feature-expr-parser.rb
@@ -535,12 +571,12 @@ files:
535
571
  - test/spec_common.rb
536
572
  - test/spec_data-finder.rb
537
573
  - test/spec_data-finder.yml
538
- - test/spec_document.rb
539
574
  - test/spec_identifier.rb
540
575
  - test/spec_log.rb
541
576
  - test/spec_object.rb
542
577
  - test/spec_resource.rb
543
578
  - test/spec_update-criteria.rb
579
+ - test/system/spec_document.rb
544
580
  - test/test-util.rb
545
581
  - test/transformer/spec_block-transformer.rb
546
582
  - test/transformer/spec_expr-transformer.rb
@@ -578,6 +614,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
578
614
  - - ! '>='
579
615
  - !ruby/object:Gem::Version
580
616
  version: '0'
617
+ segments:
618
+ - 0
619
+ hash: -1058953212253299218
581
620
  requirements: []
582
621
  rubyforge_project:
583
622
  rubygems_version: 1.8.24
@@ -616,6 +655,8 @@ test_files:
616
655
  - test/parser/spec_block-parser.rb
617
656
  - test/parser/spec_block-parser.yml
618
657
  - test/parser/spec_common-parser.rb
658
+ - test/parser/spec_document-parser.rb
659
+ - test/parser/spec_document-parser.yml
619
660
  - test/parser/spec_expr-parser.rb
620
661
  - test/parser/spec_expr-parser.yml
621
662
  - test/parser/spec_feature-expr-parser.rb
@@ -633,12 +674,12 @@ test_files:
633
674
  - test/spec_common.rb
634
675
  - test/spec_data-finder.rb
635
676
  - test/spec_data-finder.yml
636
- - test/spec_document.rb
637
677
  - test/spec_identifier.rb
638
678
  - test/spec_log.rb
639
679
  - test/spec_object.rb
640
680
  - test/spec_resource.rb
641
681
  - test/spec_update-criteria.rb
682
+ - test/system/spec_document.rb
642
683
  - test/test-util.rb
643
684
  - test/transformer/spec_block-transformer.rb
644
685
  - test/transformer/spec_expr-transformer.rb
@@ -1,56 +0,0 @@
1
- Rule Main
2
- output 'result.txt'
3
- param $NUM := 3
4
- Flow
5
- rule Fib
6
- rule Result
7
- End
8
-
9
- Rule Fib0
10
- output 'fib0.txt'
11
- Action
12
- echo -n '0' > fib0.txt
13
- End
14
-
15
- Rule Fib1
16
- output 'fib1.txt'
17
- Action
18
- echo -n '1' > fib1.txt
19
- End
20
-
21
- Rule Fib
22
- output 'fib{$NUM}.txt'
23
- param $NUM
24
- Flow
25
- case $NUM
26
- when 0
27
- rule Fib0
28
- when 1
29
- rule Fib1
30
- else
31
- $P1 := $NUM - 2
32
- $P2 := $NUM - 1
33
- rule Fib.params({NUM: $P1})
34
- rule Fib.params({NUM: $P2})
35
- rule CalcBC.params({NUM: $NUM, P1: $P1, P2: $P2})
36
- end
37
- End
38
-
39
- Rule CalcBC
40
- input 'fib{$P1}.txt'
41
- input 'fib{$P2}.txt'
42
- output 'fib{$NUM}.txt'
43
- param $NUM
44
- param $P1
45
- param $P2
46
- Action
47
- echo "`cat {$I[1]}` + `cat {$I[2]}`" | bc > {$O[1]}
48
- End
49
-
50
- Rule Result
51
- input 'fib{$NUM}.txt'
52
- output 'result.txt'
53
- param $NUM
54
- Action
55
- cat {$I[1]} > {$O[1]}
56
- End