Files
ARCADIA-Studio/harness/fixtures/release1-native/state-actions.arcadia
T

105 lines
6.1 KiB
Plaintext

arcadia 5;
project native_state_actions "Native QA — state actions and recovery" id "f0060906-0000-4000-8000-000000000000" {
description "Isolated deterministic QA fixture. No user data. Preserve this pristine file; use a trial copy for edits.";
sa_system controller "Pressure controller" id "f0060906-0000-4000-8000-000000000001" {}
sa_state_machine operating "Pressure operation" id "f0060906-0000-4000-8000-000000000002" { parent @controller; }
sa_region main_region "Main region" id "f0060906-0000-4000-8000-000000000003" { parent @operating; }
sa_state ready "Ready" id "f0060906-0000-4000-8000-000000000004" {
parent @main_region;
kind State;
entry "Retained entry notes";
do_activity "";
exit "";
}
sa_region monitoring_region "Monitoring region" id "f0060906-0000-4000-8000-000000000005" { parent @ready; }
sa_state sampling "Sampling" id "f0060906-0000-4000-8000-000000000006" { parent @monitoring_region; kind State; }
sa_state idle "Idle" id "f0060906-0000-4000-8000-000000000007" { parent @main_region; kind State; }
sa_initial start "Start" id "f0060906-0000-4000-8000-000000000008" { parent @main_region; kind Initial; }
sa_initial start_monitoring "Start monitoring" id "f0060906-0000-4000-8000-000000000009" { parent @monitoring_region; kind Initial; }
sa_function restore_settings "Restore settings" id "f0060906-0000-4000-8000-000000000010" {
description "Referenced Entry work. This function is not contained in Ready.";
}
sa_function monitor_pressure "Monitor pressure" id "f0060906-0000-4000-8000-000000000011" {
description "Referenced Do work. This function is not contained in Ready.";
}
sa_function release_resources "Release resources" id "f0060906-0000-4000-8000-000000000012" {
description "Referenced Exit work. This function is not contained in Ready.";
}
sa_event sample_tick "Sample tick" id "f0060906-0000-4000-8000-000000000013" {
body { Time { kind After; expression "1 s"; }; };
}
sa_data_type retry_budget "Retry budget" id "f0060906-0000-4000-8000-000000000014" {
definition { Integer { minimum 0; maximum 4; }; };
default none;
unit "attempts";
}
allocation performs_restore "Performs restore" id "f0060906-0000-4000-8000-000000000020" { source @controller; target @restore_settings; }
allocation performs_monitor "Performs monitoring" id "f0060906-0000-4000-8000-000000000021" { source @controller; target @monitor_pressure; }
allocation performs_release "Performs release" id "f0060906-0000-4000-8000-000000000022" { source @controller; target @release_resources; }
state_action on_entry "Entry work link" id "f0060906-0000-4000-8000-000000000030" { source @ready; target @restore_settings; phase Entry; }
state_action while_ready "Do work link" id "f0060906-0000-4000-8000-000000000031" { source @ready; target @monitor_pressure; phase Do; }
state_action on_exit "Exit work link" id "f0060906-0000-4000-8000-000000000032" { source @ready; target @release_resources; phase Exit; }
state_transition refresh_status "Refresh status" id "f0060906-0000-4000-8000-000000000033" {
source @ready; target @ready;
transition_kind Internal;
triggers [@sample_tick]; trigger "";
guard "pressure_valid";
effects [@monitor_pressure]; effect "Update status display";
}
state_transition initialize "Initialize" id "f0060906-0000-4000-8000-000000000034" {
source @start; target @ready;
transition_kind External;
triggers []; trigger ""; guard ""; effects []; effect "";
}
state_transition initialize_monitoring "Initialize monitoring" id "f0060906-0000-4000-8000-000000000035" {
source @start_monitoring; target @sampling;
transition_kind External;
triggers []; trigger ""; guard ""; effects []; effect "";
}
state_transition finish_monitoring "Finish monitoring" id "f0060906-0000-4000-8000-000000000036" {
source @ready; target @idle;
transition_kind External;
triggers []; trigger ""; guard "shutdown_requested"; effects []; effect "";
}
diagram state_view "Pressure operation — saved state view" id "f0060906-0000-4000-8000-000000000100" {
layer Sa;
projection { StateMachine { machine @operating; }; };
description "Ready has prose, three typed action rows, an internal transition and a nested region. Work functions are deliberately not placed here.";
}
node view_machine id "f0060906-0000-4000-8000-000000000102" {
diagram @state_view; element @operating;
position { x 40; y 40; }; size { width 1030; height 800; }; collapsed false;
}
node view_main id "f0060906-0000-4000-8000-000000000103" {
diagram @state_view; element @main_region;
position { x 64; y 104; }; size { width 982; height 712; }; collapsed false;
}
node view_ready id "f0060906-0000-4000-8000-000000000104" {
diagram @state_view; element @ready;
position { x 160; y 180; }; size { width 590; height 570; }; collapsed false;
}
node view_monitoring id "f0060906-0000-4000-8000-000000000105" {
diagram @state_view; element @monitoring_region;
position { x 184; y 430; }; size { width 542; height 296; }; collapsed false;
}
node view_sampling id "f0060906-0000-4000-8000-000000000106" {
diagram @state_view; element @sampling;
position { x 286; y 520; }; size { width 224; height 94; }; collapsed false;
}
node view_idle id "f0060906-0000-4000-8000-000000000107" {
diagram @state_view; element @idle;
position { x 780; y 250; }; size { width 224; height 94; }; collapsed false;
}
node view_start id "f0060906-0000-4000-8000-000000000108" {
diagram @state_view; element @start;
position { x 105; y 210; }; size { width 16; height 16; }; collapsed false;
}
node view_monitor_start id "f0060906-0000-4000-8000-000000000109" {
diagram @state_view; element @start_monitoring;
position { x 220; y 550; }; size { width 16; height 16; }; collapsed false;
}
}