pione 0.5.0.alpha.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/History.txt +2 -1
- data/example/DeferredChoiceWithPage/DeferredChoiceWithPage.pione +2 -5
- data/example/DeferredChoiceWithPage/{DefferredChoiceWithPage.pnml → DeferredChoiceWithPage.pnml} +0 -0
- data/example/DeferredChoiceWithPage/pione-package.json +2 -1
- data/example/FeatureExample/FeatureExample.pione +1 -1
- data/example/FeatureExample/pione-package.json +2 -2
- data/example/Fib/Fib.pione +9 -54
- data/example/Fib/FibN.pione +49 -0
- data/example/Interaction/Interaction.pione +6 -8
- data/example/Interaction/pione-package.json +6 -5
- data/example/LoopByTouch/LoopByTouch.pione +1 -3
- data/example/LoopByTouch/LoopByTouch.pnml +23 -6
- data/example/MakePair/scenario/case1/pione-scenario.json +28 -28
- data/example/MakePair/scenario/case2/pione-scenario.json +10 -10
- data/example/MakePair/scenario/case3/pione-scenario.json +26 -26
- data/example/OddSelector/OddSelector.pione +0 -1
- data/example/OddSelector/pione-package.json +2 -2
- data/example/OddSelector/scenario/pione-scenario.json +9 -9
- data/example/PegasusWMS/Merge/PegasusWMSMerge.pione +0 -1
- data/example/PegasusWMS/Merge/PegasusWMSMerge.pnml +2 -2
- data/example/PegasusWMS/Pipeline/PegasusWMSPipeline.pione +0 -1
- data/example/PegasusWMS/Split/PegasusWMSSplit.pione +0 -1
- data/example/ScoreAggregation/pione-package.json +3 -3
- data/example/ScoreAggregation/scenario/case1/pione-scenario.json +19 -19
- data/example/SelectRuleByParam/SelectRuleByParam.pione +5 -15
- data/example/SelectRuleByParam/pione-package.json +4 -0
- data/example/SequentialParameter/SequentialParameter.pione +0 -1
- data/example/SerialProcessing/A.pione +0 -1
- data/example/SerialProcessing/B.pione +0 -1
- data/example/SerialProcessing/SerialProcessing.pione +0 -1
- data/example/SerialProcessing/pione-package.json +2 -2
- data/example/SieveOfEratosthenes/CreateUndeterminedNumbers.pione +11 -0
- data/example/SingleParticlesWithRef/Create3dinfo.pione +36 -0
- data/example/SingleParticlesWithRef/Create3dinfo.pnml +5 -5
- data/example/SingleParticlesWithRef/Package.pione +3 -0
- data/example/SingleParticlesWithRef/SingleParticlesWithRef.pione +8 -91
- data/example/SingleParticlesWithRef/SingleParticlesWithRef.pnml +6 -6
- data/example/SingleParticlesWithRef/misc/{SingleParticlesWithRef.Display2.pione → SingleParticlesWithRef.Display2.pione.bak} +0 -0
- data/example/SingleParticlesWithRef/misc/{SingleParticlesWithRefFull.pione → SingleParticlesWithRefFull.pione.bak} +0 -0
- data/example/SingleParticlesWithRef/pione-package.json +20 -0
- data/example/WorkflowPatterns/07_StructuredSynchronizingMerge/StructuredSynchronizingMerge.pione +20 -46
- data/example/WorkflowPatterns/07_StructuredSynchronizingMerge/pione-package.json +19 -0
- data/example/WorkflowPatterns/12_MultipleInstancesWithoutSynchronization/MultipleInstancesWithoutSynchronization.pione +0 -1
- data/example/WorkflowPatterns/13_MultipleInstancesWithDesignTimeKnowledge/MultipleInstancesWithDesignTimeKnowledge.pione +0 -1
- data/example/WorkflowPatterns/14_MultipleInstancesWithRunTimeKnowledge/MultipleInstancesWithRunTimeKnowledge.pione +0 -1
- data/example/WorkflowPatterns/33_GeneralizedANDJoin/GeneralizedANDJoin.pione +0 -1
- data/example/WorkflowPatterns/38_GeneralSynchronizingMerge/GeneralSynchronizingMerge.pione +28 -68
- data/example/WorkflowPatterns/41_ThreadMerge/A.pione +24 -0
- data/example/WorkflowPatterns/41_ThreadMerge/A1.pione +14 -0
- data/example/WorkflowPatterns/41_ThreadMerge/ThreadMerge.pione +8 -31
- data/example/WorkflowPatterns/41_ThreadMerge/pione-package.json +21 -0
- data/example/WorkflowPatterns/42_ThreadSplit/ThreadSplit.pione +7 -7
- data/example/WorkflowPatterns/42_ThreadSplit/pione-package.json +19 -0
- data/lib/pione/command/pione-package-build.rb +2 -1
- data/lib/pione/lang/expr-parser.rb +1 -1
- data/lib/pione/lang/expr-transformer.rb +2 -0
- data/lib/pione/lang/type.rb +2 -2
- data/lib/pione/lang/variable.rb +8 -0
- data/lib/pione/pnml/compiler.rb +42 -23
- data/lib/pione/pnml/declaration-extractor.rb +16 -6
- data/lib/pione/pnml/pione-model.rb +18 -6
- data/lib/pione/pnml/ticket-instantiation.rb +2 -2
- data/lib/pione/version.rb +1 -1
- metadata +16 -7
@@ -50,7 +50,7 @@ module Pione
|
|
50
50
|
# @return [Boolean]
|
51
51
|
# true if the node is an exression place
|
52
52
|
def expr_place?(env, node)
|
53
|
-
match_place_parser?(node, :expr_place)
|
53
|
+
match_place_parser?(env, node, :expr_place)
|
54
54
|
end
|
55
55
|
|
56
56
|
# Return true if the node is a data place.
|
@@ -91,7 +91,7 @@ module Pione
|
|
91
91
|
# true if the node is a net output data place
|
92
92
|
def net_output_data_place?(env, node)
|
93
93
|
if data_place?(env, node)
|
94
|
-
return net_output_data_symbol?(data_modifier(node))
|
94
|
+
return net_output_data_symbol?(data_modifier(env, node))
|
95
95
|
else
|
96
96
|
return false
|
97
97
|
end
|
@@ -475,7 +475,7 @@ module Pione
|
|
475
475
|
# @return [Boolean]
|
476
476
|
# true if the node is the place parser
|
477
477
|
def eval_transition(env, node, parser_name, target_name)
|
478
|
-
parsed = parse_transition(node)
|
478
|
+
parsed = parse_transition(env, node, parser_name)
|
479
479
|
if parsed and parsed[target_name]
|
480
480
|
return Lang::DocumentTransformer.new.apply(parsed[target_name], TRANSFORMER_OPT)
|
481
481
|
else
|
@@ -812,13 +812,25 @@ module Pione
|
|
812
812
|
conditions << output.as_declaration
|
813
813
|
end
|
814
814
|
@params.each do |param|
|
815
|
-
|
815
|
+
if param.kind_of?(Param)
|
816
|
+
conditions += param.as_declarations
|
817
|
+
else
|
818
|
+
conditions << param
|
819
|
+
end
|
816
820
|
end
|
817
821
|
@constraints.each do |constraint|
|
818
|
-
|
822
|
+
if constraint.kind_of?(Constraint)
|
823
|
+
conditions << constraint.as_declaration
|
824
|
+
else
|
825
|
+
conditions << constraint
|
826
|
+
end
|
819
827
|
end
|
820
828
|
@features.each do |feature|
|
821
|
-
|
829
|
+
if feature.kind_of?(Feature)
|
830
|
+
conditions << feature.as_declaration
|
831
|
+
else
|
832
|
+
conditions << feature
|
833
|
+
end
|
822
834
|
end
|
823
835
|
conditions
|
824
836
|
end
|
@@ -32,8 +32,8 @@ module Pione
|
|
32
32
|
# - Change the place name
|
33
33
|
def self.rewrite(net, subjects, env)
|
34
34
|
transition_from, transition_to, place = subjects
|
35
|
-
name_from =
|
36
|
-
name_to =
|
35
|
+
name_from = LabelExtractor.extract_rule_expr(transition_from.name)
|
36
|
+
name_to = LabelExtractor.extract_rule_expr(transition_to.name)
|
37
37
|
|
38
38
|
place.name = "<%s>" % (TICKET_NAME % [name_from, name_to])
|
39
39
|
end
|
data/lib/pione/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pione
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.0
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keita Yamaguchi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|
@@ -512,7 +512,7 @@ files:
|
|
512
512
|
- example/DeferredChoice/pione-package.json
|
513
513
|
- example/DeferredChoiceWithPage/DeferredChoiceWithPage.action.md
|
514
514
|
- example/DeferredChoiceWithPage/DeferredChoiceWithPage.pione
|
515
|
-
- example/DeferredChoiceWithPage/
|
515
|
+
- example/DeferredChoiceWithPage/DeferredChoiceWithPage.pnml
|
516
516
|
- example/DeferredChoiceWithPage/Package.pione
|
517
517
|
- example/DeferredChoiceWithPage/etc/index.html
|
518
518
|
- example/DeferredChoiceWithPage/pione-package.json
|
@@ -524,6 +524,7 @@ files:
|
|
524
524
|
- example/Fib/Fib.action.md
|
525
525
|
- example/Fib/Fib.pione
|
526
526
|
- example/Fib/Fib.pnml
|
527
|
+
- example/Fib/FibN.pione
|
527
528
|
- example/Fib/FibN.pnml
|
528
529
|
- example/Fib/Package.pione
|
529
530
|
- example/HelloWorld/HelloWorld.action.md
|
@@ -770,11 +771,13 @@ files:
|
|
770
771
|
- example/SerialProcessing/pione-package.json
|
771
772
|
- example/SerialProcessing/scenario/Scenario.pione
|
772
773
|
- example/SerialProcessing/scenario/pione-scenario.json
|
774
|
+
- example/SieveOfEratosthenes/CreateUndeterminedNumbers.pione
|
773
775
|
- example/SieveOfEratosthenes/CreateUndeterminedNumbers.pnml
|
774
776
|
- example/SieveOfEratosthenes/Package.pione
|
775
777
|
- example/SieveOfEratosthenes/Sieve.pnml
|
776
778
|
- example/SieveOfEratosthenes/SieveOfEratosthenes.pione
|
777
779
|
- example/SieveOfEratosthenes/SieveOfEratosthenes.pnml
|
780
|
+
- example/SingleParticlesWithRef/Create3dinfo.pione
|
778
781
|
- example/SingleParticlesWithRef/Create3dinfo.pnml
|
779
782
|
- example/SingleParticlesWithRef/Package.pione
|
780
783
|
- example/SingleParticlesWithRef/SingleParticlesWithRef.action.md
|
@@ -856,9 +859,10 @@ files:
|
|
856
859
|
- example/SingleParticlesWithRef/data/all.ref2d
|
857
860
|
- example/SingleParticlesWithRef/data/all.ref3d
|
858
861
|
- example/SingleParticlesWithRef/misc/Makefile
|
859
|
-
- example/SingleParticlesWithRef/misc/SingleParticlesWithRef.Display2.pione
|
862
|
+
- example/SingleParticlesWithRef/misc/SingleParticlesWithRef.Display2.pione.bak
|
860
863
|
- example/SingleParticlesWithRef/misc/SingleParticlesWithRef.Makefile
|
861
|
-
- example/SingleParticlesWithRef/misc/SingleParticlesWithRefFull.pione
|
864
|
+
- example/SingleParticlesWithRef/misc/SingleParticlesWithRefFull.pione.bak
|
865
|
+
- example/SingleParticlesWithRef/pione-package.json
|
862
866
|
- example/Sum/CalcEachLine.pione
|
863
867
|
- example/Sum/CalcEachLine.pnml
|
864
868
|
- example/Sum/Package.pione
|
@@ -901,6 +905,7 @@ files:
|
|
901
905
|
- example/WorkflowPatterns/07_StructuredSynchronizingMerge/Package.pione
|
902
906
|
- example/WorkflowPatterns/07_StructuredSynchronizingMerge/StructuredSynchronizingMerge.pione
|
903
907
|
- example/WorkflowPatterns/07_StructuredSynchronizingMerge/StructuredSynchronizingMerge.pnml
|
908
|
+
- example/WorkflowPatterns/07_StructuredSynchronizingMerge/pione-package.json
|
904
909
|
- example/WorkflowPatterns/08_MultiMerge/MultiMerge.pione
|
905
910
|
- example/WorkflowPatterns/08_MultiMerge/MultiMerge.pnml
|
906
911
|
- example/WorkflowPatterns/08_MultiMerge/Package.pione
|
@@ -934,14 +939,18 @@ files:
|
|
934
939
|
- example/WorkflowPatterns/38_GeneralSynchronizingMerge/GeneralSynchronizingMerge.pione
|
935
940
|
- example/WorkflowPatterns/38_GeneralSynchronizingMerge/GeneralSynchronizingMerge.pnml
|
936
941
|
- example/WorkflowPatterns/38_GeneralSynchronizingMerge/Package.pione
|
942
|
+
- example/WorkflowPatterns/41_ThreadMerge/A.pione
|
937
943
|
- example/WorkflowPatterns/41_ThreadMerge/A.pnml
|
944
|
+
- example/WorkflowPatterns/41_ThreadMerge/A1.pione
|
938
945
|
- example/WorkflowPatterns/41_ThreadMerge/A1.pnml
|
939
946
|
- example/WorkflowPatterns/41_ThreadMerge/Package.pione
|
940
947
|
- example/WorkflowPatterns/41_ThreadMerge/ThreadMerge.pione
|
941
948
|
- example/WorkflowPatterns/41_ThreadMerge/ThreadMerge.pnml
|
949
|
+
- example/WorkflowPatterns/41_ThreadMerge/pione-package.json
|
942
950
|
- example/WorkflowPatterns/42_ThreadSplit/Package.pione
|
943
951
|
- example/WorkflowPatterns/42_ThreadSplit/ThreadSplit.pione
|
944
952
|
- example/WorkflowPatterns/42_ThreadSplit/ThreadSplit.pnml
|
953
|
+
- example/WorkflowPatterns/42_ThreadSplit/pione-package.json
|
945
954
|
- lib/pione.rb
|
946
955
|
- lib/pione/agent.rb
|
947
956
|
- lib/pione/agent/agent-exception.rb
|
@@ -1602,9 +1611,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1602
1611
|
version: 1.9.3
|
1603
1612
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1604
1613
|
requirements:
|
1605
|
-
- - ! '
|
1614
|
+
- - ! '>='
|
1606
1615
|
- !ruby/object:Gem::Version
|
1607
|
-
version:
|
1616
|
+
version: '0'
|
1608
1617
|
requirements: []
|
1609
1618
|
rubyforge_project:
|
1610
1619
|
rubygems_version: 2.4.5
|