MINT-core 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +22 -3
- data/Gemfile.lock +98 -22
- data/History.txt +262 -0
- data/LICENSE +30 -0
- data/MINT-core.gemspec +25 -80
- data/Manifest.txt +145 -30
- data/README.rdoc +6 -163
- data/Rakefile +16 -17
- data/bin/mint-aui +3 -3
- data/bin/mint-cui-gfx +3 -2
- data/bin/mint-juggernaut.sh +0 -0
- data/bin/mint-tuplespace +0 -0
- data/lib/MINT-core.rb +53 -15
- data/lib/MINT-core/agent/agent.rb +1 -1
- data/lib/MINT-core/agent/aui.rb +0 -14
- data/lib/MINT-core/agent/auicontrol.rb +91 -38
- data/lib/MINT-core/agent/cui-gfx.rb +3 -3
- data/lib/MINT-core/agent/cuicontrol.rb +94 -24
- data/lib/MINT-core/connector/redis_connector.rb +16 -0
- data/lib/MINT-core/manager/mapping_manager.rb +101 -0
- data/lib/MINT-core/manager/mapping_parser.rb +89 -0
- data/lib/MINT-core/manager/mapping_server.rb +99 -0
- data/lib/MINT-core/manager/position_updater.rb +33 -0
- data/lib/MINT-core/manager/scxml_client.rb +118 -0
- data/lib/MINT-core/manager/scxml_server.rb +86 -0
- data/lib/MINT-core/mapping/action/action.rb +32 -0
- data/lib/MINT-core/mapping/action/backend_action.rb +32 -0
- data/lib/MINT-core/mapping/action/bind_action.rb +88 -0
- data/lib/MINT-core/mapping/action/event_action.rb +40 -0
- data/lib/MINT-core/mapping/complementary_mapping.rb +31 -0
- data/lib/MINT-core/mapping/mapping.rb +170 -34
- data/lib/MINT-core/mapping/observation/negation_observation.rb +64 -0
- data/lib/MINT-core/mapping/observation/observation.rb +219 -0
- data/lib/MINT-core/mapping/sequential.rb +1 -2
- data/lib/MINT-core/mapping/sequential_mapping.rb +60 -0
- data/lib/MINT-core/model/aui/AIChoiceElement.rb +17 -0
- data/lib/MINT-core/model/aui/AICommand.rb +7 -0
- data/lib/MINT-core/model/aui/AIContainer.rb +73 -0
- data/lib/MINT-core/model/aui/AIContext.rb +12 -0
- data/lib/MINT-core/model/aui/AIIN.rb +8 -0
- data/lib/MINT-core/model/aui/AIINContinuous.rb +56 -0
- data/lib/MINT-core/model/aui/AIINDiscrete.rb +8 -0
- data/lib/MINT-core/model/aui/AIMultiChoice.rb +1 -2
- data/lib/MINT-core/model/aui/AIMultiChoiceElement.rb +4 -51
- data/lib/MINT-core/model/aui/AIO.rb +76 -123
- data/lib/MINT-core/model/aui/AIOUT.rb +8 -0
- data/lib/MINT-core/model/aui/AIOUTContinuous.rb +61 -0
- data/lib/MINT-core/model/aui/AIReference.rb +16 -0
- data/lib/MINT-core/model/aui/AISingleChoice.rb +18 -1
- data/lib/MINT-core/model/aui/AISingleChoiceElement.rb +10 -56
- data/lib/MINT-core/model/aui/AISinglePresence.rb +39 -71
- data/lib/MINT-core/model/aui/aicommand.scxml +47 -0
- data/lib/MINT-core/model/aui/aicontainer.scxml +41 -0
- data/lib/MINT-core/model/aui/aicontext.scxml +34 -0
- data/lib/MINT-core/model/aui/aiincontinuous.scxml +59 -0
- data/lib/MINT-core/model/aui/aiinrange.scxml +86 -0
- data/lib/MINT-core/model/aui/aimultichoice.scxml +67 -0
- data/lib/MINT-core/model/aui/aimultichoiceelement.scxml +51 -0
- data/lib/MINT-core/model/aui/aio.scxml +18 -27
- data/lib/MINT-core/model/aui/aioutcontinuous.scxml +66 -0
- data/lib/MINT-core/model/aui/aireference.scxml +28 -0
- data/lib/MINT-core/model/aui/aisinglechoice.scxml +60 -0
- data/lib/MINT-core/model/aui/aisinglechoiceelement.scxml +45 -60
- data/lib/MINT-core/model/aui/aisinglepresence.scxml +15 -24
- data/lib/MINT-core/model/aui/model.rb +15 -38
- data/lib/MINT-core/model/cui/gfx/CIC.rb +34 -10
- data/lib/MINT-core/model/cui/gfx/CIO.rb +66 -115
- data/lib/MINT-core/model/cui/gfx/CarouFredSel.scxml +58 -0
- data/lib/MINT-core/model/cui/gfx/MarkableRadioButton.rb +8 -0
- data/lib/MINT-core/model/cui/gfx/RadioButton.rb +8 -0
- data/lib/MINT-core/model/cui/gfx/RadioButtonGroup.rb +6 -0
- data/lib/MINT-core/model/cui/gfx/button.rb +16 -0
- data/lib/MINT-core/model/cui/gfx/button.scxml +58 -0
- data/lib/MINT-core/model/cui/gfx/caroufredsel.rb +48 -0
- data/lib/MINT-core/model/cui/gfx/cic.scxml +57 -0
- data/lib/MINT-core/model/cui/gfx/cio.scxml +54 -0
- data/lib/MINT-core/model/cui/gfx/markableradiobutton.scxml +67 -0
- data/lib/MINT-core/model/cui/gfx/model.rb +39 -176
- data/lib/MINT-core/model/cui/gfx/radiobutton.scxml +59 -0
- data/lib/MINT-core/model/interactor.rb +167 -46
- data/lib/MINT-core/model/interactor.scxml +3 -0
- data/lib/MINT-core/model/interactor_helpers.rb +25 -0
- data/lib/MINT-core/model/ir/body/OneHandPoseNavigation.rb +15 -0
- data/lib/MINT-core/model/ir/body/body.rb +5 -0
- data/lib/MINT-core/model/ir/body/fingertip.rb +114 -0
- data/lib/MINT-core/model/ir/body/fingertip.scxml +43 -0
- data/lib/MINT-core/model/{body → ir/body}/gesture_button.rb +0 -0
- data/lib/MINT-core/model/ir/body/hand.rb +5 -0
- data/lib/MINT-core/model/ir/body/head.rb +102 -0
- data/lib/MINT-core/model/ir/body/head.scxml +92 -0
- data/lib/MINT-core/model/ir/body/onehandposenavigation.scxml +53 -0
- data/lib/MINT-core/model/ir/body/pose.rb +99 -0
- data/lib/MINT-core/model/ir/browserscreen.rb +27 -0
- data/lib/MINT-core/model/ir/browserscreen.scxml +14 -0
- data/lib/MINT-core/model/{device → ir}/button.rb +1 -1
- data/lib/MINT-core/model/ir/ir.rb +5 -0
- data/lib/MINT-core/model/ir/irmedia.rb +5 -0
- data/lib/MINT-core/model/ir/irmode.rb +5 -0
- data/lib/MINT-core/model/{device → ir}/joypad.rb +1 -1
- data/lib/MINT-core/model/ir/mouse.rb +44 -0
- data/lib/MINT-core/model/ir/mouse.scxml +35 -0
- data/lib/MINT-core/model/{device/mouse.rb → ir/mouse_old.rb} +2 -2
- data/lib/MINT-core/model/{device → ir}/pointer.rb +20 -22
- data/lib/MINT-core/model/ir/pointer.scxml +19 -0
- data/lib/MINT-core/model/ir/screen.rb +5 -0
- data/lib/MINT-core/model/{device → ir}/wheel.rb +1 -1
- data/lib/MINT-core/model/mim/aicommand_activate_to_button_press.xml +13 -0
- data/lib/MINT-core/model/mim/aicommand_deactivate_to_button_release.xml +13 -0
- data/lib/MINT-core/model/mim/aio_defocus_to_cio_unhighlight.xml +13 -0
- data/lib/MINT-core/model/mim/aio_focus_to_cio_highlight.xml +14 -0
- data/lib/MINT-core/model/mim/aio_present_to_cio_display.xml +14 -0
- data/lib/MINT-core/model/mim/aio_suspend_to_cio_hide.xml +13 -0
- data/lib/MINT-core/model/mim/aisinglechoice_present_to_child_present.xml +14 -0
- data/lib/MINT-core/model/mim/aisinglechoiceelement_chosen_to_radiobutton_select.xml +13 -0
- data/lib/MINT-core/model/mim/aisinglechoiceelement_unchosen_to_radiobutton_unselect.xml +13 -0
- data/lib/MINT-core/model/mim/aisinglepresence_children_finished_to_caroufredsel_init_js.xml +14 -0
- data/lib/MINT-core/model/mim/aisinglepresence_present_to_child_present.xml +15 -0
- data/lib/MINT-core/model/mim/browserscreen_reload_to_cuicontrol_refresh_all.xml +12 -0
- data/lib/MINT-core/model/mim/button_press_to_aicommand_activate.xml +12 -0
- data/lib/MINT-core/model/mim/button_release_to_aicommand_deactivate.xml +12 -0
- data/lib/MINT-core/model/mim/caroufredsel_refreshing_to_caroufredsel_init_js.xml +14 -0
- data/lib/MINT-core/model/mim/cio_display_to_aio_defocus.xml +13 -0
- data/lib/MINT-core/model/mim/cio_display_to_aio_present.xml +12 -0
- data/lib/MINT-core/model/mim/cio_display_to_cio_display_cache_add.xml +11 -0
- data/lib/MINT-core/model/mim/cio_hide_to_aio_suspend.xml +12 -0
- data/lib/MINT-core/model/mim/cio_hide_to_cio_display_cache_remove.xml +12 -0
- data/lib/MINT-core/model/mim/cio_highlight_to_aio_focus.xml +13 -0
- data/lib/MINT-core/model/mim/head_looking_left_to_aisinglepresence_prev.xml +14 -0
- data/lib/MINT-core/model/mim/head_looking_right_to_aisinglepresence_next.xml +15 -0
- data/lib/MINT-core/model/mim/head_nodding_to_aisinglepresence_next.xml +15 -0
- data/lib/MINT-core/model/mim/head_tilting_left_to_aisinglepresence_prev.xml +14 -0
- data/lib/MINT-core/model/mim/head_tilting_right_to_aisinglepresence_next.xml +15 -0
- data/lib/MINT-core/model/mim/left_button_aisinglepresence_enter.xml +15 -0
- data/lib/MINT-core/model/mim/left_button_aisinglepresence_next.xml +15 -0
- data/lib/MINT-core/model/mim/mim_default.xml +52 -0
- data/lib/MINT-core/model/mim/mint-mappings.xsd +127 -0
- data/lib/MINT-core/model/mim/mouse_press_to_aicommand_activate.xml +17 -0
- data/lib/MINT-core/model/mim/mouse_press_to_aisinglechoiceelement_choose.xml +17 -0
- data/lib/MINT-core/model/mim/mouse_press_to_aisinglechoiceelement_unchoose.xml +17 -0
- data/lib/MINT-core/model/mim/mouse_release_to_aicommand_deactivate.xml +16 -0
- data/lib/MINT-core/model/mim/mouse_stop_to_cio_highlight.xml +13 -0
- data/lib/MINT-core/model/mim/onehandposnav_confirm_to_aichoiceelement_choose.xml +14 -0
- data/lib/MINT-core/model/mim/onehandposnav_next_to_aio_next.xml +14 -0
- data/lib/MINT-core/model/mim/onehandposnav_previous_to_aio_prev.xml +14 -0
- data/lib/MINT-core/model/mim/radiobutton_selected_to_aisinglechoiceelement_choose.xml +13 -0
- data/lib/MINT-core/model/mim/radiobutton_unselected_to_aisinglechoiceelement_unchoose.xml +13 -0
- data/lib/MINT-core/model/mim/right_button_aisinglepresence_prev.xml +15 -0
- data/lib/MINT-core/model/task.rb +6 -6
- data/script/console +0 -0
- data/script/destroy +0 -0
- data/script/generate +0 -0
- data/spec/AICommand_spec.rb +20 -0
- data/spec/AIContainer_spec.rb +161 -0
- data/spec/AIINContinuous_spec.rb +92 -0
- data/spec/AIOUTContinuous_spec.rb +93 -0
- data/spec/AIO_spec.rb +73 -0
- data/spec/AIReference_spec.rb +105 -0
- data/spec/AISinglePresence_spec.rb +204 -60
- data/spec/Button_spec.rb +114 -0
- data/spec/CIO_spec.rb +145 -0
- data/spec/Interactor_spec.rb +95 -0
- data/spec/MappingManager_spec.rb +126 -0
- data/spec/Spontaneous_spec.rb +53 -0
- data/spec/aio_agent_spec.rb +215 -186
- data/spec/aisinglechoice_spec.rb +147 -88
- data/spec/aisinglechoiceelement_spec.rb +154 -70
- data/spec/complementary_mapping_spec.rb +158 -0
- data/spec/core_spec.rb +27 -15
- data/spec/cui_helper.rb +100 -0
- data/spec/examples/browserscreen_reload_to_cuicontrol_refresh_all.xml +12 -0
- data/spec/examples/mim_streaming_example.xml +9 -0
- data/spec/examples/mouse_highlight.xml +22 -0
- data/spec/examples/performance_mapping.xml +15 -0
- data/spec/examples/reset_click.xml +24 -0
- data/spec/interactor_test.scxml +32 -0
- data/spec/interactor_test_2.scxml +16 -0
- data/spec/mapping_performance_spec.rb +118 -0
- data/spec/mapping_server_spec.rb +161 -0
- data/spec/mapping_spec.rb +307 -0
- data/spec/music_spec.rb +301 -135
- data/spec/performance_counter.scxml +9 -0
- data/spec/sequential_mappings_spec.rb +69 -0
- data/spec/shared/aio_shared.rb +144 -0
- data/spec/spec_helper.rb +22 -3
- data/spec/spontaneous.scxml +11 -0
- data/spec/support/connection_helper.rb +19 -0
- data/spec/support/redis_connector_monkey_patch.rb +1 -0
- data/spec/support/statemachine_helper.rb +84 -0
- data/spec/sync_mappings_spec.rb +96 -0
- metadata +219 -354
- data/lib/MINT-core/mapping/complementary.rb +0 -100
- data/lib/MINT-core/mapping/on_state_change.rb +0 -65
- data/lib/MINT-core/model/aui/AIC.rb +0 -86
- data/lib/MINT-core/model/aui/AIChoice.rb +0 -65
- data/lib/MINT-core/model/aui/AIINChoose.rb +0 -54
- data/lib/MINT-core/model/aui/AIOUTDiscrete.rb +0 -43
- data/lib/MINT-core/model/aui/aic.png +0 -0
- data/lib/MINT-core/model/aui/aic.scxml +0 -50
- data/lib/MINT-core/model/aui/aichoice.png +0 -0
- data/lib/MINT-core/model/aui/aichoice.scxml +0 -60
- data/lib/MINT-core/model/aui/aio.png +0 -0
- data/lib/MINT-core/model/aui/aisinglechoiceelement.png +0 -0
- data/lib/MINT-core/model/aui/aisinglepresence.png +0 -0
- data/lib/MINT-core/model/body/handgesture.rb +0 -279
- data/lib/MINT-core/model/body/head.png +0 -0
- data/lib/MINT-core/model/body/head.rb +0 -51
- data/lib/MINT-core/model/body/head.scxml +0 -28
- data/lib/MINT-core/model/cui/gfx/screen.rb +0 -18
- data/lib/MINT-core/overrides/rinda.rb +0 -34
- data/spec/AIC_spec.rb +0 -69
- data/spec/MINT-core_spec.rb +0 -11
- data/spec/aio_spec.rb +0 -144
- data/spec/cio_spec.rb +0 -369
- data/tasks/rspec.rake +0 -21
@@ -0,0 +1,67 @@
|
|
1
|
+
<scxml initial="initialized" name="AISingleChoice" version="0.9" xmlns="http://www.w3.org/2005/07/scxml"><!-- node-size-and-position x=0.0 y=0.0 w=450.0 h=700.0 -->
|
2
|
+
<state id="initialized"><!-- node-size-and-position x=178.25 y=43.0 w=90.0 h=30.0 -->
|
3
|
+
<transition event="organize" target="organized"></transition>
|
4
|
+
</state>
|
5
|
+
<state id="organized"><!-- node-size-and-position x=178.25 y=123.0 w=90.0 h=30.0 -->
|
6
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=233.25 y=178.0 --></transition>
|
7
|
+
<transition event="present" target="p"><!-- edge-path [p] x=298.25 y=218.0 pointx=0.0 pointy=0.0 offsetx=1.0 offsety=0.0 --></transition>
|
8
|
+
</state>
|
9
|
+
<state id="suspended"><!-- node-size-and-position x=178.25 y=203.0 w=90.0 h=30.0 -->
|
10
|
+
<transition event="organize" target="organized"><!-- edge-path [organized] x=213.25 y=178.0 --></transition>
|
11
|
+
<transition event="present" target="p"><!-- edge-path [p] x=233.25 y=258.0 --></transition>
|
12
|
+
</state>
|
13
|
+
<parallel id="p"><!-- node-size-and-position x=20.0 y=280.0 w=410.0 h=420.0 -->
|
14
|
+
<onentry>
|
15
|
+
<invoke src="inform_parent_presenting" type="x-mint"></invoke>
|
16
|
+
<invoke src="present_children" type="x-mint"></invoke>
|
17
|
+
</onentry>
|
18
|
+
<onexit>
|
19
|
+
<invoke src="suspend_children" type="x-mint"></invoke>
|
20
|
+
</onexit>
|
21
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=213.25 y=258.0 --></transition>
|
22
|
+
<state id="presenting" initial="wait_for_children"><!-- node-size-and-position x=20.0 y=40.0 w=190.0 h=350.0 -->
|
23
|
+
<state id="defocused"><!-- node-size-and-position x=30.5 y=190.0 w=90.0 h=30.0 -->
|
24
|
+
<transition event="focus" target="focused"><!-- edge-path [focused] x=151.0 y=245.0 --></transition>
|
25
|
+
</state>
|
26
|
+
<state id="focused"><!-- node-size-and-position x=30.5 y=270.0 w=90.0 h=30.0 -->
|
27
|
+
<transition event="defocus" target="defocused"><!-- edge-path [defocused] x=131.0 y=245.0 --></transition>
|
28
|
+
<transition event="parent" target="defocused">
|
29
|
+
<invoke src="focus_parent" type="x-mint"></invoke>
|
30
|
+
<!-- edge-path [defocused] x=71.0 y=245.0 --></transition>
|
31
|
+
<transition cond="exists_prev" event="prev" target="defocused">
|
32
|
+
<invoke src="focus_previous" type="x-mint"></invoke>
|
33
|
+
<!-- edge-path [defocused] x=91.0 y=245.0 --></transition>
|
34
|
+
<transition cond="exists_next" event="next" target="defocused">
|
35
|
+
<invoke src="focus_next" type="x-mint"></invoke>
|
36
|
+
<!-- edge-path [defocused] x=111.0 y=245.0 pointx=0.0 pointy=14.0 offsetx=2.0 offsety=-2.0 --></transition>
|
37
|
+
<transition event="child" target="defocused">
|
38
|
+
<invoke src="focus_child" type="x-mint"></invoke>
|
39
|
+
<!-- edge-path [defocused] x=51.0 y=245.0 --></transition>
|
40
|
+
</state>
|
41
|
+
<state id="wait_for_children"><!-- node-size-and-position x=10.0 y=40.0 w=100.0 h=40.0 -->
|
42
|
+
<transition event="children_finished" target="children_finished"></transition>
|
43
|
+
</state>
|
44
|
+
<state id="children_finished"><!-- node-size-and-position x=80.0 y=120.0 w=100.0 h=40.0 -->
|
45
|
+
<transition target="defocused"></transition>
|
46
|
+
</state>
|
47
|
+
</state>
|
48
|
+
<state id="dropping" initial="listing"><!-- node-size-and-position x=220.0 y=40.0 w=170.0 h=180.0 -->
|
49
|
+
<state id="listing"><!-- node-size-and-position x=20.0 y=43.0 w=90.0 h=30.0 -->
|
50
|
+
<transition cond="self.is_in?(:focused)" event="drop" target="dropped">
|
51
|
+
<script> @aios = MINT::AISingleChoiceElement.all(:new_states=> /#{Regexp.quote("dragging")}/); add(@aios); @aios.each do |aio| aio.process_event :drop end</script>
|
52
|
+
<!-- edge-path [dropped] x=70.0 y=98.0 --></transition>
|
53
|
+
<transition event="unchoose_all">
|
54
|
+
<invoke src="unchoose_all" type="x-mint"></invoke>
|
55
|
+
</transition>
|
56
|
+
<transition event="choose_all">
|
57
|
+
<invoke src="choose_all" type="x-mint"></invoke>
|
58
|
+
<!-- edge-path [listing] x=-10.0 y=14.0 --></transition>
|
59
|
+
</state>
|
60
|
+
<state id="dropped"><!-- node-size-and-position x=25.0 y=123.0 w=80.0 h=30.0 -->
|
61
|
+
<transition target="listing">
|
62
|
+
<script> self.process_event(:defocus); @aios.each do |aio| aio.process_event :focus end </script>
|
63
|
+
<!-- edge-path [listing] x=50.0 y=98.0 --></transition>
|
64
|
+
</state>
|
65
|
+
</state>
|
66
|
+
</parallel>
|
67
|
+
</scxml>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<scxml initial="initialized" name="AIMultiChoiceElement" version="0.9" xmlns="http://www.w3.org/2005/07/scxml"><!-- node-size-and-position x=0.0 y=0.0 w=624.0 h=762.0 -->
|
2
|
+
<state id="initialized"><!-- node-size-and-position x=514.0 y=43.0 w=90.0 h=30.0 -->
|
3
|
+
<transition event="organize" target="organized"></transition>
|
4
|
+
</state>
|
5
|
+
<state id="organized"><!-- node-size-and-position x=514.0 y=123.0 w=90.0 h=30.0 -->
|
6
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=560.0 y=730.0 pointx=0.0 pointy=20.0 offsetx=0.0 offsety=30.0 --></transition>
|
7
|
+
<transition event="present" target="p"></transition>
|
8
|
+
</state>
|
9
|
+
<state id="suspended"><!-- node-size-and-position x=372.00000000000006 y=712.0 w=90.0 h=30.0 -->
|
10
|
+
<transition event="organize" target="organized"><!-- edge-path [organized] x=610.0 y=740.0 x=610.0 y=140.0 pointx=1.0 pointy=-40.0 offsetx=44.0 offsety=40.0 --></transition>
|
11
|
+
<transition event="present" target="p"><!-- edge-path [p] x=388.98476942531727 y=691.3273106758478 --></transition>
|
12
|
+
</state>
|
13
|
+
<parallel id="p"><!-- node-size-and-position x=20.0 y=203.0 w=510.0 h=459.0 -->
|
14
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=407.01523057468273 y=682.6726893241523 --></transition>
|
15
|
+
<state id="presenting" initial="defocused"><!-- node-size-and-position x=20.0 y=43.0 w=160.0 h=173.0 -->
|
16
|
+
<state id="defocused"><!-- node-size-and-position x=36.5 y=43.0 w=90.0 h=30.0 -->
|
17
|
+
<transition event="focus" target="focused"><!-- edge-path [focused] x=143.0 y=98.0 --></transition>
|
18
|
+
</state>
|
19
|
+
<state id="focused"><!-- node-size-and-position x=36.5 y=123.0 w=90.0 h=30.0 -->
|
20
|
+
<transition event="defocus" target="defocused"><!-- edge-path [defocused] x=123.0 y=98.0 --></transition>
|
21
|
+
<transition cond="exists_prev" event="prev" target="defocused">
|
22
|
+
<invoke src="focus_previous" type="x-mint"></invoke>
|
23
|
+
<!-- edge-path [defocused] x=83.0 y=98.0 --></transition>
|
24
|
+
<transition event="parent" target="defocused">
|
25
|
+
<invoke src="focus_parent" type="x-mint"></invoke>
|
26
|
+
<!-- edge-path [defocused] x=63.0 y=98.0 --></transition>
|
27
|
+
<transition cond="exists_next" event="next" target="defocused">
|
28
|
+
<invoke src="focus_next" type="x-mint"></invoke>
|
29
|
+
<!-- edge-path [defocused] x=103.0 y=98.0 pointx=0.0 pointy=14.0 offsetx=2.0 offsety=-2.0 --></transition>
|
30
|
+
</state>
|
31
|
+
</state>
|
32
|
+
<state id="c" initial="choice"><!-- node-size-and-position x=240.0 y=43.0 w=250.00000000000003 h=395.99999999999994 -->
|
33
|
+
<state id="dragging"><!-- node-size-and-position x=85.0 y=43.0 w=80.0 h=30.0 -->
|
34
|
+
<transition event="dropped" target="dropped"></transition>
|
35
|
+
</state>
|
36
|
+
<state id="dropped"><!-- node-size-and-position x=50.0 y=123.0 w=80.0 h=30.0 -->
|
37
|
+
<transition target="choice"></transition>
|
38
|
+
</state>
|
39
|
+
<state id="choice" initial="unchosen"><!-- node-size-and-position x=20.0 y=203.00000000000006 w=209.99999999999997 h=173.0 -->
|
40
|
+
<transition event="drag" target="dragging"><!-- edge-path [dragging] x=160.0 y=138.0 --></transition>
|
41
|
+
<state id="unchosen"><!-- node-size-and-position x=20.0 y=42.99999999999994 w=90.0 h=30.0 -->
|
42
|
+
<transition cond="self.is_in?(:focused)" event="choose" target="chosen"><!-- edge-path [chosen] x=81.0 y=98.0 --></transition>
|
43
|
+
</state>
|
44
|
+
<state id="chosen"><!-- node-size-and-position x=20.0 y=122.99999999999994 w=90.0 h=30.0 -->
|
45
|
+
<transition event="unchoose" target="unchosen"><!-- edge-path [unchosen] x=61.0 y=98.0 --></transition>
|
46
|
+
</state>
|
47
|
+
<history id="H" type="deep"><!-- node-size-and-position x=170.0 y=42.99999999999994 w=20.0 h=20.0 --></history>
|
48
|
+
</state>
|
49
|
+
</state>
|
50
|
+
</parallel>
|
51
|
+
</scxml>
|
@@ -1,43 +1,34 @@
|
|
1
|
-
<scxml initial="initialized" name="AIO" version="0.9" xmlns="http://www.w3.org/2005/07/scxml"><!-- node-size-and-position x=0.0 y=0.0 w=
|
2
|
-
<state id="organized"><!-- node-size-and-position x=
|
3
|
-
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=
|
4
|
-
<transition event="present" target="presenting"><!-- edge-path [presenting] x=
|
1
|
+
<scxml initial="initialized" name="AIO" version="0.9" xmlns="http://www.w3.org/2005/07/scxml"><!-- node-size-and-position x=0.0 y=0.0 w=209.63793358560372 h=476.0 -->
|
2
|
+
<state id="organized"><!-- node-size-and-position x=60.0 y=123.0 w=80.0 h=30.0 -->
|
3
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=110.0 y=178.0 pointx=0.0 pointy=4.0 offsetx=-4.0 offsety=2.0 --></transition>
|
4
|
+
<transition event="present" target="presenting"><!-- edge-path [presenting] x=170.0 y=218.0 --></transition>
|
5
5
|
</state>
|
6
|
-
<state id="initialized"><!-- node-size-and-position x=
|
6
|
+
<state id="initialized"><!-- node-size-and-position x=60.0 y=43.0 w=80.0 h=30.0 -->
|
7
7
|
<transition event="organize" target="organized"></transition>
|
8
8
|
</state>
|
9
|
-
<state id="presenting" initial="defocused"><!-- node-size-and-position x=
|
9
|
+
<state id="presenting" initial="defocused"><!-- node-size-and-position x=20.0 y=283.0 w=160.0 h=173.0 -->
|
10
10
|
<onentry>
|
11
11
|
<invoke src="inform_parent_presenting" type="x-mint"></invoke>
|
12
12
|
</onentry>
|
13
|
-
<transition event="suspend" target="suspended"
|
14
|
-
<state id="defocused"><!-- node-size-and-position x=
|
15
|
-
<
|
16
|
-
<invoke src="sync_cio_to_displayed" type="x-mint"></invoke>
|
17
|
-
</onentry>
|
18
|
-
<transition event="focus" target="focused"><!-- edge-path [focused] x=160.0 y=90.0 --></transition>
|
13
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=90.0 y=258.0 --></transition>
|
14
|
+
<state id="defocused"><!-- node-size-and-position x=41.5 y=43.0 w=80.0 h=30.0 -->
|
15
|
+
<transition event="focus" target="focused"><!-- edge-path [focused] x=137.0 y=98.0 --></transition>
|
19
16
|
</state>
|
20
|
-
<state id="focused"><!-- node-size-and-position x=
|
21
|
-
<onentry>
|
22
|
-
<invoke src="sync_cio_to_highlighted" type="x-mint"></invoke>
|
23
|
-
</onentry>
|
17
|
+
<state id="focused"><!-- node-size-and-position x=41.5 y=123.0 w=80.0 h=30.0 -->
|
24
18
|
<transition cond="exists_next" event="next" target="defocused">
|
25
19
|
<invoke src="focus_next" type="x-mint"></invoke>
|
26
|
-
<!-- edge-path [defocused] x=
|
20
|
+
<!-- edge-path [defocused] x=77.0 y=98.0 --></transition>
|
27
21
|
<transition cond="exists_prev" event="prev" target="defocused">
|
28
22
|
<invoke src="focus_previous" type="x-mint"></invoke>
|
29
|
-
<!-- edge-path [defocused] x=
|
30
|
-
<transition event="parent" target="defocused">
|
23
|
+
<!-- edge-path [defocused] x=97.0 y=98.0 --></transition>
|
24
|
+
<transition cond="exists_parent" event="parent" target="defocused">
|
31
25
|
<invoke src="focus_parent" type="x-mint"></invoke>
|
32
|
-
<!-- edge-path [defocused] x=
|
33
|
-
<transition event="defocus" target="defocused"><!-- edge-path [defocused] x=
|
26
|
+
<!-- edge-path [defocused] x=57.0 y=98.0 --></transition>
|
27
|
+
<transition event="defocus" target="defocused"><!-- edge-path [defocused] x=117.0 y=98.0 --></transition>
|
34
28
|
</state>
|
35
29
|
</state>
|
36
|
-
<state id="suspended"><!-- node-size-and-position x=
|
37
|
-
<
|
38
|
-
|
39
|
-
</onentry>
|
40
|
-
<transition event="present" target="presenting"><!-- edge-path [presenting] x=290.0 y=140.0 --></transition>
|
41
|
-
<transition event="organize" target="organized"><!-- edge-path [organized] pointx=0.0 pointy=11.0 offsetx=2.0 offsety=-1.0 --></transition>
|
30
|
+
<state id="suspended"><!-- node-size-and-position x=60.0 y=203.0 w=80.0 h=30.0 -->
|
31
|
+
<transition event="present" target="presenting"><!-- edge-path [presenting] x=110.0 y=258.0 --></transition>
|
32
|
+
<transition event="organize" target="organized"><!-- edge-path [organized] x=90.0 y=178.0 pointx=0.0 pointy=11.0 offsetx=2.0 offsety=-1.0 --></transition>
|
42
33
|
</state>
|
43
34
|
</scxml>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<scxml initial="initialized" name="AIOUTContinuous" version="0.9" xmlns="http://www.w3.org/2005/07/scxml"><!-- node-size-and-position x=0.0 y=0.0 w=449.5 h=782.0 -->
|
2
|
+
<state id="initialized"><!-- node-size-and-position x=184.09468754677744 y=43.0 w=80.0 h=20.0 -->
|
3
|
+
<transition event="organize" target="organized"></transition>
|
4
|
+
</state>
|
5
|
+
<state id="organized"><!-- node-size-and-position x=189.09468754677744 y=113.0 w=70.0 h=20.0 -->
|
6
|
+
<transition event="present" target="presenting"><!-- edge-path [presenting] x=340.0 y=140.0 pointx=0.0 pointy=0.0 offsetx=2.0 offsety=0.0 --></transition>
|
7
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=234.09468754677746 y=158.0 pointx=0.0 pointy=34.0 offsetx=3.0 offsety=11.0 --></transition>
|
8
|
+
</state>
|
9
|
+
<state id="suspended"><!-- node-size-and-position x=189.09468754677746 y=183.0 w=70.0 h=20.0 -->
|
10
|
+
<transition event="organize" target="organized"><!-- edge-path [organized] x=214.09468754677746 y=158.0 pointx=0.0 pointy=43.0 offsetx=-3.0 offsety=-10.0 --></transition>
|
11
|
+
<transition event="present" target="presenting"><!-- edge-path [presenting] x=234.09468754677746 y=228.0 --></transition>
|
12
|
+
</state>
|
13
|
+
<parallel id="presenting"><!-- node-size-and-position x=20.0 y=253.0 w=429.5 h=509.0 -->
|
14
|
+
<onentry>
|
15
|
+
<script>
|
16
|
+
|
17
|
+
inform_parent_presenting;
|
18
|
+
@d = consume("data")
|
19
|
+
</script>
|
20
|
+
</onentry>
|
21
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=214.09468754677746 y=228.0 --></transition>
|
22
|
+
<state id="f" initial="defocused"><!-- node-size-and-position x=250.0 y=47.0 w=140.0 h=170.0 -->
|
23
|
+
<state id="focused"><!-- node-size-and-position x=42.31062490644507 y=124.0 w=60.0 h=20.0 -->
|
24
|
+
<transition event="defocus" target="defocused"><!-- edge-path [defocused] x=43.81062490644507 y=99.0 pointx=0.0 pointy=0.0 offsetx=-5.0 offsety=0.0 --></transition>
|
25
|
+
<transition cond="exists_next" event="next" target="defocused">
|
26
|
+
<invoke src="focus_next" type="x-mint"></invoke>
|
27
|
+
<!-- edge-path [defocused] x=83.81062490644507 y=99.0 --></transition>
|
28
|
+
<transition cond="exists_prev" event="prev" target="defocused">
|
29
|
+
<invoke src="focus_previous" type="x-mint"></invoke>
|
30
|
+
<!-- edge-path [defocused] x=103.81062490644507 y=99.0 --></transition>
|
31
|
+
<transition event="parent" target="defocused">
|
32
|
+
<invoke src="focus_parent" type="x-mint"></invoke>
|
33
|
+
<!-- edge-path [defocused] x=63.81062490644507 y=99.0 --></transition>
|
34
|
+
</state>
|
35
|
+
<state id="defocused"><!-- node-size-and-position x=42.31062490644507 y=54.0 w=60.0 h=20.0 -->
|
36
|
+
<transition event="focus" target="focused"><!-- edge-path [focused] x=123.81062490644507 y=99.0 --></transition>
|
37
|
+
</state>
|
38
|
+
</state>
|
39
|
+
<state id="p" initial="waiting"><!-- node-size-and-position x=20.0 y=43.0 w=198.37875018710986 h=446.0 -->
|
40
|
+
<state id="moving" initial="progressing"><!-- node-size-and-position x=20.0 y=133.0 w=158.37875018710983 h=293.0 -->
|
41
|
+
<transition event="halt" target="waiting"></transition>
|
42
|
+
<state id="progressing"><!-- node-size-and-position x=23.37875018710983 y=43.0 w=80.0 h=20.0 -->
|
43
|
+
<transition cond="@d==max" event="move" target="max"></transition>
|
44
|
+
<transition cond="@d<@data" event="move" target="regressing"><!-- edge-path [regressing] x=60.0 y=131.0 pointx=0.0 pointy=0.0 offsetx=0.0 offsety=-5.0 --></transition>
|
45
|
+
</state>
|
46
|
+
<state id="regressing"><!-- node-size-and-position x=58.37875018710983 y=183.0 w=70.0 h=20.0 -->
|
47
|
+
<transition cond="@d>@data" event="move" target="progressing"><!-- edge-path [progressing] x=30.0 y=131.0 pointx=0.0 pointy=0.0 offsetx=6.0 offsety=0.0 --></transition>
|
48
|
+
<transition cond="@d == min" event="move" target="min"></transition>
|
49
|
+
</state>
|
50
|
+
<state id="max"><!-- node-size-and-position x=108.37875018710983 y=113.0 w=30.0 h=20.0 -->
|
51
|
+
<transition cond="@d<data" event="move" target="regressing"></transition>
|
52
|
+
</state>
|
53
|
+
<state id="min"><!-- node-size-and-position x=45.37875018710983 y=253.0 w=30.0 h=20.0 -->
|
54
|
+
<transition cond="@d>data" event="move" target="progressing"><!-- edge-path [progressing] x=28.37875018710983 y=193.0 x=18.37875018710983 y=123.0 --></transition>
|
55
|
+
</state>
|
56
|
+
</state>
|
57
|
+
<state id="waiting"><!-- node-size-and-position x=64.18937509355491 y=43.0 w=70.0 h=40.0 -->
|
58
|
+
<onentry>
|
59
|
+
<script>stop_timeout</script>
|
60
|
+
</onentry>
|
61
|
+
<transition cond="@d>@data" event="move" target="progressing"><!-- edge-path [progressing] pointx=0.0 pointy=-30.0 offsetx=0.0 offsety=-18.0 --></transition>
|
62
|
+
<transition cond="@d<@data" event="move" target="regressing"><!-- edge-path [regressing] x=186.0 y=65.0 x=196.0 y=335.0 pointx=-1.0 pointy=11.0 offsetx=46.0 offsety=1.0 --></transition>
|
63
|
+
</state>
|
64
|
+
</state>
|
65
|
+
</parallel>
|
66
|
+
</scxml>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<scxml initial="initialized" name="AIReference" version="0.9" xmlns="http://www.w3.org/2005/07/scxml"><!-- node-size-and-position x=0.0 y=0.0 w=390.0 h=220.0 -->
|
2
|
+
<state id="initialized"><!-- node-size-and-position x=20.0 y=40.0 w=80.0 h=30.0 -->
|
3
|
+
<transition event="organize" target="organized"></transition>
|
4
|
+
</state>
|
5
|
+
<state id="organized"><!-- node-size-and-position x=160.0 y=40.0 w=80.0 h=30.0 -->
|
6
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=270.0 y=80.0 --></transition>
|
7
|
+
<transition event="present" target="presenting"></transition>
|
8
|
+
</state>
|
9
|
+
<state id="suspended"><!-- node-size-and-position x=300.0 y=40.0 w=80.0 h=30.0 -->
|
10
|
+
<transition event="present" target="presenting"></transition>
|
11
|
+
<transition event="organize" target="organized"><!-- edge-path [organized] x=257.0 y=56.0 --></transition>
|
12
|
+
</state>
|
13
|
+
<state id="presenting" initial="defocused"><!-- node-size-and-position x=60.0 y=120.0 w=270.0 h=90.0 -->
|
14
|
+
<onentry>
|
15
|
+
<invoke src="inform_parent_presenting" type="x-mint"></invoke>
|
16
|
+
</onentry>
|
17
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=360.0 y=100.0 --></transition>
|
18
|
+
<state id="defocused"><!-- node-size-and-position x=10.0 y=40.0 w=80.0 h=30.0 -->
|
19
|
+
<transition event="focus" target="focused"></transition>
|
20
|
+
</state>
|
21
|
+
<state id="focused"><!-- node-size-and-position x=180.0 y=40.0 w=80.0 h=30.0 -->
|
22
|
+
<transition cond="refers == nil" target="defocused"><!-- edge-path [defocused] x=130.0 y=80.0 --></transition>
|
23
|
+
<transition cond="refers != nil" target="defocused">
|
24
|
+
<script> refers.process_event(:focus) </script>
|
25
|
+
<!-- edge-path [defocused] x=130.0 y=30.0 --></transition>
|
26
|
+
</state>
|
27
|
+
</state>
|
28
|
+
</scxml>
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<scxml initial="initialized" name="AISingleChoice" version="0.9" xmlns="http://www.w3.org/2005/07/scxml"><!-- node-size-and-position x=0.0 y=0.0 w=450.0 h=690.0 -->
|
2
|
+
<state id="initialized"><!-- node-size-and-position x=178.25 y=43.0 w=90.0 h=30.0 -->
|
3
|
+
<transition event="organize" target="organized"></transition>
|
4
|
+
</state>
|
5
|
+
<state id="organized"><!-- node-size-and-position x=178.25 y=123.0 w=90.0 h=30.0 -->
|
6
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=233.25 y=178.0 --></transition>
|
7
|
+
<transition event="present" target="p"><!-- edge-path [p] x=298.25 y=218.0 pointx=0.0 pointy=0.0 offsetx=1.0 offsety=0.0 --></transition>
|
8
|
+
</state>
|
9
|
+
<state id="suspended"><!-- node-size-and-position x=178.25 y=203.0 w=90.0 h=30.0 -->
|
10
|
+
<transition event="organize" target="organized"><!-- edge-path [organized] x=213.25 y=178.0 --></transition>
|
11
|
+
<transition event="present" target="p"><!-- edge-path [p] x=233.25 y=258.0 --></transition>
|
12
|
+
</state>
|
13
|
+
<parallel id="p"><!-- node-size-and-position x=20.0 y=280.0 w=410.0 h=380.0 -->
|
14
|
+
<onentry>
|
15
|
+
<invoke src="inform_parent_presenting" type="x-mint"></invoke>
|
16
|
+
</onentry>
|
17
|
+
<onexit>
|
18
|
+
<invoke src="suspend_children" type="x-mint"></invoke>
|
19
|
+
</onexit>
|
20
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=213.25 y=258.0 --></transition>
|
21
|
+
<state id="presenting" initial="wait_for_children"><!-- node-size-and-position x=20.0 y=40.0 w=220.0 h=300.0 -->
|
22
|
+
<state id="defocused"><!-- node-size-and-position x=40.5 y=160.0 w=90.0 h=30.0 -->
|
23
|
+
<transition event="focus" target="focused"><!-- edge-path [focused] x=161.0 y=215.0 --></transition>
|
24
|
+
</state>
|
25
|
+
<state id="focused"><!-- node-size-and-position x=40.5 y=240.0 w=90.0 h=30.0 -->
|
26
|
+
<transition event="defocus" target="defocused"><!-- edge-path [defocused] x=141.0 y=215.0 --></transition>
|
27
|
+
<transition event="parent" target="defocused">
|
28
|
+
<invoke src="focus_parent" type="x-mint"></invoke>
|
29
|
+
<!-- edge-path [defocused] x=81.0 y=215.0 --></transition>
|
30
|
+
<transition cond="exists_prev" event="prev" target="defocused">
|
31
|
+
<invoke src="focus_previous" type="x-mint"></invoke>
|
32
|
+
<!-- edge-path [defocused] x=101.0 y=215.0 --></transition>
|
33
|
+
<transition cond="exists_next" event="next" target="defocused">
|
34
|
+
<invoke src="focus_next" type="x-mint"></invoke>
|
35
|
+
<!-- edge-path [defocused] x=121.0 y=215.0 pointx=0.0 pointy=14.0 offsetx=2.0 offsety=-2.0 --></transition>
|
36
|
+
<transition event="child" target="defocused">
|
37
|
+
<invoke src="focus_child" type="x-mint"></invoke>
|
38
|
+
<!-- edge-path [defocused] x=61.0 y=215.0 --></transition>
|
39
|
+
</state>
|
40
|
+
<state id="wait_for_children"><!-- node-size-and-position x=10.0 y=40.0 w=100.0 h=40.0 -->
|
41
|
+
<transition event="children_finished" target="children_finished"></transition>
|
42
|
+
</state>
|
43
|
+
<state id="children_finished"><!-- node-size-and-position x=110.0 y=100.0 w=100.0 h=40.0 -->
|
44
|
+
<transition target="defocused"></transition>
|
45
|
+
</state>
|
46
|
+
</state>
|
47
|
+
<state id="dropping" initial="listing"><!-- node-size-and-position x=256.5 y=43.0 w=130.0 h=173.0 -->
|
48
|
+
<state id="listing"><!-- node-size-and-position x=20.0 y=43.0 w=90.0 h=30.0 -->
|
49
|
+
<transition cond="self.is_in?(:focused)" event="drop" target="dropped">
|
50
|
+
<script> @aios = MINT::AISingleChoiceElement.all(:new_states=> /#{Regexp.quote("dragging")}/); add(@aios); @aios.each do |aio| aio.process_event :drop end</script>
|
51
|
+
<!-- edge-path [dropped] x=70.0 y=98.0 --></transition>
|
52
|
+
</state>
|
53
|
+
<state id="dropped"><!-- node-size-and-position x=25.0 y=123.0 w=80.0 h=30.0 -->
|
54
|
+
<transition target="listing">
|
55
|
+
<script> self.process_event(:defocus); @aios.each do |aio| aio.process_event :focus end </script>
|
56
|
+
<!-- edge-path [listing] x=50.0 y=98.0 --></transition>
|
57
|
+
</state>
|
58
|
+
</state>
|
59
|
+
</parallel>
|
60
|
+
</scxml>
|
@@ -1,71 +1,56 @@
|
|
1
|
-
<scxml initial="initialized" name="AISingleChoiceElement" version="0.9" xmlns="http://www.w3.org/2005/07/scxml"><!-- node-size-and-position x=0.0 y=0.0 w=
|
2
|
-
<state id="initialized"><!-- node-size-and-position x=
|
1
|
+
<scxml initial="initialized" name="AISingleChoiceElement" version="0.9" xmlns="http://www.w3.org/2005/07/scxml"><!-- node-size-and-position x=0.0 y=0.0 w=589.375 h=692.0 -->
|
2
|
+
<state id="initialized"><!-- node-size-and-position x=489.375 y=43.0 w=80.0 h=20.0 -->
|
3
3
|
<transition event="organize" target="organized"></transition>
|
4
4
|
</state>
|
5
|
-
<state id="organized"><!-- node-size-and-position x=
|
6
|
-
<transition event="present" target="
|
7
|
-
<transition event="suspend" target="suspended"
|
5
|
+
<state id="organized"><!-- node-size-and-position x=489.375 y=113.0 w=80.0 h=20.0 -->
|
6
|
+
<transition event="present" target="p"><!-- edge-path [p] pointx=0.0 pointy=0.0 offsetx=0.0 offsety=-5.0 --></transition>
|
7
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=474.5797158237743 y=394.91215480012886 pointx=0.0 pointy=0.0 offsetx=50.0 offsety=0.0 --></transition>
|
8
8
|
</state>
|
9
|
-
<state id="
|
10
|
-
<transition event="
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
<!-- edge-path [defocused] x=
|
21
|
-
|
22
|
-
|
23
|
-
<!-- edge-path [defocused] x=
|
24
|
-
|
25
|
-
|
26
|
-
<!-- edge-path [defocused] x=
|
27
|
-
<transition event="drag" target="dragging">
|
28
|
-
<invoke src="choose" type="x-mint"></invoke>
|
29
|
-
<!-- edge-path [dragging] x=230.0 y=140.0 --></transition>
|
30
|
-
</state>
|
31
|
-
<state id="defocused"><!-- node-size-and-position x=10.0 y=50.0 w=60.0 h=20.0 -->
|
32
|
-
<onentry>
|
33
|
-
<invoke src="sync_cio_to_displayed" type="x-mint"></invoke>
|
34
|
-
</onentry>
|
35
|
-
<transition event="focus" target="focused"><!-- edge-path [focused] x=130.0 y=37.0 --></transition>
|
36
|
-
</state>
|
37
|
-
<state id="dragging"><!-- node-size-and-position x=110.0 y=130.0 w=60.0 h=20.0 -->
|
38
|
-
<onentry>
|
39
|
-
<invoke src="sync_cio_to_highlighted" type="x-mint"></invoke>
|
40
|
-
</onentry>
|
41
|
-
<transition event="drop" target="defocused"><!-- edge-path [defocused] x=40.0 y=140.0 pointx=0.0 pointy=0.0 offsetx=30.0 offsety=0.0 --></transition>
|
42
|
-
</state>
|
9
|
+
<state id="suspended"><!-- node-size-and-position x=365.375 y=652.0 w=60.0 h=20.0 -->
|
10
|
+
<transition event="organize" target="organized"><!-- edge-path [organized] x=455.17028417622566 y=390.08784519987114 pointx=0.0 pointy=0.0 offsetx=73.0 offsety=0.0 --></transition>
|
11
|
+
<transition event="present" target="p"><!-- edge-path [p] x=368.9307280900008 y=631.4721359549997 --></transition>
|
12
|
+
</state>
|
13
|
+
<parallel id="p"><!-- node-size-and-position x=20.0 y=183.0 w=480.75 h=419.0 -->
|
14
|
+
<transition event="suspend" target="suspended"><!-- edge-path [suspended] x=386.81927190999915 y=622.5278640450005 --></transition>
|
15
|
+
<state id="presenting" initial="defocused"><!-- node-size-and-position x=300.75 y=43.0 w=160.0 h=153.0 -->
|
16
|
+
<state id="focused"><!-- node-size-and-position x=51.5 y=113.0 w=60.0 h=20.0 -->
|
17
|
+
<transition event="defocus" target="defocused"><!-- edge-path [defocused] x=77.0 y=88.0 --></transition>
|
18
|
+
<transition event="parent" target="defocused">
|
19
|
+
<invoke src="focus_parent" type="x-mint"></invoke>
|
20
|
+
<!-- edge-path [defocused] x=57.0 y=88.0 --></transition>
|
21
|
+
<transition cond="exists_prev" event="prev" target="defocused">
|
22
|
+
<invoke src="focus_previous" type="x-mint"></invoke>
|
23
|
+
<!-- edge-path [defocused] x=97.0 y=88.0 --></transition>
|
24
|
+
<transition cond="exists_next" event="next" target="defocused">
|
25
|
+
<invoke src="focus_next" type="x-mint"></invoke>
|
26
|
+
<!-- edge-path [defocused] x=117.0 y=88.0 --></transition>
|
43
27
|
</state>
|
44
|
-
<state id="
|
45
|
-
<
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
28
|
+
<state id="defocused"><!-- node-size-and-position x=51.5 y=43.0 w=60.0 h=20.0 -->
|
29
|
+
<transition event="focus" target="focused"><!-- edge-path [focused] x=137.0 y=88.0 --></transition>
|
30
|
+
</state>
|
31
|
+
</state>
|
32
|
+
<state id="c" initial="choice"><!-- node-size-and-position x=20.0 y=43.0 w=221.5 h=356.0 -->
|
33
|
+
<state id="dragging"><!-- node-size-and-position x=80.75 y=43.0 w=60.0 h=20.0 -->
|
34
|
+
<transition event="drop" target="dropped"></transition>
|
35
|
+
</state>
|
36
|
+
<state id="dropped"><!-- node-size-and-position x=50.75 y=113.0 w=60.0 h=20.0 -->
|
37
|
+
<transition target="choice"></transition>
|
38
|
+
</state>
|
39
|
+
<state id="choice" initial="unchosen"><!-- node-size-and-position x=20.0 y=183.0 w=181.5 h=153.0 -->
|
40
|
+
<transition event="drag" target="dragging">
|
41
|
+
<invoke src="remove_from_choice" type="x-mint"></invoke>
|
42
|
+
<!-- edge-path [dragging] x=140.75 y=123.0 --></transition>
|
43
|
+
<state id="unchosen"><!-- node-size-and-position x=100.0 y=43.0 w=60.0 h=20.0 -->
|
44
|
+
<transition cond="self.is_in?(:focused)" event="choose" target="chosen"><!-- edge-path [chosen] x=144.0 y=88.0 --></transition>
|
50
45
|
</state>
|
51
|
-
<state id="chosen"><!-- node-size-and-position x=
|
46
|
+
<state id="chosen"><!-- node-size-and-position x=100.0 y=113.0 w=60.0 h=20.0 -->
|
52
47
|
<onentry>
|
53
|
-
<invoke src="sync_cio_to_selected" type="x-mint"></invoke>
|
54
48
|
<invoke src="unchoose_others" type="x-mint"></invoke>
|
55
49
|
</onentry>
|
56
|
-
<transition event="unchoose" target="unchosen"
|
50
|
+
<transition event="unchoose" target="unchosen"><!-- edge-path [unchosen] x=124.0 y=88.0 --></transition>
|
57
51
|
</state>
|
58
|
-
<history id="H" type="deep"><!-- node-size-and-position x=
|
59
|
-
<transition target="unchosen"></transition>
|
60
|
-
</history>
|
52
|
+
<history id="H" type="deep"><!-- node-size-and-position x=20.0 y=43.0 w=20.0 h=20.0 --></history>
|
61
53
|
</state>
|
62
|
-
</
|
63
|
-
</
|
64
|
-
<state id="suspended"><!-- node-size-and-position x=210.25 y=40.0 w=60.0 h=20.0 -->
|
65
|
-
<onentry>
|
66
|
-
<invoke src="sync_cio_to_hidden" type="x-mint"></invoke>
|
67
|
-
</onentry>
|
68
|
-
<transition event="present" target="p_t"><!-- edge-path [p_t] x=290.0 y=80.0 --></transition>
|
69
|
-
<transition event="organize" target="organized"><!-- edge-path [organized] x=140.0 y=50.0 --></transition>
|
70
|
-
</state>
|
54
|
+
</state>
|
55
|
+
</parallel>
|
71
56
|
</scxml>
|