[.f] Functions¶ ↑
{{parent: f.rpo}}
The component shall provide the following functions:
-
[[.load]];
-
[[.query]];
-
[[.check]].
[.load] Load repository¶ ↑
The component shall provide load repository
function.
Inputs:
-
NO
Outputs:
-
[[f.req.e.e]]
Sequence
-
Load all the [[f.req.e.f]] from [[..e]].
-
Build hierarchy according to
parent
andorder_index
metadata attributes (see [[f.req.e.f.met]] for details). -
Return [[f.req.e.e]].
[.query] Query repository¶ ↑
The component shall provide query repository
function.
Inputs:
-
query
, String, required, represents Ruby language expression foreval
function
Outputs:
-
query_result
, Array[[]], array of requirements that match to thequery
input parameter
Sequence
The functions finds all the requirements that match to the query
input parameter, packs those to array and returns the array.
[.check] Check for errors¶ ↑
The component shall provide check repository
function.
Inputs:
-
[[f.req.e.e]]
Outputs:
-
errors
, TBD
Sequence
-
Create empty output
errors
. -
Call [[.dup]] and place the output to
errors
. -
Call [[.wrong.parent]] and place the output to
errors
. -
Call [[.wrong.order]] and place the output to
errors
. -
Call [[.wrong.links]] and place the output to
errors
. -
Return
errors
.
[.dup] Find non-unique IDs¶ ↑
{{status: tbd}}
[.wrong.parent] Find wrong parents¶ ↑
{{status: tbd}}
[.wrong.order] Find wrong order¶ ↑
{{status: tbd}}
[.wrong.links] Find wrong links¶ ↑
{{status: tbd}}