verifMapping
verifMapping(g_sessionId g_reqsList g_impsList[g_operation] ) => t / nil
Description
Maps one or more requirements to one or more implementations in a Verifier session. Each of the requirement map objects can include the cellview, run, test, and output information. This function is also used to modify or delete the existing requirement-implementation mappings. For example, if the requirements list is empty, all the mapping information for the specified implementations is deleted.
Arguments
Value Returned
|
The specified requirements have been mapped to the specified implementations. |
|
|
The specified requirements and implementations could not be mapped. |
Examples
The following example opens a Verifier cellview and maps the specified requirements to the specified implementations. It also illustrates how to delete the mapping of requirements and implementations using verifMapping.
Maps the requirement with ID "ID_LT8XzV" to implementation "l/c/v/h".
sess = verifOpenCellView("tests" "sample" "verifier")
verifMapping(sess "ID_LT8XzV" "l/c/v/h")
=> t
Removes the mapping of requirement ID "ID_LT8XzV".
verifMapping(sess "ID_LT8XzV" nil)
=> t
Removes the mapping of implementation "l/c/v/h".
verifMapping(sess nil list("l" "c" "v" "h"))
=> t
Maps both requirement IDs ""ID_LT8XzV" and "ID_LT6YzV"" to the same output.
verifMapping(sess list("ID_LT8XzV" "ID_LT6YzV") list("l" "c" "v" "h" "test" "output1"))
=> t
Maps both requirement IDs ""ID_LT8XzV" and "ID_LT6YzV"" to the same two implementations.
verifMapping(sess list("ID_LT8XzV" "ID_LT6YzV") list(list("l" "c" "v" "h") list("l" "c" "v" "h2")))
=> t
Adds the mapping of both requirement IDs ""ID_LT8XzV" and "ID_LT6YzV"" to the same two implementations to any existing mapping.
verifMapping(sess list("ID_LT8XzV" "ID_LT6YzV") list(list("l" "c" "v" "h") list("l" "c" "v" "h2")) "merge")
=> t
Specifies the implementation using the list notation.
verifMapping(sess list("ID_LT8XzV" "ID_LT6YzV") list(list("l" "c" "v" "h")))
=> t
Specifies two implementations using the list notation.
verifMapping(sess list("ID_LT8XzV" "ID_LT6YzV") list(list("l" "c" "v" "h") list("l" "c" "v" "h2")))
=> t
Related Topics
Requirement-to-Implementation Mapping Functions
Return to top