rachinations 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +6 -0
  4. data/.travis.yml +8 -0
  5. data/.yardopts +1 -0
  6. data/Gemfile +19 -0
  7. data/Gemfile.lock +93 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +18 -0
  10. data/Rakefile +16 -0
  11. data/lib/rachinations.rb +49 -0
  12. data/lib/rachinations/domain/diagrams/diagram.rb +167 -0
  13. data/lib/rachinations/domain/diagrams/non_deterministic_diagram.rb +16 -0
  14. data/lib/rachinations/domain/diagrams/verbose_diagram.rb +9 -0
  15. data/lib/rachinations/domain/edge_collection.rb +12 -0
  16. data/lib/rachinations/domain/edges/edge.rb +159 -0
  17. data/lib/rachinations/domain/edges/random_edge.rb +4 -0
  18. data/lib/rachinations/domain/exceptions/bad_options.rb +3 -0
  19. data/lib/rachinations/domain/exceptions/no_elements_found.rb +2 -0
  20. data/lib/rachinations/domain/exceptions/no_elements_matching_condition_error.rb +2 -0
  21. data/lib/rachinations/domain/exceptions/no_elements_of_given_type.rb +3 -0
  22. data/lib/rachinations/domain/exceptions/unsupported_type_error.rb +2 -0
  23. data/lib/rachinations/domain/modules/common/hash_init.rb +88 -0
  24. data/lib/rachinations/domain/modules/common/invariant.rb +17 -0
  25. data/lib/rachinations/domain/modules/diagrams/verbose.rb +30 -0
  26. data/lib/rachinations/domain/node_collection.rb +30 -0
  27. data/lib/rachinations/domain/nodes/converter.rb +276 -0
  28. data/lib/rachinations/domain/nodes/gate.rb +6 -0
  29. data/lib/rachinations/domain/nodes/node.rb +166 -0
  30. data/lib/rachinations/domain/nodes/pool.rb +267 -0
  31. data/lib/rachinations/domain/nodes/resourceful_node.rb +96 -0
  32. data/lib/rachinations/domain/nodes/resourceless_node.rb +11 -0
  33. data/lib/rachinations/domain/nodes/sink.rb +17 -0
  34. data/lib/rachinations/domain/nodes/source.rb +161 -0
  35. data/lib/rachinations/domain/nodes/trader.rb +6 -0
  36. data/lib/rachinations/domain/resource_bag.rb +131 -0
  37. data/lib/rachinations/domain/resources/token.rb +51 -0
  38. data/lib/rachinations/domain/strategies/strategy.rb +5 -0
  39. data/lib/rachinations/domain/strategies/valid_types.rb +69 -0
  40. data/lib/rachinations/dsl/dsl.rb +63 -0
  41. data/lib/rachinations/extras/fifo.rb +27 -0
  42. data/lib/rachinations/version.rb +3 -0
  43. data/machinations_diagrams/apenas_bonito.xml +22 -0
  44. data/machinations_diagrams/behavior_converter.xml +53 -0
  45. data/machinations_diagrams/behavior_converter_fim.xml +10 -0
  46. data/machinations_diagrams/canon/README.md +8 -0
  47. data/machinations_diagrams/canon/converters_differences.xml +27 -0
  48. data/machinations_diagrams/canon/converters_differences2.xml +34 -0
  49. data/machinations_diagrams/canon/converters_similarities.xml +63 -0
  50. data/machinations_diagrams/canon/converters_similarities2.xml +21 -0
  51. data/machinations_diagrams/canon/nodes_and_edges_differences.xml +15 -0
  52. data/machinations_diagrams/canon/nodes_and_edges_similarities.xml +20 -0
  53. data/machinations_diagrams/deterministic_example.xml +46 -0
  54. data/machinations_diagrams/economies_of_scale.xml +32 -0
  55. data/machinations_diagrams/feature_ou_bug.xml +5 -0
  56. data/machinations_diagrams/loop_in_trigger.xml +21 -0
  57. data/machinations_diagrams/naficadevendo.xml +12 -0
  58. data/machinations_diagrams/noreporting_equivalent.xml +22 -0
  59. data/machinations_diagrams/pull_all_example.xml +7 -0
  60. data/machinations_diagrams/sketch_of_memory.xml +41 -0
  61. data/machinations_diagrams/software_engineering_process 2.xml +130 -0
  62. data/machinations_diagrams/software_engineering_process v3.xml +168 -0
  63. data/machinations_diagrams/software_engineering_process v4.xml +192 -0
  64. data/machinations_diagrams/software_engineering_process.xml +65 -0
  65. data/machinations_diagrams/software_engineering_process_with_rework_after_test.xml +195 -0
  66. data/machinations_diagrams/startup_marketing.xml +35 -0
  67. data/machinations_diagrams/triggers_allow_multiple_stages_at_same_round.xml +19 -0
  68. data/machinations_diagrams/um_de_cada_vez_vs_todos_de_uma_vez.xml +20 -0
  69. data/rachinations.gemspec +35 -0
  70. data/testing/features/step_definitions/step_definitions.rb +11 -0
  71. data/testing/simulations/modelo1.rb +20 -0
  72. data/testing/simulations/modelo2.rb +49 -0
  73. data/testing/simulations/noreporting.rb +51 -0
  74. data/testing/simulations/sequencial.rb +19 -0
  75. data/testing/simulations/sobonito.rb +28 -0
  76. data/testing/simulations/sobonitowhile.rb +28 -0
  77. data/testing/simulations/whatIwish1.rb +20 -0
  78. data/testing/spec/canon/converter_spec.rb +33 -0
  79. data/testing/spec/canon/pool_spec.rb +68 -0
  80. data/testing/spec/conditions_spec.rb +10 -0
  81. data/testing/spec/converter_spec.rb +223 -0
  82. data/testing/spec/diagram_spec.rb +671 -0
  83. data/testing/spec/edge_spec.rb +256 -0
  84. data/testing/spec/hash_init_spec.rb +59 -0
  85. data/testing/spec/node_spec.rb +31 -0
  86. data/testing/spec/non_deterministic_diagram_spec.rb +112 -0
  87. data/testing/spec/pool_spec.rb +233 -0
  88. data/testing/spec/source_spec.rb +132 -0
  89. data/testing/spec/spec_helper.rb +34 -0
  90. data/testing/spec/xexeo_spec.rb +193 -0
  91. metadata +283 -0
@@ -0,0 +1,63 @@
1
+ require_relative '../domain/diagrams/diagram'
2
+ require_relative '../domain/diagrams/verbose_diagram'
3
+ require_relative '../domain/diagrams/non_deterministic_diagram'
4
+ require_relative '../domain/modules/diagrams/verbose'
5
+
6
+ module DSL
7
+
8
+ class ::Diagram
9
+
10
+ # convenience method
11
+ def node(name,klass,hsh={})
12
+
13
+ hsh[:name] = name
14
+
15
+ add_node! klass, hsh
16
+ end
17
+
18
+ # convenience method
19
+ def edge(name,klass,from,to,hsh={})
20
+
21
+ hsh[:name] = name
22
+ hsh[:from] = from
23
+ hsh[:to] = to
24
+
25
+ add_edge! klass,hsh
26
+ end
27
+
28
+ end
29
+
30
+
31
+ def diagram(name,verbose=:silent,&blk)
32
+
33
+ if verbose === :verbose
34
+ dia= VerboseDiagram.new name
35
+ else
36
+ dia = Diagram.new name
37
+ end
38
+
39
+ dia.instance_eval &blk
40
+
41
+ dia
42
+
43
+ end
44
+
45
+ def non_deterministic_diagram(name,verbose=:silent,&blk)
46
+
47
+ dia=NonDeterministicDiagram.new name
48
+ if verbose === :verbose
49
+ dia.extend(Verbose)
50
+ end
51
+
52
+ dia.instance_eval &blk
53
+
54
+ dia
55
+
56
+ end
57
+
58
+ #add these methods to existing class Diagram here
59
+ #because it doesn't need to know about it
60
+
61
+
62
+
63
+ end
@@ -0,0 +1,27 @@
1
+ require 'forwardable'
2
+
3
+ class Fifo
4
+ extend Forwardable
5
+
6
+ def_delegators :@store, :length
7
+
8
+ def initialize
9
+ @store = Array.new
10
+ end
11
+
12
+ # Puts an object into the queue
13
+ #
14
+ # @param [Object] obj
15
+ # @return [Fifo] The queue itself.
16
+ def put!(obj)
17
+ @store.push(obj)
18
+ self
19
+ end
20
+
21
+ # Takes the least recently added element.
22
+ #
23
+ # @return [Object] whatever was stored in this queue.
24
+ def take!
25
+ @store.shift
26
+ end
27
+ end
@@ -0,0 +1,3 @@
1
+ module Rachinations
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,22 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="instantaneous" speed="100" actions="1" dice="D6" skill="" strategy="" multiplayer="" width="600" height="560" numberOfRuns="100" visibleRuns="25" colorCoding="0">
2
+ <connection type="Resource Connection" start="11" end="9" label="" position="0.5" color="Black" thickness="2"/>
3
+ <connection type="Resource Connection" start="9" end="4" label="" position="0.5" color="Black" thickness="2"/>
4
+ <connection type="Resource Connection" start="4" end="5" label="" position="0.5" color="Black" thickness="2"/>
5
+ <connection type="Resource Connection" start="5" end="11" label="" position="0.5" color="Black" thickness="2"/>
6
+ <node symbol="Pool" x="319" y="121" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
7
+ <node symbol="Pool" x="320" y="240" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
8
+ <connection type="Resource Connection" start="11" end="5" label="" position="0.5" color="Black" thickness="2">
9
+ <point x="260" y="319"/>
10
+ </connection>
11
+ <connection type="Resource Connection" start="5" end="4" label="" position="0.5" color="Black" thickness="2">
12
+ <point x="398" y="181"/>
13
+ </connection>
14
+ <connection type="Resource Connection" start="4" end="9" label="" position="0.5" color="Black" thickness="2">
15
+ <point x="263" y="44"/>
16
+ </connection>
17
+ <node symbol="Pool" x="200" y="120" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
18
+ <connection type="Resource Connection" start="9" end="11" label="" position="0.5" color="Black" thickness="2">
19
+ <point x="121" y="180"/>
20
+ </connection>
21
+ <node symbol="Pool" x="200" y="239" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="8" capacity="-1"/>
22
+ </graph>
@@ -0,0 +1,53 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="fixed speed" speed="100" actions="1" dice="D6" skill="" strategy="" multiplayer="" width="600" height="700" numberOfRuns="100" visibleRuns="25" colorCoding="1">
2
+ <connection type="Resource Connection" start="4" end="26" label="" position="0.5" color="Black" thickness="2"/>
3
+ <connection type="Resource Connection" start="26" end="14" label="" position="0.5" color="Black" thickness="2"/>
4
+ <connection type="Resource Connection" start="26" end="5" label="" position="0.5" color="Red" thickness="2"/>
5
+ <connection type="Resource Connection" start="26" end="25" label="" position="0.5" color="Blue" thickness="2"/>
6
+ <node symbol="Source" x="50" y="395" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
7
+ <node symbol="Pool" x="228" y="457" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
8
+ <connection type="Resource Connection" start="11" end="15" label="" position="0.5" color="Black" thickness="2"/>
9
+ <connection type="Resource Connection" start="10" end="9" label="" position="0.5" color="Black" thickness="2"/>
10
+ <connection type="Resource Connection" start="9" end="18" label="" position="0.5" color="Black" thickness="2"/>
11
+ <node symbol="Converter" x="139" y="117" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
12
+ <node symbol="Pool" x="50" y="115" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
13
+ <node symbol="Source" x="47" y="48" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
14
+ <connection type="Resource Connection" start="28" end="19" label="" position="0.5" color="Black" thickness="2"/>
15
+ <connection type="Resource Connection" start="19" end="27" label="" position="0.5" color="Black" thickness="2"/>
16
+ <node symbol="Pool" x="229" y="332" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
17
+ <node symbol="Converter" x="139" y="47" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
18
+ <node symbol="Pool" x="230" y="46" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
19
+ <connection type="Resource Connection" start="15" end="16" label="2" position="0.5" color="Black" thickness="2"/>
20
+ <node symbol="Drain" x="217" y="115" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1"/>
21
+ <node symbol="Converter" x="138" y="186" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
22
+ <connection type="Resource Connection" start="23" end="22" label="" position="0.5" color="Black" thickness="2"/>
23
+ <connection type="Resource Connection" start="22" end="24" label="" position="0.5" color="Black" thickness="2"/>
24
+ <node symbol="Converter" x="137" y="257" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
25
+ <node symbol="Pool" x="52" y="257" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="100" capacity="-1"/>
26
+ <node symbol="Pool" x="214" y="257" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
27
+ <node symbol="Pool" x="226" y="394" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
28
+ <node symbol="Converter" x="130" y="395" color="Green" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Red"/>
29
+ <node symbol="Pool" x="215" y="186" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
30
+ <node symbol="Pool" x="53" y="186" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="100" capacity="-1"/>
31
+ <node symbol="TextLabel" x="351" y="189" color="Black" caption="Pode ser puxado"/>
32
+ <node symbol="TextLabel" x="400" y="120" color="Black" caption="Nao entendo esse comportamento"/>
33
+ <node symbol="TextLabel" x="328" y="49" color="Black" caption="Padrao"/>
34
+ <node symbol="TextLabel" x="363" y="259" color="Black" caption="Pode ser empurrado"/>
35
+ <node symbol="TextLabel" x="260" y="300" color="Black" caption="Prioridada na emissao de cores, veja os atributos do conversor"/>
36
+ <connection type="Resource Connection" start="40" end="36" label="" position="0.5" color="Red" thickness="2"/>
37
+ <connection type="Resource Connection" start="36" end="37" label="" position="0.5" color="Red" thickness="2"/>
38
+ <node symbol="Converter" x="468" y="389" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Red"/>
39
+ <node symbol="Pool" x="547" y="390" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
40
+ <node symbol="Source" x="304" y="360" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="onstart" pullMode="pull any" actions="1" resourceColor="Red"/>
41
+ <node symbol="Source" x="310" y="438" color="Blue" caption="" thickness="2" captionPos="0.25" activationMode="onstart" pullMode="pull any" actions="1" resourceColor="Blue"/>
42
+ <node symbol="Pool" x="385" y="388" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
43
+ <connection type="Resource Connection" start="38" end="40" label="10" position="0.5" color="Red" thickness="2"/>
44
+ <connection type="Resource Connection" start="39" end="40" label="10" position="0.5" color="Blue" thickness="2"/>
45
+ <node symbol="Pool" x="306" y="600" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
46
+ <connection type="Resource Connection" start="50" end="49" label="" position="0.5" color="Black" thickness="2"/>
47
+ <connection type="Resource Connection" start="48" end="43" label="" position="0.5" color="Black" thickness="2"/>
48
+ <connection type="State Connection" start="49" end="48" label="*" position="0.5" color="Black" thickness="2"/>
49
+ <node symbol="TextLabel" x="146" y="536" color="Black" caption="Equivalente do Conversor"/>
50
+ <node symbol="Source" x="216" y="600" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
51
+ <node symbol="Drain" x="128" y="600" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1"/>
52
+ <node symbol="Pool" x="51" y="600" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="100" capacity="-1"/>
53
+ </graph>
@@ -0,0 +1,10 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="fixed speed" speed="100"
2
+ actions="1" dice="D6" skill="" strategy="" multiplayer="" width="600" height="700" numberOfRuns="100"
3
+ visibleRuns="25" colorCoding="1">
4
+ <node symbol="Source" x="216" y="100" color="Black" caption="" thickness="2" captionPos="0.25"
5
+ activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
6
+ <node symbol="Drain" x="128" y="100" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive"
7
+ pullMode="pull any" actions="1"/>
8
+ <node symbol="Pool" x="51" y="100" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic"
9
+ pullMode="push any" actions="1" resourceColor="Black" startingResources="100" capacity="-1"/>
10
+ </graph>
@@ -0,0 +1,8 @@
1
+ Cannonical diagrams
2
+ ===================
3
+
4
+ These are Machinations diagrams (saved in XML format using Mr. Dormans' Web Tool) whose objetive is to show what behaviour you can expect from Rachinations.
5
+
6
+ There are two types of file: those ending in 'similarities.xml' show behaviour that is identical in Machinations and Rachinations. Those ending in 'differences.xml' show examples of cases where Machinations and Rachinations behave in slightly different ways.
7
+
8
+ For best results, import these into Mr. Dormans' Machinations Web Tool and run them using Asynchronous time mode and Instantaneous distribution.
@@ -0,0 +1,27 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="fixed speed" speed="100" actions="1" dice="D6" skill="" strategy="" multiplayer="" width="600" height="560" numberOfRuns="100" visibleRuns="25" colorCoding="0">
2
+ <connection type="Resource Connection" start="3" end="14" label="" position="0.5" color="Black" thickness="2"/>
3
+ <connection type="Resource Connection" start="14" end="11" label="" position="0.5" color="Red" thickness="2"/>
4
+ <connection type="Resource Connection" start="14" end="16" label="" position="0.5" color="Blue" thickness="2"/>
5
+ <node symbol="Source" x="35" y="91" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
6
+ <connection type="Resource Connection" start="18" end="12" label="" position="0.5" color="Red" thickness="2"/>
7
+ <connection type="Resource Connection" start="12" end="6" label="" position="0.5" color="Red" thickness="2"/>
8
+ <node symbol="Pool" x="268" y="344" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
9
+ <node symbol="Source" x="25" y="314" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="onstart" pullMode="pull any" actions="1" resourceColor="Red"/>
10
+ <connection type="Resource Connection" start="7" end="18" label="10" position="0.5" color="Red" thickness="2"/>
11
+ <connection type="Resource Connection" start="19" end="18" label="10" position="0.5" color="Blue" thickness="2"/>
12
+ <node symbol="Pool" x="214" y="28" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
13
+ <node symbol="Pool" x="213" y="153" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
14
+ <node symbol="Converter" x="189" y="343" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Red"/>
15
+ <connection type="Resource Connection" start="14" end="10" label="" position="0.5" color="Green" thickness="2"/>
16
+ <node symbol="Converter" x="115" y="91" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Green"/>
17
+ <node symbol="TextLabel" x="119" y="186" color="Black" caption="Untyped Converter, typed edges: "/>
18
+ <node symbol="Pool" x="211" y="90" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Red" startingResources="0" capacity="-1"/>
19
+ <node symbol="TextLabel" x="382" y="103" color="Black" caption="would NOT work because target Pool is Red"/>
20
+ <node symbol="Pool" x="106" y="342" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
21
+ <node symbol="Source" x="22" y="384" color="Blue" caption="" thickness="2" captionPos="0.25" activationMode="onstart" pullMode="pull any" actions="1" resourceColor="Blue"/>
22
+ <node symbol="TextLabel" x="146" y="418" color="Black" caption="In Rachinations, only Red resources would "/>
23
+ <node symbol="TextLabel" x="360" y="80" color="Black" caption="In Rachinations, the blue Edge"/>
24
+ <node symbol="TextLabel" x="89" y="458" color="Black" caption="would remain in the Pool."/>
25
+ <node symbol="TextLabel" x="132" y="437" color="Black" caption="be sent through, while Blue resources"/>
26
+ <node symbol="TextLabel" x="131" y="209" color="Black" caption="Converter gives you whatever you ask"/>
27
+ </graph>
@@ -0,0 +1,34 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="fixed speed" speed="100" actions="1" dice="D6" skill="" strategy="" multiplayer="" width="600" height="560" numberOfRuns="100" visibleRuns="25" colorCoding="0">
2
+ <connection type="Resource Connection" start="7" end="2" label="" position="0.5" color="Black" thickness="2"/>
3
+ <node symbol="Pool" x="40" y="61" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="5" capacity="-1"/>
4
+ <node symbol="Pool" x="181" y="63" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
5
+ <node symbol="TextLabel" x="133" y="104" color="Black" caption="in Rachinations, a pull from a Converter"/>
6
+ <node symbol="TextLabel" x="128" y="120" color="Black" caption="causes resources in the other (left)"/>
7
+ <node symbol="TextLabel" x="120" y="140" color="Black" caption="Pool to be depleted."/>
8
+ <connection type="Resource Connection" start="1" end="7" label="" position="0.5" color="Black" thickness="2"/>
9
+ <node symbol="Converter" x="109" y="62" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
10
+ <node symbol="Pool" x="31" y="280" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
11
+ <connection type="Resource Connection" start="12" end="24" label="" position="0.5" color="Black" thickness="2"/>
12
+ <connection type="Resource Connection" start="8" end="24" label="" position="0.5" color="Black" thickness="2"/>
13
+ <connection type="Resource Connection" start="24" end="13" label="" position="0.5" color="Black" thickness="2"/>
14
+ <node symbol="Pool" x="30" y="213" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="3" capacity="-1"/>
15
+ <node symbol="Pool" x="175" y="231" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
16
+ <node symbol="TextLabel" x="120" y="320" color="Black" caption="in Rachinations, this would not work"/>
17
+ <node symbol="TextLabel" x="110" y="360" color="Black" caption="are satisfied."/>
18
+ <connection type="Resource Connection" start="21" end="26" label="" position="0.5" color="Black" thickness="2"/>
19
+ <connection type="Resource Connection" start="22" end="26" label="" position="0.5" color="Black" thickness="2"/>
20
+ <connection type="Resource Connection" start="26" end="25" label="" position="0.5" color="Black" thickness="2"/>
21
+ <connection type="Resource Connection" start="26" end="20" label="" position="0.5" color="Black" thickness="2"/>
22
+ <node symbol="Pool" x="432" y="106" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
23
+ <node symbol="Pool" x="298" y="55" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="1" capacity="-1"/>
24
+ <node symbol="Pool" x="299" y="108" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="1" capacity="-1"/>
25
+ <node symbol="TextLabel" x="120" y="338" color="Black" caption="because not all incoming edges"/>
26
+ <node symbol="Converter" x="99" y="231" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull all" actions="1" resourceColor="Black"/>
27
+ <node symbol="Pool" x="432" y="51" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
28
+ <node symbol="Converter" x="364" y="69" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
29
+ <node symbol="TextLabel" x="360" y="160" color="Black" caption="In Rachinations, this would cause both"/>
30
+ <node symbol="TextLabel" x="360" y="184" color="Black" caption="receiving nodes to receive one resource"/>
31
+ <node symbol="TextLabel" x="360" y="248" color="Black" caption="get depleted accordingly."/>
32
+ <node symbol="TextLabel" x="360" y="200" color="Black" caption="each (Converter is always push_all)"/>
33
+ <node symbol="TextLabel" x="360" y="223" color="Black" caption="and resources in sending nodes would"/>
34
+ </graph>
@@ -0,0 +1,63 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="fixed speed" speed="100" actions="1" dice="D6" skill="" strategy="" multiplayer="" width="600" height="560" numberOfRuns="100" visibleRuns="25" colorCoding="0">
2
+ <connection type="Resource Connection" start="5" end="6" label="" position="0.5" color="Black" thickness="2"/>
3
+ <connection type="Resource Connection" start="7" end="8" label="" position="0.5" color="Black" thickness="2"/>
4
+ <connection type="Resource Connection" start="8" end="9" label="" position="0.5" color="Black" thickness="2"/>
5
+ <node symbol="Pool" x="39" y="81" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="9" capacity="-1"/>
6
+ <connection type="Resource Connection" start="3" end="5" label="" position="0.5" color="Black" thickness="2"/>
7
+ <node symbol="Converter" x="112" y="82" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
8
+ <node symbol="Pool" x="182" y="80" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
9
+ <node symbol="Pool" x="40" y="200" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="5" capacity="-1"/>
10
+ <node symbol="Converter" x="110" y="198" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
11
+ <node symbol="Pool" x="183" y="198" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
12
+ <node symbol="Pool" x="181" y="304" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
13
+ <connection type="Resource Connection" start="44" end="13" label="" position="0.5" color="Black" thickness="2"/>
14
+ <connection type="Resource Connection" start="13" end="10" label="" position="0.5" color="Black" thickness="2"/>
15
+ <node symbol="Converter" x="107" y="304" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
16
+ <node symbol="Pool" x="40" y="413" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="5" capacity="-1"/>
17
+ <connection type="Resource Connection" start="14" end="17" label="" position="0.5" color="Black" thickness="2"/>
18
+ <connection type="Resource Connection" start="17" end="49" label="" position="0.5" color="Black" thickness="2"/>
19
+ <node symbol="Converter" x="107" y="413" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
20
+ <connection type="State Connection" start="19" end="17" label="*" position="0.5" color="Black" thickness="2"/>
21
+ <node symbol="Pool" x="108" y="503" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="push any" actions="1" resourceColor="Black" startingResources="9" capacity="-1"/>
22
+ <node symbol="Pool" x="489" y="38" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
23
+ <connection type="Resource Connection" start="25" end="26" label="" position="0.5" color="Black" thickness="2"/>
24
+ <connection type="Resource Connection" start="26" end="20" label="" position="0.5" color="Black" thickness="2"/>
25
+ <connection type="State Connection" start="46" end="26" label=">3" position="0.5" color="Black" thickness="2"/>
26
+ <connection type="Resource Connection" start="31" end="46" label="" position="0.5" color="Black" thickness="2"/>
27
+ <node symbol="Pool" x="324" y="39" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="5" capacity="-1"/>
28
+ <node symbol="Converter" x="411" y="38" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
29
+ <connection type="Resource Connection" start="29" end="30" label="2" position="0.5" color="Black" thickness="2"/>
30
+ <connection type="Resource Connection" start="30" end="32" label="4" position="0.5" color="Black" thickness="2"/>
31
+ <node symbol="Pool" x="318" y="211" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="9" capacity="-1"/>
32
+ <node symbol="Converter" x="414" y="211" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
33
+ <node symbol="Source" x="325" y="137" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
34
+ <node symbol="Pool" x="502" y="211" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
35
+ <connection type="Resource Connection" start="42" end="50" label="2" position="0.5" color="Black" thickness="2"/>
36
+ <connection type="Resource Connection" start="41" end="42" label="" position="0.5" color="Black" thickness="2"/>
37
+ <node symbol="TextLabel" x="83" y="30" color="Black" caption="BUG: does not decrease"/>
38
+ <node symbol="TextLabel" x="99" y="117" color="Black" caption="activated by a pull"/>
39
+ <node symbol="TextLabel" x="102" y="234" color="Black" caption="activated by a push"/>
40
+ <node symbol="TextLabel" x="105" y="337" color="Black" caption="activated by itself"/>
41
+ <node symbol="TextLabel" x="201" y="491" color="Black" caption="activated by trigger"/>
42
+ <node symbol="TextLabel" x="498" y="113" color="Black" caption="activated by activator"/>
43
+ <node symbol="Source" x="320" y="380" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
44
+ <node symbol="Pool" x="319" y="300" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
45
+ <node symbol="TextLabel" x="429" y="357" color="Black" caption="memory across turns"/>
46
+ <node symbol="Pool" x="39" y="308" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="5" capacity="-1"/>
47
+ <node symbol="TextLabel" x="401" y="251" color="Black" caption="varying weights"/>
48
+ <node symbol="Pool" x="412" y="139" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
49
+ <connection type="Resource Connection" start="50" end="48" label="1" position="0.5" color="Black" thickness="2"/>
50
+ <node symbol="Pool" x="501" y="303" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
51
+ <node symbol="Pool" x="182" y="413" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
52
+ <node symbol="Converter" x="416" y="302" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
53
+ <node symbol="Converter" x="408" y="464" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
54
+ <connection type="Resource Connection" start="60" end="51" label="" position="0.5" color="Black" thickness="2"/>
55
+ <connection type="Resource Connection" start="51" end="55" label="" position="0.5" color="Black" thickness="2"/>
56
+ <connection type="Resource Connection" start="51" end="56" label="" position="0.5" color="Black" thickness="2"/>
57
+ <node symbol="Pool" x="507" y="407" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
58
+ <node symbol="Pool" x="509" y="460" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
59
+ <node symbol="TextLabel" x="375" y="507" color="Black" caption="multiple targets"/>
60
+ <connection type="Resource Connection" start="51" end="59" label="" position="0.5" color="Black" thickness="2"/>
61
+ <node symbol="Pool" x="507" y="517" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
62
+ <node symbol="Source" x="319" y="464" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
63
+ </graph>
@@ -0,0 +1,21 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="instantaneous" speed="100" actions="1" dice="D6" skill="" strategy="" multiplayer="" width="600" height="560" numberOfRuns="100" visibleRuns="25" colorCoding="0">
2
+ <connection type="Resource Connection" start="13" end="14" label="" position="0.5" color="Black" thickness="2"/>
3
+ <connection type="Resource Connection" start="13" end="15" label="" position="0.5" color="Black" thickness="2"/>
4
+ <connection type="Resource Connection" start="12" end="13" label="" position="0.5" color="Black" thickness="2"/>
5
+ <connection type="Resource Connection" start="13" end="18" label="3" position="0.5" color="Black" thickness="2"/>
6
+ <connection type="Resource Connection" start="11" end="13" label="" position="0.5" color="Black" thickness="2"/>
7
+ <connection type="Resource Connection" start="10" end="13" label="" position="0.5" color="Black" thickness="2"/>
8
+ <connection type="Resource Connection" start="8" end="11" label="" position="0.5" color="Black" thickness="2"/>
9
+ <connection type="Resource Connection" start="9" end="10" label="" position="0.5" color="Black" thickness="2"/>
10
+ <node symbol="Source" x="29" y="133" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
11
+ <node symbol="Source" x="29" y="202" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
12
+ <node symbol="Pool" x="111" y="202" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
13
+ <node symbol="Pool" x="112" y="135" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
14
+ <node symbol="Pool" x="110" y="56" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="1" capacity="-1"/>
15
+ <node symbol="Converter" x="190" y="126" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
16
+ <node symbol="Pool" x="280" y="121" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
17
+ <node symbol="Pool" x="280" y="200" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
18
+ <node symbol="TextLabel" x="179" y="254" color="Black" caption="converter in pull_any mode only pushes"/>
19
+ <node symbol="TextLabel" x="192" y="275" color="Black" caption="once all edges are satisfied, but it might be across turns"/>
20
+ <node symbol="Pool" x="280" y="40" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
21
+ </graph>
@@ -0,0 +1,15 @@
1
+ <graph version="v4.05" name="" author="" interval="0.9999999999999999" timeMode="asynchronous" distributionMode="instantaneous" speed="100" actions="4" dice="D6" skill="" strategy="" multiplayer="" width="600" height="560" numberOfRuns="100" visibleRuns="25" colorCoding="0">
2
+ <connection type="Resource Connection" start="6" end="3" label="" position="0.5" color="Black" thickness="2"/>
3
+ <connection type="Resource Connection" start="6" end="4" label="" position="0.5" color="Black" thickness="2"/>
4
+ <connection type="Resource Connection" start="6" end="5" label="" position="0.5" color="Black" thickness="2"/>
5
+ <node symbol="Pool" x="134" y="36" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
6
+ <node symbol="Pool" x="134" y="84" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
7
+ <node symbol="Pool" x="135" y="135" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
8
+ <node symbol="Pool" x="28" y="74" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="2" capacity="-1"/>
9
+ <node symbol="Source" x="29" y="200" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
10
+ <connection type="Resource Connection" start="7" end="6" label="2" position="0.5" color="Black" thickness="2"/>
11
+ <node symbol="TextLabel" x="151" y="187" color="Black" caption="are chosen at random when we "/>
12
+ <node symbol="TextLabel" x="159" y="217" color="Black" caption="only some Edges move resources."/>
13
+ <node symbol="TextLabel" x="156" y="200" color="Black" caption="have a push_any scenario where"/>
14
+ <node symbol="TextLabel" x="156" y="170" color="Black" caption="In Rachinations, outgoing edges"/>
15
+ </graph>
@@ -0,0 +1,20 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="instantaneous" speed="100" actions="1" dice="D6" skill="" strategy="" multiplayer="" width="600" height="560" numberOfRuns="100" visibleRuns="25" colorCoding="0">
2
+ <connection type="Resource Connection" start="2" end="1" label="" position="0.5" color="Black" thickness="2"/>
3
+ <node symbol="Pool" x="137" y="39" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
4
+ <node symbol="Pool" x="39" y="40" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="2" capacity="-1"/>
5
+ <connection type="Resource Connection" start="6" end="4" label="" position="0.5" color="Black" thickness="2"/>
6
+ <node symbol="Pool" x="36" y="132" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
7
+ <node symbol="Pool" x="140" y="132" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
8
+ <node symbol="Source" x="37" y="220" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
9
+ <node symbol="TextLabel" x="151" y="180" color="Black" caption="an edge's label means 'at most'"/>
10
+ <connection type="Resource Connection" start="15" end="12" label="" position="0.5" color="Black" thickness="2"/>
11
+ <connection type="Resource Connection" start="15" end="11" label="" position="0.5" color="Black" thickness="2"/>
12
+ <connection type="Resource Connection" start="15" end="13" label="" position="0.5" color="Black" thickness="2"/>
13
+ <node symbol="Pool" x="345" y="83" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
14
+ <node symbol="Pool" x="345" y="29" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
15
+ <node symbol="Pool" x="346" y="134" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
16
+ <connection type="Resource Connection" start="17" end="15" label="" position="0.5" color="Black" thickness="2"/>
17
+ <node symbol="Pool" x="262" y="74" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push all" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
18
+ <connection type="Resource Connection" start="4" end="5" label="3" position="0.5" color="Black" thickness="2"/>
19
+ <node symbol="Source" x="263" y="144" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
20
+ </graph>
@@ -0,0 +1,46 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="fixed speed" speed="100" actions="1" dice="D6" skill="" strategy="" multiplayer="" width="600" height="560" numberOfRuns="100" visibleRuns="25" colorCoding="0">
2
+ <node symbol="Pool" x="239" y="47" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
3
+ <node symbol="Converter" x="342" y="84" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull all" actions="1" resourceColor="Black"/>
4
+ <connection type="Resource Connection" start="11" end="0" label="" position="0.5" color="Black" thickness="2"/>
5
+ <connection type="Resource Connection" start="11" end="12" label="" position="0.5" color="Black" thickness="2"/>
6
+ <connection type="Resource Connection" start="11" end="13" label="" position="0.5" color="Black" thickness="2"/>
7
+ <connection type="Resource Connection" start="0" end="1" label="" position="0.5" color="Black" thickness="2"/>
8
+ <connection type="Resource Connection" start="12" end="1" label="" position="0.5" color="Black" thickness="2"/>
9
+ <connection type="Resource Connection" start="12" end="14" label="" position="0.5" color="Black" thickness="2"/>
10
+ <connection type="Resource Connection" start="13" end="14" label="" position="0.5" color="Black" thickness="2"/>
11
+ <connection type="Resource Connection" start="1" end="16" label="" position="0.5" color="Black" thickness="2"/>
12
+ <connection type="Resource Connection" start="14" end="15" label="" position="0.5" color="Black" thickness="2"/>
13
+ <node symbol="Source" x="121" y="89" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
14
+ <node symbol="Pool" x="235" y="103" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
15
+ <node symbol="Pool" x="240" y="160" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
16
+ <node symbol="Converter" x="343" y="139" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull all" actions="1" resourceColor="Black"/>
17
+ <node symbol="Pool" x="449" y="139" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
18
+ <node symbol="Pool" x="440" y="80" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
19
+ <node symbol="GroupBox" x="66" y="18" color="Black" caption="" width="467.5623962402344" height="170.56998138427736" captionPos="7"/>
20
+ <node symbol="TextLabel" x="360" y="200" color="Black" caption="Should be non deterministic, but it is not"/>
21
+ <node symbol="Pool" x="240" y="254" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
22
+ <node symbol="Converter" x="343" y="291" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull all" actions="1" resourceColor="Black"/>
23
+ <connection type="Resource Connection" start="41" end="19" label="" position="0.5" color="Black" thickness="2"/>
24
+ <connection type="Resource Connection" start="41" end="34" label="" position="0.5" color="Black" thickness="2"/>
25
+ <connection type="Resource Connection" start="41" end="32" label="" position="0.5" color="Black" thickness="2"/>
26
+ <connection type="Resource Connection" start="19" end="20" label="" position="0.5" color="Black" thickness="2"/>
27
+ <connection type="Resource Connection" start="34" end="20" label="" position="0.5" color="Black" thickness="2"/>
28
+ <connection type="Resource Connection" start="34" end="37" label="" position="0.5" color="Black" thickness="2"/>
29
+ <connection type="Resource Connection" start="32" end="37" label="" position="0.5" color="Black" thickness="2"/>
30
+ <connection type="Resource Connection" start="20" end="30" label="" position="0.5" color="Black" thickness="2"/>
31
+ <connection type="Resource Connection" start="37" end="33" label="" position="0.5" color="Black" thickness="2"/>
32
+ <node symbol="Pool" x="441" y="287" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
33
+ <node symbol="GroupBox" x="67" y="225" color="Black" caption="" width="468.12822265625005" height="274.647119140625" captionPos="7"/>
34
+ <node symbol="Pool" x="232" y="460" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
35
+ <node symbol="Pool" x="453" y="451" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
36
+ <node symbol="Pool" x="220" y="341" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
37
+ <node symbol="Pool" x="400" y="359" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
38
+ <connection type="Resource Connection" start="35" end="20" label="" position="0.5" color="Black" thickness="2"/>
39
+ <node symbol="Converter" x="345" y="451" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull all" actions="1" resourceColor="Black"/>
40
+ <connection type="Resource Connection" start="37" end="35" label="" position="0.5" color="Black" thickness="2"/>
41
+ <connection type="Resource Connection" start="20" end="42" label="" position="0.5" color="Black" thickness="2"/>
42
+ <connection type="Resource Connection" start="42" end="37" label="" position="0.5" color="Black" thickness="2"/>
43
+ <node symbol="Source" x="118" y="368" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
44
+ <node symbol="Pool" x="338" y="365" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="1" capacity="-1"/>
45
+ <node symbol="TextLabel" x="373" y="515" color="Black" caption="From non-deterministic to deterministic"/>
46
+ </graph>
@@ -0,0 +1,32 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="fixed speed" speed="100" actions="1" dice="D6" skill="" strategy="" multiplayer="" width="600" height="560" numberOfRuns="100" visibleRuns="25" colorCoding="0">
2
+ <connection type="State Connection" start="21" end="25" label="!" position="0.5" color="Black" thickness="2"/>
3
+ <connection type="Resource Connection" start="24" end="26" label="" position="0.5" color="Black" thickness="2"/>
4
+ <connection type="Resource Connection" start="18" end="21" label="0" position="0.5" color="Black" thickness="2"/>
5
+ <connection type="Resource Connection" start="22" end="18" label="0" position="0.5" color="Black" thickness="2"/>
6
+ <connection type="State Connection" start="27" end="28" label=">0" position="0.5" color="Black" thickness="2"/>
7
+ <connection type="State Connection" start="23" end="27" label="a" position="0.5" color="Black" thickness="2"/>
8
+ <connection type="State Connection" start="24" end="27" label="b" position="0.5" color="Black" thickness="2"/>
9
+ <connection type="Resource Connection" start="23" end="29" label="" position="0.5" color="Black" thickness="2"/>
10
+ <connection type="State Connection" start="24" end="2" label="+0.2" position="0.5" color="Black" thickness="2"/>
11
+ <connection type="State Connection" start="23" end="3" label="+0.2" position="0.5" color="Black" thickness="2"/>
12
+ <connection type="Resource Connection" start="23" end="28" label="1" position="0.5" color="Black" thickness="2"/>
13
+ <connection type="Resource Connection" start="24" end="25" label="1" position="0.5" color="Black" thickness="2"/>
14
+ <connection type="State Connection" start="23" end="10" label="+0.2" position="0.5" color="Black" thickness="2"/>
15
+ <connection type="Resource Connection" start="20" end="23" label="" position="0.5" color="Black" thickness="2"/>
16
+ <connection type="Resource Connection" start="18" end="20" label="10" position="0.5" color="Black" thickness="2"/>
17
+ <connection type="State Connection" start="24" end="11" label="+0.2" position="0.5" color="Black" thickness="2"/>
18
+ <connection type="Resource Connection" start="18" end="19" label="" position="0.5" color="Black" thickness="2"/>
19
+ <connection type="Resource Connection" start="19" end="24" label="" position="0.5" color="Black" thickness="2"/>
20
+ <node symbol="Pool" x="160" y="240" color="Black" caption="cash" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="400" capacity="-1"/>
21
+ <node symbol="Converter" x="240" y="200" color="Black" caption="build_wall" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
22
+ <node symbol="Converter" x="240" y="280" color="Black" caption="build field" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
23
+ <node symbol="Drain" x="160" y="160" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1"/>
24
+ <node symbol="Source" x="160" y="320" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
25
+ <node symbol="Pool" x="240" y="360" color="Black" caption="fields" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
26
+ <node symbol="Pool" x="240" y="120" color="Black" caption="walls" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
27
+ <node symbol="Drain" x="160" y="80" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1"/>
28
+ <node symbol="Drain" x="320" y="120" color="Black" caption="abandon_wall" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1"/>
29
+ <node symbol="Register" x="280" y="240" color="Black" caption="16*a-b*b" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
30
+ <node symbol="Drain" x="360" y="240" color="Black" caption="unprotected" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1"/>
31
+ <node symbol="Drain" x="320" y="360" color="Black" caption="abandon_field" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1"/>
32
+ </graph>