File: substitutions.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 (73 lines) | stat: -rw-r--r-- 1,995 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
65
66
67
68
69
70
71
72
73
<?xml version="1.0"?>
<opsa-mef name="TwoTrains">
  <define-fault-tree name="TwoTrains">
    <define-gate name="TopEvent">
      <and>
        <event name="TrainOne"/>
        <event name="TrainTwo"/>
      </and>
    </define-gate>
    <define-gate name="TrainOne">
      <or>
        <event name="ValveOne"/>
        <event name="PumpOne"/>
      </or>
    </define-gate>
    <define-gate name="TrainTwo">
      <or>
        <event name="ValveTwo"/>
        <event name="PumpTwo"/>
      </or>
    </define-gate>
    <define-basic-event name="ValveOne">
      <float value="0.5"/>
    </define-basic-event>
    <define-basic-event name="ValveTwo">
      <float value="0.5"/>
    </define-basic-event>
    <define-basic-event name="PumpOne">
      <float value="0.7"/>
    </define-basic-event>
    <define-basic-event name="PumpTwo">
      <float value="0.7"/>
    </define-basic-event>
  </define-fault-tree>
  <define-substitution name="ExclusiveValves" type="delete-terms">
    <hypothesis>
      <and>
        <basic-event name="ValveOne"/>
        <basic-event name="ValveTwo"/>
      </and>
    </hypothesis>
    <target>
      <constant value="false"/>
    </target>
  </define-substitution>
  <define-substitution name="RecoverPumps" type="recovery-rule">
    <hypothesis>
      <and>
        <basic-event name="PumpOne"/>
        <basic-event name="PumpTwo"/>
      </and>
    </hypothesis>
    <target>
      <basic-event name="HotBackupPump"/>
    </target>
  </define-substitution>
  <define-substitution name="ColdBackupInitiation">
    <hypothesis>
      <basic-event name="HotBackupPump"/> <!-- Declarative implication -->
    </hypothesis>
    <target>
      <basic-event name="ColdBackupPump"/>
    </target>
  </define-substitution>
  <model-data>
    <define-basic-event name="HotBackupPump">
      <float value="0.7"/>
    </define-basic-event>
    <define-basic-event name="ColdBackupPump">
      <float value="0.9"/>
    </define-basic-event>
  </model-data>
</opsa-mef>