File: nested_formula.xml

package info (click to toggle)
scram 0.16.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,016 kB
  • sloc: xml: 120,766; cpp: 23,966; python: 1,256; ansic: 100; makefile: 9
file content (64 lines) | stat: -rw-r--r-- 1,621 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0"?>

<opsa-mef>
  <define-initiating-event name="I" event-tree="simple"/>
  <define-event-tree name="simple">
    <define-functional-event name="F"/>
    <define-functional-event name="T"/>
    <define-sequence name="Success"/>
    <define-sequence name="Failure"/>
    <define-branch name="B">
      <fork functional-event="T">
        <path state="true">
          <collect-formula>
            <not><gate name="G2"/></not>
          </collect-formula>
          <sequence name="Success"/>
        </path>
        <path state="false">
          <collect-formula>
            <gate name="G2"/>
          </collect-formula>
          <sequence name="Failure"/>
        </path>
      </fork>
    </define-branch>
    <initial-state>
      <fork functional-event="F">
        <path state="true">
          <collect-formula>
            <not>
              <gate name="G1"/>
            </not>
          </collect-formula>
          <branch name="B"/>
        </path>
        <path state="false">
          <collect-formula>
            <gate name="G1"/>
          </collect-formula>
          <branch name="B"/>
        </path>
      </fork>
    </initial-state>
  </define-event-tree>
  <define-fault-tree name="FaultTree">
    <define-gate name="G1">
      <not>
        <event name="B"/>
      </not>
    </define-gate>
    <define-gate name="G2">
      <not>
        <not>
          <event name="B"/>
        </not>
      </not>
    </define-gate>
  </define-fault-tree>
  <model-data>
    <define-basic-event name="B">
      <float value="0.5"/>
    </define-basic-event>
  </model-data>
</opsa-mef>