File: asm-input.scxml

package info (click to toggle)
camitk 5.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 358,388 kB
  • sloc: cpp: 86,984; xml: 1,295; sh: 1,280; ansic: 142; makefile: 112; perl: 84; sed: 20
file content (123 lines) | stat: -rw-r--r-- 4,670 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?xml version="1.0" encoding="UTF-8"?>
<scxml initial="Initialize" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camitk="http://camitk.imag.fr/3/asm" xsi:schemaLocation="http://camitk.imag.fr/3/smallScxml/../resources/smallScxml.xsd" xmlns="http://camitk.imag.fr/3/smallScxml">
 <state id="Initialize">
  <onentry>
   <camitk:onState>
       <camitk:description><![CDATA[This pipeline will only check the "Hard-Coded Action Pipeline" action. This specific action ir running a hard-coded pipeline that resize an image and apply an Otsu filter on the result.<br/>This pipeline therefore just do:<br/> <ul><li>Open</li><li></li><li>Hard-Coded Action Pipeline</li><li>Save As</li></ul>]]></camitk:description>
   </camitk:onState>
  </onentry>
  <transition target="Open Input Image" event="Next"/>
 </state>
 <state id="Open Input Image">
  <onentry>
   <camitk:onState>
    <camitk:description>Open data (component) from a file</camitk:description>
    <camitk:action>
     <camitk:name>Open File</camitk:name>
     <camitk:parameters>
      <camitk:parameter name="File Name" value="input-1.mha" type="QString"/>
     </camitk:parameters>
     <camitk:outputs>
      <camitk:component name="input-1.mha" type="ImageComponent"/>
     </camitk:outputs>
    </camitk:action>
   </camitk:onState>
  </onentry>
  <transition target="Initialize" event="Back"/>
  <transition target="Apply Hard-Coded Pipeline" event="Next"/>
 </state>
 <state id="Apply Hard-Coded Pipeline">
  <onentry>
   <camitk:onState>
    <camitk:description>&lt;p> Demonstrate how to call one or more actions from another action (that is, implement a hard-coded action pipeline without modifying anything of the called actions).&lt;/p></camitk:description>
    <camitk:action>
     <camitk:name>Hard-Coded Action Pipeline</camitk:name>
     <camitk:parameters>
      <camitk:parameter name="Resample Factor" value="0.5" type="double"/>
     </camitk:parameters>
     <camitk:inputs>
      <camitk:component name="input-1.mha" type="ImageComponent"/>
     </camitk:inputs>
     <camitk:outputs>
         <camitk:component name="output-1.mha" type="ImageComponent"/>
     </camitk:outputs>
    </camitk:action>
   </camitk:onState>
  </onentry>
  <transition target="Open Input Image" event="Back">
   <onTransition>
    <camitk:close>
     <camitk:component name="input-1.mha" type="ImageComponent"/>
    </camitk:close>
   </onTransition>
  </transition>
  <transition target="Save Pipeline Result as output-1.mha" event="Next"/>
 </state>
 <state id="Save Pipeline Result as output-1.mha">
  <onentry>
   <camitk:onState>
    <camitk:description>Save the currently selected data under a different filename or format</camitk:description>
    <camitk:action>
     <camitk:name>Save</camitk:name>
     <camitk:parameters/>
     <camitk:inputs>
      <camitk:component name="output-1.mha" type="ImageComponent"/>
     </camitk:inputs>
    </camitk:action>
   </camitk:onState>
  </onentry>
  <transition target="Apply Hard-Coded Pipeline" event="Back">
   <onTransition>
    <camitk:close>
     <camitk:component name="output-1.mha" type="ImageComponent"/>
    </camitk:close>
   </onTransition>
  </transition>
  <transition target="Close input-1.mha" event="Next"/>
 </state>
 <state id="Close input-1.mha">
  <onentry>
   <camitk:onState>
    <camitk:description>Close the currently selected components</camitk:description>
    <camitk:action>
     <camitk:name>Close</camitk:name>
     <camitk:parameters/>
     <camitk:inputs>
      <camitk:component name="input-1.mha" type="ImageComponent"/>
     </camitk:inputs>
    </camitk:action>
   </camitk:onState>
  </onentry>
  <transition target="Save Pipeline Result as output-1.mha" event="Back"/>
  <transition target="Close output-1.mha" event="Next"/>
 </state>
 <state id="Close output-1.mha">
  <onentry>
   <camitk:onState>
    <camitk:description>Close the currently selected components</camitk:description>
    <camitk:action>
     <camitk:name>Close</camitk:name>
     <camitk:parameters/>
     <camitk:inputs>
      <camitk:component name="output-1.mha" type="ImageComponent"/>
     </camitk:inputs>
    </camitk:action>
   </camitk:onState>
  </onentry>
  <transition target="Close input-1.mha" event="Back"/>
  <transition target="Bye" event="Next"/>
 </state>

 <state id="Bye" final="true">
  <onentry>
   <camitk:onState>
    <camitk:description><![CDATA[Thanks you for using the CamiTK Action State Machine !]]></camitk:description>
   </camitk:onState>
  </onentry>
  <transition target="Initialize" event="Back to the beginning">
   <onTransition>
    <camitk:close/>
   </onTransition>
  </transition>
 </state>
</scxml>