rachinations 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
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,65 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="fixed speed" speed="100" actions="1" dice="D6" skill="" strategy="" multiplayer="" width="800" height="1200" numberOfRuns="100" visibleRuns="25" colorCoding="0">
2
+ <node symbol="Converter" x="400" y="192" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
3
+ <connection type="Resource Connection" start="50" end="51" label="" position="0.5" color="Black" thickness="2"/>
4
+ <connection type="Resource Connection" start="49" end="0" label="" position="0.5" color="Black" thickness="2"/>
5
+ <node symbol="Gate" x="228" y="141" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="dice"/>
6
+ <connection type="Resource Connection" start="51" end="5" label="" position="0.5" color="Black" thickness="2"/>
7
+ <node symbol="Gate" x="550" y="190" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="skill"/>
8
+ <connection type="Resource Connection" start="5" end="52" label="50%" position="0.5" color="Black" thickness="2"/>
9
+ <connection type="State Connection" start="17" end="6" label="+1" position="0.5" color="Black" thickness="2"/>
10
+ <connection type="Resource Connection" start="0" end="51" label="1" position="0.5" color="Black" thickness="2"/>
11
+ <connection type="Resource Connection" start="43" end="51" label="0" position="0.5" color="Black" thickness="2"/>
12
+ <connection type="State Connection" start="18" end="8" label="+1" position="0.5" color="Black" thickness="2"/>
13
+ <connection type="State Connection" start="47" end="9" label="+1" position="0.5" color="Black" thickness="2"/>
14
+ <connection type="Resource Connection" start="3" end="49" label="50%" position="0.5" color="Black" thickness="2"/>
15
+ <connection type="State Connection" start="15" end="14" label="+1" position="0" color="Black" thickness="2"/>
16
+ <connection type="Resource Connection" start="3" end="50" label="50%" position="0.5" color="Black" thickness="2"/>
17
+ <node symbol="Register" x="335" y="159" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
18
+ <connection type="State Connection" start="15" end="12" label="-1" position="0.5" color="Black" thickness="2"/>
19
+ <node symbol="Register" x="550" y="123" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="5"/>
20
+ <node symbol="Register" x="406" y="254" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
21
+ <connection type="State Connection" start="21" end="20" label="+1" position="0.5" color="Black" thickness="2"/>
22
+ <connection type="Resource Connection" start="46" end="3" label="1" position="0.5" color="Black" thickness="2"/>
23
+ <node symbol="Register" x="151" y="219" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
24
+ <node symbol="Converter" x="426" y="519" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
25
+ <connection type="Resource Connection" start="55" end="56" label="" position="0.5" color="Black" thickness="2"/>
26
+ <connection type="Resource Connection" start="54" end="22" label="" position="0.5" color="Black" thickness="2"/>
27
+ <node symbol="Gate" x="254" y="468" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="dice"/>
28
+ <connection type="Resource Connection" start="56" end="27" label="" position="0.5" color="Black" thickness="2"/>
29
+ <node symbol="Gate" x="576" y="517" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="skill"/>
30
+ <connection type="Resource Connection" start="27" end="57" label="50%" position="0.5" color="Black" thickness="2"/>
31
+ <connection type="State Connection" start="40" end="28" label="+1" position="0.5" color="Black" thickness="2"/>
32
+ <node symbol="Register" x="570" y="579" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
33
+ <connection type="Resource Connection" start="22" end="56" label="1" position="0.5" color="Black" thickness="2"/>
34
+ <connection type="Resource Connection" start="42" end="56" label="0" position="0.5" color="Black" thickness="2"/>
35
+ <connection type="State Connection" start="41" end="31" label="+1" position="0.5" color="Black" thickness="2"/>
36
+ <connection type="State Connection" start="30" end="32" label="+1" position="0.5" color="Black" thickness="2"/>
37
+ <connection type="Resource Connection" start="25" end="54" label="50%" position="0.5" color="Black" thickness="2"/>
38
+ <connection type="State Connection" start="38" end="37" label="+1" position="0" color="Black" thickness="2"/>
39
+ <connection type="Resource Connection" start="25" end="55" label="50%" position="0.5" color="Black" thickness="2"/>
40
+ <node symbol="Register" x="361" y="486" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
41
+ <connection type="State Connection" start="38" end="35" label="-1" position="0.5" color="Black" thickness="2"/>
42
+ <node symbol="Register" x="576" y="450" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="5"/>
43
+ <node symbol="Register" x="432" y="581" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
44
+ <node symbol="Source" x="507" y="632" color="Black" caption="New Bugs" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
45
+ <node symbol="Source" x="479" y="290" color="Black" caption="New Bugs" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
46
+ <node symbol="GroupBox" x="30" y="40" color="Black" caption="" width="694.8601623535156" height="294.8659912109375" captionPos="7"/>
47
+ <node symbol="GroupBox" x="30" y="360" color="Black" caption="" width="689.1458557128907" height="341.72470703125" captionPos="7"/>
48
+ <node symbol="Source" x="70" y="142" color="Black" caption="Original Bugs" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
49
+ <node symbol="Register" x="544" y="252" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
50
+ <connection type="Resource Connection" start="52" end="53" label="" position="0.5" color="Black" thickness="2">
51
+ <point x="614" y="347"/>
52
+ <point x="98" y="347"/>
53
+ </connection>
54
+ <node symbol="Pool" x="320" y="249" color="Black" caption="Amplified" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
55
+ <node symbol="Pool" x="320" y="69" color="Black" caption="Passed Through" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
56
+ <node symbol="Pool" x="480" y="190" color="Black" caption="Total Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
57
+ <node symbol="Pool" x="611" y="189" color="Black" caption="Remaining Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
58
+ <node symbol="Pool" x="96" y="468" color="Black" caption="Previous Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
59
+ <node symbol="Pool" x="346" y="576" color="Black" caption="Amplified" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
60
+ <node symbol="Pool" x="346" y="396" color="Black" caption="Passed Through" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
61
+ <node symbol="Pool" x="506" y="517" color="Black" caption="Total Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
62
+ <node symbol="Pool" x="637" y="516" color="Black" caption="Remaining Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
63
+ <connection type="Resource Connection" start="53" end="25" label="1" position="0.5" color="Black" thickness="2"/>
64
+ <node symbol="Chart" x="163" y="778" color="Black" caption="" width="100" height="100" captionPos="5" scaleX="0" scaleY="0"/>
65
+ </graph>
@@ -0,0 +1,195 @@
1
+ <graph version="v4.05" name="" author="" interval="1" timeMode="asynchronous" distributionMode="fixed speed" speed="100" actions="1" dice="D6" skill="D100" strategy="D100" multiplayer="D100" width="1200" height="2000" numberOfRuns="100" visibleRuns="25" colorCoding="0">
2
+ <node symbol="Converter" x="400" y="192" color="Green" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
3
+ <connection type="Resource Connection" start="43" end="44" label="" position="0.5" color="Green" thickness="2"/>
4
+ <connection type="Resource Connection" start="44" end="3" label="" position="0.5" color="Green" thickness="2"/>
5
+ <node symbol="Gate" x="550" y="190" color="Green" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="skill"/>
6
+ <connection type="Resource Connection" start="3" end="139" label="50%" position="0.5" color="Green" thickness="2"/>
7
+ <connection type="State Connection" start="172" end="4" label="+1" position="0.5" color="Green" thickness="2"/>
8
+ <connection type="Resource Connection" start="0" end="44" label="1" position="0.5" color="Green" thickness="2"/>
9
+ <connection type="Resource Connection" start="38" end="44" label="0" position="0.5" color="Green" thickness="2"/>
10
+ <connection type="State Connection" start="15" end="6" label="+1" position="0.5" color="Green" thickness="2"/>
11
+ <connection type="State Connection" start="40" end="7" label="+1" position="0.5" color="Green" thickness="2"/>
12
+ <connection type="Resource Connection" start="158" end="42" label="50%" position="0.5" color="Green" thickness="2"/>
13
+ <connection type="State Connection" start="13" end="12" label="+1" position="0" color="Green" thickness="2"/>
14
+ <connection type="Resource Connection" start="158" end="43" label="50%" position="0.5" color="Green" thickness="2"/>
15
+ <node symbol="Register" x="335" y="159" color="Green" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
16
+ <connection type="State Connection" start="13" end="10" label="-1" position="0.5" color="Green" thickness="2"/>
17
+ <node symbol="Register" x="406" y="254" color="Green" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
18
+ <connection type="State Connection" start="173" end="17" label="+1" position="0.5" color="Green" thickness="2"/>
19
+ <connection type="Resource Connection" start="39" end="158" label="1" position="0.5" color="Green" thickness="2"/>
20
+ <node symbol="Converter" x="426" y="519" color="Blue" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
21
+ <connection type="Resource Connection" start="102" end="47" label="" position="0.5" color="Blue" thickness="2"/>
22
+ <connection type="Resource Connection" start="46" end="18" label="" position="0.5" color="Blue" thickness="2"/>
23
+ <node symbol="Gate" x="254" y="468" color="Blue" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="dice"/>
24
+ <connection type="Resource Connection" start="47" end="23" label="" position="0.5" color="Blue" thickness="2"/>
25
+ <node symbol="Gate" x="576" y="517" color="Blue" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="skill"/>
26
+ <connection type="Resource Connection" start="23" end="143" label="50%" position="0.5" color="Blue" thickness="2"/>
27
+ <connection type="State Connection" start="35" end="24" label="+1" position="0.5" color="Blue" thickness="2"/>
28
+ <node symbol="Register" x="570" y="579" color="Blue" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
29
+ <connection type="Resource Connection" start="18" end="47" label="1" position="0.5" color="Blue" thickness="2"/>
30
+ <connection type="Resource Connection" start="37" end="47" label="0" position="0.5" color="Blue" thickness="2"/>
31
+ <connection type="State Connection" start="36" end="27" label="+1" position="0.5" color="Blue" thickness="2"/>
32
+ <connection type="State Connection" start="26" end="28" label="+1" position="0.5" color="Blue" thickness="2"/>
33
+ <connection type="Resource Connection" start="21" end="46" label="50%" position="0.5" color="Blue" thickness="2"/>
34
+ <connection type="State Connection" start="33" end="100" label="+1" position="0" color="Blue" thickness="2"/>
35
+ <node symbol="Register" x="361" y="486" color="Blue" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
36
+ <connection type="State Connection" start="33" end="31" label="-1" position="0.5" color="Blue" thickness="2"/>
37
+ <node symbol="Register" x="576" y="450" color="Blue" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="5"/>
38
+ <node symbol="Register" x="432" y="581" color="Blue" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
39
+ <node symbol="Source" x="507" y="632" color="Blue" caption="New Bugs" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
40
+ <node symbol="Source" x="479" y="290" color="Green" caption="New Bugs" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
41
+ <node symbol="Source" x="70" y="142" color="Green" caption="Original Bugs" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
42
+ <node symbol="Register" x="544" y="252" color="Green" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
43
+ <connection type="Resource Connection" start="139" end="45" label="" position="0.5" color="Blue" thickness="2">
44
+ <point x="614" y="347"/>
45
+ <point x="98" y="347"/>
46
+ </connection>
47
+ <node symbol="Pool" x="320" y="249" color="Green" caption="Amplified" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
48
+ <node symbol="Pool" x="320" y="69" color="Green" caption="Passed Through" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
49
+ <node symbol="Pool" x="480" y="190" color="Green" caption="Total Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
50
+ <node symbol="Pool" x="96" y="468" color="Blue" caption="Previous Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
51
+ <node symbol="Pool" x="346" y="576" color="Blue" caption="Amplified" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
52
+ <node symbol="Pool" x="506" y="517" color="Blue" caption="Total Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
53
+ <node symbol="Converter" x="435" y="907" color="Orange" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
54
+ <connection type="Resource Connection" start="70" end="71" label="" position="0.5" color="Orange" thickness="2"/>
55
+ <connection type="Resource Connection" start="69" end="48" label="" position="0.5" color="Orange" thickness="2"/>
56
+ <node symbol="Gate" x="263" y="856" color="Orange" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="dice"/>
57
+ <connection type="Resource Connection" start="71" end="53" label="" position="0.5" color="Orange" thickness="2"/>
58
+ <node symbol="Gate" x="585" y="905" color="Orange" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="skill"/>
59
+ <connection type="Resource Connection" start="53" end="153" label="50%" position="0.5" color="Orange" thickness="2"/>
60
+ <connection type="State Connection" start="66" end="54" label="+1" position="0.5" color="Orange" thickness="2"/>
61
+ <node symbol="Register" x="579" y="967" color="Orange" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
62
+ <connection type="Resource Connection" start="48" end="71" label="1" position="0.5" color="Orange" thickness="2"/>
63
+ <connection type="Resource Connection" start="179" end="71" label="0" position="0.5" color="Orange" thickness="2"/>
64
+ <connection type="State Connection" start="67" end="57" label="+1" position="0.5" color="Orange" thickness="2"/>
65
+ <connection type="State Connection" start="56" end="58" label="+1" position="0.5" color="Orange" thickness="2"/>
66
+ <connection type="Resource Connection" start="51" end="69" label="50%" position="0.5" color="Orange" thickness="2"/>
67
+ <connection type="State Connection" start="64" end="63" label="+1" position="0" color="Orange" thickness="2"/>
68
+ <connection type="Resource Connection" start="51" end="70" label="50%" position="0.5" color="Orange" thickness="2"/>
69
+ <node symbol="Register" x="370" y="874" color="Orange" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
70
+ <connection type="State Connection" start="64" end="61" label="-1" position="0.5" color="Orange" thickness="2"/>
71
+ <node symbol="Register" x="585" y="838" color="Orange" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="5"/>
72
+ <node symbol="Register" x="441" y="969" color="Orange" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
73
+ <node symbol="Pool" x="105" y="856" color="Orange" caption="Previous Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
74
+ <node symbol="Pool" x="355" y="964" color="Orange" caption="Amplified" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
75
+ <node symbol="Pool" x="355" y="784" color="Orange" caption="Passed Through" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
76
+ <node symbol="Pool" x="515" y="905" color="Orange" caption="Total Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
77
+ <connection type="Resource Connection" start="68" end="51" label="1" position="0.5" color="Orange" thickness="2"/>
78
+ <node symbol="GroupBox" x="39" y="748" color="Orange" caption="" width="689.1458557128907" height="341.72470703125" captionPos="7"/>
79
+ <node symbol="GroupBox" x="34" y="364" color="Blue" caption="" width="689.1458557128907" height="341.72470703125" captionPos="7"/>
80
+ <connection type="Resource Connection" start="143" end="68" label="" position="0.5" color="Orange" thickness="2">
81
+ <point x="623" y="735"/>
82
+ <point x="107" y="735"/>
83
+ </connection>
84
+ <node symbol="Converter" x="455" y="1318" color="Purple" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
85
+ <connection type="Resource Connection" start="96" end="99" label="" position="0.5" color="Purple" thickness="2"/>
86
+ <connection type="Resource Connection" start="95" end="76" label="" position="0.5" color="Purple" thickness="2"/>
87
+ <node symbol="Gate" x="283" y="1267" color="Purple" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="dice"/>
88
+ <connection type="Resource Connection" start="99" end="176" label="" position="0.5" color="Purple" thickness="2"/>
89
+ <node symbol="Register" x="599" y="1378" color="Purple" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
90
+ <connection type="Resource Connection" start="76" end="99" label="1" position="0.5" color="Purple" thickness="2"/>
91
+ <connection type="Resource Connection" start="93" end="99" label="0" position="0.5" color="Purple" thickness="2"/>
92
+ <connection type="State Connection" start="92" end="82" label="+1" position="0.5" color="Purple" thickness="2"/>
93
+ <connection type="State Connection" start="81" end="83" label="+1" position="0.5" color="Purple" thickness="2"/>
94
+ <connection type="Resource Connection" start="79" end="95" label="50%" position="0.5" color="Purple" thickness="2"/>
95
+ <connection type="State Connection" start="89" end="88" label="+1" position="0" color="Purple" thickness="2"/>
96
+ <connection type="Resource Connection" start="79" end="96" label="50%" position="0.5" color="Purple" thickness="2"/>
97
+ <node symbol="Register" x="390" y="1285" color="Purple" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
98
+ <connection type="State Connection" start="89" end="86" label="-1" position="0.5" color="Purple" thickness="2"/>
99
+ <node symbol="Register" x="605" y="1249" color="Purple" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="5"/>
100
+ <node symbol="Register" x="461" y="1380" color="Purple" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
101
+ <node symbol="Source" x="536" y="1431" color="Purple" caption="New Bugs" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
102
+ <node symbol="Pool" x="125" y="1267" color="Purple" caption="Previous Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
103
+ <node symbol="Pool" x="375" y="1375" color="Purple" caption="Amplified" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
104
+ <node symbol="Pool" x="375" y="1195" color="Purple" caption="Passed Through" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
105
+ <connection type="Resource Connection" start="94" end="79" label="1" position="0.5" color="Purple" thickness="2"/>
106
+ <node symbol="GroupBox" x="59" y="1159" color="Purple" caption="" width="689.1458557128907" height="341.72470703125" captionPos="7"/>
107
+ <node symbol="Pool" x="535" y="1316" color="Purple" caption="Total Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
108
+ <connection type="Resource Connection" start="21" end="102" label="50%" position="0.5" color="Blue" thickness="2"/>
109
+ <connection type="Resource Connection" start="153" end="94" label="" position="0.5" color="Purple" thickness="2">
110
+ <point x="643" y="1146"/>
111
+ <point x="127" y="1146"/>
112
+ </connection>
113
+ <node symbol="Pool" x="346" y="396" color="Blue" caption="Passed Through" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
114
+ <node symbol="TextLabel" x="663" y="65" color="Green" caption="Requirements"/>
115
+ <node symbol="TextLabel" x="658" y="390" color="Blue" caption="Design"/>
116
+ <connection type="Resource Connection" start="42" end="0" label="" position="0.5" color="Green" thickness="2"/>
117
+ <node symbol="GroupBox" x="30" y="40" color="Green" caption="" width="694.8601623535156" height="294.8659912109375" captionPos="7"/>
118
+ <node symbol="TextLabel" x="667" y="775" color="Orange" caption="Coding"/>
119
+ <node symbol="Chart" x="422" y="1661" color="Red" caption="" width="328.722216796875" height="126.15146484374998" captionPos="5" scaleX="0" scaleY="0"/>
120
+ <node symbol="Converter" x="460" y="1723" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
121
+ <connection type="Resource Connection" start="132" end="135" label="" position="0.5" color="Red" thickness="2"/>
122
+ <connection type="Resource Connection" start="131" end="109" label="" position="0.5" color="Red" thickness="2"/>
123
+ <node symbol="Gate" x="288" y="1672" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="dice"/>
124
+ <connection type="Resource Connection" start="135" end="114" label="" position="0.5" color="Red" thickness="2"/>
125
+ <node symbol="Gate" x="610" y="1721" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="skill"/>
126
+ <connection type="Resource Connection" start="114" end="133" label="50%" position="0.5" color="Red" thickness="2"/>
127
+ <connection type="State Connection" start="127" end="115" label="+1" position="0.5" color="Red" thickness="2"/>
128
+ <node symbol="Register" x="604" y="1783" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
129
+ <connection type="Resource Connection" start="109" end="135" label="1" position="0.5" color="Red" thickness="2"/>
130
+ <connection type="Resource Connection" start="129" end="135" label="0" position="0.5" color="Red" thickness="2"/>
131
+ <connection type="State Connection" start="128" end="118" label="+1" position="0.5" color="Red" thickness="2"/>
132
+ <connection type="State Connection" start="117" end="119" label="+1" position="0.5" color="Red" thickness="2"/>
133
+ <connection type="Resource Connection" start="112" end="131" label="50%" position="0.5" color="Red" thickness="2"/>
134
+ <connection type="State Connection" start="125" end="124" label="+1" position="0" color="Red" thickness="2"/>
135
+ <connection type="Resource Connection" start="112" end="132" label="50%" position="0.5" color="Red" thickness="2"/>
136
+ <node symbol="Register" x="395" y="1690" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
137
+ <connection type="State Connection" start="125" end="122" label="-1" position="0.5" color="Red" thickness="2"/>
138
+ <node symbol="Register" x="610" y="1654" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="5"/>
139
+ <node symbol="Register" x="466" y="1785" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
140
+ <node symbol="Source" x="541" y="1836" color="Red" caption="New Bugs" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
141
+ <node symbol="Pool" x="130" y="1672" color="Red" caption="Previous Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
142
+ <node symbol="Pool" x="380" y="1780" color="Red" caption="Amplified" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
143
+ <node symbol="Pool" x="380" y="1600" color="Red" caption="Passed Through" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
144
+ <node symbol="Pool" x="671" y="1720" color="Red" caption="Remaining Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
145
+ <connection type="Resource Connection" start="130" end="112" label="1" position="0.5" color="Red" thickness="2"/>
146
+ <node symbol="Pool" x="540" y="1721" color="Red" caption="Total Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
147
+ <node symbol="GroupBox" x="64" y="1564" color="Red" caption="" width="689.1458557128907" height="341.72470703125" captionPos="7"/>
148
+ <node symbol="TextLabel" x="705" y="1178" color="Purple" caption="Test"/>
149
+ <node symbol="TextLabel" x="698" y="1592" color="Red" caption="Maintenance"/>
150
+ <node symbol="Pool" x="637" y="189" color="Green" caption="Remaining Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
151
+ <node symbol="Source" x="631" y="120" color="Green" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
152
+ <connection type="Resource Connection" start="140" end="167" label="" position="0.5" color="Green" thickness="2"/>
153
+ <connection type="State Connection" start="139" end="140" label="*" position="0.5" color="Green" thickness="2"/>
154
+ <node symbol="Pool" x="637" y="516" color="Blue" caption="Remaining Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
155
+ <connection type="State Connection" start="143" end="145" label="*" position="0.5" color="Blue" thickness="2"/>
156
+ <node symbol="Source" x="640" y="440" color="Blue" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
157
+ <connection type="Resource Connection" start="145" end="168" label="" position="0.5" color="Blue" thickness="2"/>
158
+ <connection type="Resource Connection" start="148" end="169" label="" position="0.5" color="Orange" thickness="2"/>
159
+ <node symbol="Source" x="649" y="814" color="Orange" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
160
+ <connection type="Resource Connection" start="154" end="170" label="" position="0.5" color="Purple" thickness="2"/>
161
+ <connection type="Resource Connection" start="152" end="171" label="" position="0.5" color="Red" thickness="2"/>
162
+ <connection type="Resource Connection" start="45" end="21" label="1" position="0.5" color="Blue" thickness="2"/>
163
+ <node symbol="Source" x="661" y="1632" color="Red" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
164
+ <node symbol="Pool" x="646" y="904" color="Orange" caption="Remaining Bugs" thickness="2" captionPos="0.5" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
165
+ <node symbol="Source" x="648" y="1194" color="Purple" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
166
+ <connection type="State Connection" start="153" end="148" label="*" position="0.5" color="Orange" thickness="2"/>
167
+ <connection type="State Connection" start="133" end="152" label="*" position="0.5" color="Red" thickness="2"/>
168
+ <connection type="State Connection" start="180" end="154" label="*" position="0.5" color="Purple" thickness="2"/>
169
+ <node symbol="Gate" x="228" y="141" color="Green" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="dice"/>
170
+ <node symbol="Chart" x="790" y="726" color="Black" caption="" width="388.40512695312486" height="251.26201171875005" captionPos="5" scaleX="0" scaleY="0"/>
171
+ <connection type="State Connection" start="167" end="159" label="" position="0.5" color="Green" thickness="2"/>
172
+ <connection type="State Connection" start="168" end="159" label="" position="0.5" color="Blue" thickness="2"/>
173
+ <connection type="State Connection" start="169" end="159" label="" position="0.5" color="Orange" thickness="2"/>
174
+ <connection type="State Connection" start="170" end="159" label="" position="0.5" color="Purple" thickness="2"/>
175
+ <connection type="State Connection" start="170" end="159" label="" position="0.5" color="Purple" thickness="2"/>
176
+ <connection type="Resource Connection" start="180" end="130" label="" position="0.5" color="Red" thickness="2">
177
+ <point x="648" y="1551"/>
178
+ <point x="132" y="1551"/>
179
+ </connection>
180
+ <connection type="State Connection" start="171" end="159" label="" position="0.5" color="Red" thickness="2"/>
181
+ <node symbol="Pool" x="492" y="68" color="Green" caption="Bug Counter" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
182
+ <node symbol="Pool" x="501" y="388" color="Blue" caption="Bug Counter" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
183
+ <node symbol="Pool" x="510" y="762" color="Orange" caption="Bug Counter" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
184
+ <node symbol="Pool" x="541" y="1188" color="Purple" caption="Bug Counter" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
185
+ <node symbol="Pool" x="537" y="1602" color="Red" caption="Bug Counter" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
186
+ <node symbol="Register" x="542" y="134" color="Green" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="5"/>
187
+ <node symbol="Register" x="151" y="219" color="Green" caption="" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="0" min="-9999" max="9999" start="0" step="1"/>
188
+ <connection type="Resource Connection" start="176" end="180" label="&lt;=50" position="0.5" color="Purple" thickness="2"/>
189
+ <connection type="State Connection" start="91" end="178" label="+1" position="0.5" color="Purple" thickness="2"/>
190
+ <node symbol="Gate" x="600" y="1320" color="Purple" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" gateType="skill"/>
191
+ <connection type="State Connection" start="91" end="174" label="+1" position="0.35000000000000003" color="Purple" thickness="2"/>
192
+ <connection type="Resource Connection" start="176" end="71" label=">50" position="0.5" color="Purple" thickness="2"/>
193
+ <node symbol="Source" x="481" y="1028" color="Orange" caption="New Bugs" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
194
+ <node symbol="Pool" x="698" y="1323" color="Purple" caption="Remaining Bugs" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
195
+ </graph>
@@ -0,0 +1,35 @@
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="29" end="18" label="0" position="0.5" color="Black" thickness="2"/>
3
+ <connection type="Resource Connection" start="23" end="19" label="0" position="0.5" color="Black" thickness="2"/>
4
+ <connection type="State Connection" start="29" end="1" label="+0.1" position="0.5" color="Black" thickness="2"/>
5
+ <connection type="Resource Connection" start="26" end="24" label="1" position="0.5" color="Black" thickness="2"/>
6
+ <connection type="State Connection" start="29" end="3" label="+0.1" position="0.5" color="Black" thickness="2"/>
7
+ <connection type="Resource Connection" start="31" end="30" label="" position="0.5" color="Black" thickness="2"/>
8
+ <connection type="Resource Connection" start="30" end="32" label="" position="0.5" color="Black" thickness="2"/>
9
+ <connection type="State Connection" start="30" end="10" label="+1m" position="0.5" color="Black" thickness="2"/>
10
+ <connection type="State Connection" start="30" end="11" label="+1m" position="0.5" color="Black" thickness="2"/>
11
+ <connection type="Resource Connection" start="24" end="25" label="0" position="0.5" color="Black" thickness="2"/>
12
+ <connection type="Resource Connection" start="24" end="28" label="1*2" position="0.5" color="Black" thickness="2"/>
13
+ <connection type="Resource Connection" start="19" end="28" label="1*2" position="0.5" color="Black" thickness="2"/>
14
+ <connection type="Resource Connection" start="19" end="20" label="20" position="0.5" color="Black" thickness="2"/>
15
+ <connection type="State Connection" start="19" end="21" label=">5000" position="0.5" color="Black" thickness="2"/>
16
+ <connection type="State Connection" start="19" end="22" label="==0" position="0.5" color="Black" thickness="2"/>
17
+ <connection type="State Connection" start="30" end="27" label="+1m" position="0.5" color="Black" thickness="2"/>
18
+ <connection type="State Connection" start="24" end="9" label="+0.01" position="0.5" color="Black" thickness="2"/>
19
+ <connection type="State Connection" start="29" end="0" label="+0.1" position="0.5" color="Black" thickness="2"/>
20
+ <node symbol="Drain" x="50" y="240" color="Black" caption="churn" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1"/>
21
+ <node symbol="Pool" x="280" y="361" color="Black" caption="cash" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="2000" capacity="-1"/>
22
+ <node symbol="Drain" x="400" y="401" color="Black" caption="fixed_expenses" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1"/>
23
+ <node symbol="EndCondition" x="320" y="482" color="Black" caption="win" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1"/>
24
+ <node symbol="EndCondition" x="240" y="481" color="Black" caption="lose" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1"/>
25
+ <node symbol="Source" x="160" y="401" color="Black" caption="revenue" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
26
+ <node symbol="Pool" x="280" y="122" color="Black" caption="market_awareness" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
27
+ <node symbol="Drain" x="360" y="41" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1"/>
28
+ <node symbol="Source" x="198" y="41" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
29
+ <connection type="Resource Connection" start="28" end="29" label="1*3" position="0.5" color="Black" thickness="2"/>
30
+ <node symbol="Converter" x="280" y="241" color="Black" caption="get_customers" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull all" actions="1" resourceColor="Black"/>
31
+ <node symbol="Pool" x="170" y="241" color="Black" caption="customers" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
32
+ <node symbol="Pool" x="440" y="239" color="Black" caption="campaign_size" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="1" capacity="-1"/>
33
+ <node symbol="Source" x="519" y="160" color="Black" caption="bigger" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1" resourceColor="Black"/>
34
+ <node symbol="Drain" x="520" y="320" color="Black" caption="smaller" thickness="2" captionPos="0.25" activationMode="interactive" pullMode="pull any" actions="1"/>
35
+ </graph>
@@ -0,0 +1,19 @@
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="10" label="" position="0.5" color="Black" thickness="2"/>
3
+ <connection type="State Connection" start="10" end="3" label="*" position="0.5" color="Black" thickness="2"/>
4
+ <connection type="Resource Connection" start="3" end="9" label="" position="0.5" color="Black" thickness="2"/>
5
+ <node symbol="Source" x="271" y="180" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
6
+ <connection type="State Connection" start="7" end="11" label="*" position="0.5" color="Black" thickness="2"/>
7
+ <connection type="Resource Connection" start="11" end="8" label="" position="0.5" color="Black" thickness="2"/>
8
+ <connection type="State Connection" start="11" end="3" label="*" position="0.5" color="Black" thickness="2"/>
9
+ <node symbol="Source" x="104" y="101" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black"/>
10
+ <node symbol="Pool" x="464" y="312" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
11
+ <node symbol="Pool" x="458" y="183" 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="460" y="68" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
13
+ <node symbol="Source" x="264" y="311" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="push any" actions="1" resourceColor="Black"/>
14
+ <node symbol="Pool" x="459" y="408" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
15
+ <connection type="Resource Connection" start="14" end="12" label="" position="0.5" color="Black" thickness="2"/>
16
+ <node symbol="Source" x="269" y="408" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="passive" pullMode="pull any" actions="1" resourceColor="Black"/>
17
+ <connection type="State Connection" start="8" end="14" label=">2" position="0.5" color="Black" thickness="2"/>
18
+ <connection type="State Connection" start="7" end="14" label="*" position="0.5" color="Black" thickness="2"/>
19
+ </graph>
@@ -0,0 +1,20 @@
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="Source" x="57" y="120" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
3
+ <node symbol="Pool" x="320" y="120" 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="176" y="120" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
5
+ <connection type="Resource Connection" start="0" end="2" label="10" position="0.5" color="Black" thickness="2"/>
6
+ <connection type="Resource Connection" start="2" end="1" label="5" position="0.5" color="Black" thickness="2"/>
7
+ <node symbol="Pool" x="320" y="224" 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="12" end="5" label="5" position="0.5" color="Black" thickness="2"/>
9
+ <node symbol="Source" x="57" y="224" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
10
+ <node symbol="TextLabel" x="151" y="76" color="Black" caption="Uma de cada vez x Todas de uma vez"/>
11
+ <node symbol="TextLabel" x="71" y="179" color="Black" caption="Any x All"/>
12
+ <node symbol="TextLabel" x="456" y="174" color="Black" caption="Rodar no instantaneo e no fixed speed"/>
13
+ <connection type="Resource Connection" start="7" end="12" label="3" position="0.5" color="Black" thickness="2"/>
14
+ <node symbol="Pool" x="176" y="224" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push any" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
15
+ <node symbol="Pool" x="324" y="290" 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="13" label="5" position="0.5" color="Black" thickness="2"/>
17
+ <node symbol="Source" x="61" y="290" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="pull any" actions="1" resourceColor="Black"/>
18
+ <connection type="Resource Connection" start="15" end="17" label="3" position="0.5" color="Black" thickness="2"/>
19
+ <node symbol="Pool" x="180" y="290" color="Black" caption="" thickness="2" captionPos="0.25" activationMode="automatic" pullMode="push all" actions="1" resourceColor="Black" startingResources="0" capacity="-1"/>
20
+ </graph>
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rachinations/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rachinations"
8
+ spec.version = Rachinations::VERSION
9
+ spec.authors = ["Felipe Almeida"]
10
+ spec.email = ["falmeida1988@gmail.com"]
11
+ spec.summary = %q{Ruby port for Dr. J. Dormans' Machinations Game Mechanics Diagrams.}
12
+ spec.description = %q{This project provides a Ruby-based DSL to enable game designers to
13
+ design and also test tentative game designs and/or prototypes}
14
+ spec.homepage = ""
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0")
18
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
+ spec.test_files = spec.files.grep(%r{^(testing|spec|features|simulations)/})
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.required_ruby_version = '~> 2.1'
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.5"
25
+ spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "rspec","~> 3.0"
27
+ spec.add_development_dependency "minitest"
28
+ spec.add_development_dependency "minitest-reporters"
29
+ spec.add_development_dependency "cucumber"
30
+ spec.add_development_dependency "coveralls"
31
+
32
+ spec.add_dependency "activesupport","3.0.0"
33
+ spec.add_dependency "i18n"
34
+
35
+ end
@@ -0,0 +1,11 @@
1
+ Given(/^I am at the start of the program$/) do
2
+ pending
3
+ end
4
+
5
+ And(/^I create an empty diagram named "([^"]*)"$/) do |arg|
6
+ d=Diagram.new "empty"
7
+ end
8
+
9
+ Then(/^I should be able to ask the name and receive "([^"]*)"$/) do |arg|
10
+ d.name.should == "empty"
11
+ end
@@ -0,0 +1,20 @@
1
+ require_relative '../../domain/diagrams/diagram'
2
+ require_relative '../../dsl/dsl'
3
+ require_relative '../../domain/nodes/pool'
4
+ require_relative '../../domain/nodes/source'
5
+ require_relative '../../domain/edges/edge'
6
+
7
+ include DSL
8
+
9
+ n=diagram 'test_diagram' , :verbose do
10
+ node 'source', Source
11
+ node 'pool1', Pool
12
+ edge 'edge1', Edge, 'source', 'pool1'
13
+ end
14
+
15
+
16
+
17
+
18
+ n.run!(5)
19
+
20
+
@@ -0,0 +1,49 @@
1
+ require_relative '../../domain/diagrams/diagram'
2
+ require_relative '../../dsl/dsl'
3
+ require_relative '../../domain/nodes/pool'
4
+ require_relative '../../domain/nodes/source'
5
+ require_relative '../../domain/edges/edge'
6
+
7
+ generator = VerboseDiagram.new('1to2')
8
+
9
+ generator.add_node! Pool, {
10
+ :name => 'g1' ,
11
+ :activation => :automatic ,
12
+ :initial_value => 5 ,
13
+ mode: :push
14
+ }
15
+
16
+ generator.add_node! Pool, {
17
+ :name => 'g2' ,
18
+ :activation => :automatic ,
19
+ mode: :push
20
+ }
21
+
22
+ generator.add_node! Pool, {
23
+ :name => 'g3'
24
+ }
25
+
26
+ generator.add_edge! Edge, {
27
+ :name => 'c1',
28
+ :from => 'g1',
29
+ :to => 'g2'
30
+ }
31
+
32
+ generator.add_edge! Edge, {
33
+ :name => 'c2' ,
34
+ :from => 'g1' ,
35
+ :to => 'g3' ,
36
+ }
37
+
38
+
39
+ generator.add_edge! Edge, {
40
+ :name => 'c3' ,
41
+ :from => 'g2' ,
42
+ :to => 'g1' ,
43
+ }
44
+
45
+ generator.run!(5)
46
+
47
+
48
+
49
+