Skip to content

Commit 1ad1006

Browse files
authored
Merge pull request #46 from rakhimov/minor-fixes
Minor fixes
2 parents 5a1caee + 572ea19 commit 1ad1006

File tree

11 files changed

+13
-14
lines changed

11 files changed

+13
-14
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ script:
3636
- docker run mef/make
3737
- docker cp $(docker ps -alq):mef/build ./
3838

39-
after_script:
4039
- trang mef/schema/mef.rnc _check_mef.rng
4140
- trang mef/schema/mef.rnc _check_mef.xsd
4241
- xmllint --noout --relaxng _check_mef.rng mef-examples/Baobab/*.xml

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ RNC schema of the fault tree specification:
9494
Fault tree diagram
9595
9696
97-
.. table:: The fault tree specifiction
97+
.. table:: The fault tree specification
9898
:name: table_fault_tree
9999
100100
+-------+------+

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def open(filename):
225225

226226
# If true, links to the reST sources are added to the pages.
227227
#
228-
# html_show_sourcelink = True
228+
html_show_sourcelink = False
229229

230230
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
231231
#

mef/fault_tree_layer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ This description deserves some comments.
147147
it is often convenient to use variables in formulae before declaring them.
148148
The Model Exchange Format, therefore, refers to variables with the generic term "event",
149149
possibly without a "type" attribute.
150-
- By default, the value of a house is event is "false".
151-
So it is not necessary to associate a value with a house event when declaring it.
150+
- By default, the value of a house is event is "false",
151+
so it is not necessary to associate a value with a house event when declaring it.
152152
We shall see in :numref:`instructions` how to change the value of a house event.
153153
- Although events are typed (they are either gates, house events or basic events),
154154
two different events cannot have the same name (within the same name space),
@@ -169,7 +169,7 @@ The attribute "role" is used to declare whether an element is public or private,
169169
i.e., whether it can be referred by its name everywhere in the model
170170
or only within its inner most container.
171171
This point will be further explained in the next section.
172-
This attribute is optional for by default all elements are public.
172+
This attribute is optional, for by default, all elements are public.
173173

174174
The fault tree pictured in :numref:`fig_fault_tree` is described in :numref:`xml_fault_tree`.
175175
In this representation, the house event "h1" has by default the value "true".

mef/meta_logical_layer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Meta-Logical Layer
55
******************
66

7-
The meta-logical layer is populated constructs
7+
The meta-logical layer is populated with constructs
88
like common cause groups, delete terms, recovery rules,
99
and exchange events that are used to give flavors to fault trees.
1010
This chapter reviews all these constructs.

mef/schema/expressions.rnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ int =
4242

4343
float =
4444
element float {
45-
attribute value { xsd:float }
45+
attribute value { xsd:double }
4646
}

mef/schema/formula.rnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ formula =
99
| element nand { formula+ }
1010
| element nor { formula+ }
1111
| element atleast {
12-
attribute min { xsd:nonNegativeInteger },
12+
attribute min { xsd:positiveInteger },
1313
formula+
1414
}
1515
| element cardinality {

mef/schema/mission_phase.rnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ alignment-definition =
66
phase-definition =
77
element define-phase {
88
name,
9-
attribute time-fraction { xsd:float },
9+
attribute time-fraction { xsd:double },
1010
label?,
1111
attributes?,
1212
instruction*

mef/schema/model.rnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ model =
1414
| fault-tree-definition
1515
| substitution-definition
1616
| CCF-group-definition
17-
| include-directive)*,
17+
| include-directive)*
1818
}

mef/schema/statistical_measure.rnc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ statistical-measure =
2828

2929
quantiles =
3030
element quantiles {
31-
attribute number { xsd:nonNegativeInteger },
31+
attribute number { xsd:positiveInteger },
3232
quantile+
3333
}
3434

3535
quantile = element quantile { bin-data }
3636

3737
bin-data =
38-
attribute number { xsd:nonNegativeInteger },
38+
attribute number { xsd:positiveInteger },
3939
attribute mean { xsd:double }?,
4040
attribute lower-bound { xsd:double }?,
4141
attribute upper-bound { xsd:double }?

0 commit comments

Comments
 (0)