Reactive Systems logo
September 19, 2020
Reactis API
 
Spacer

API - Reactis: MATLAB Bindings - Reactis Info File (Coverage)


rsRsiGetCoverageEnabledGet enabled/disabled status of a coverage metric.
rsRsiSetCoverageEnabledSet enabled/disabled status of a coverage metric.
rsRsiGetSystemCoverageTrackingGet coverage tracking status of a subsystem.
rsRsiSetSystemCoverageTrackingSet coverage tracking status of a subsystem.
rsRsiSetCumulativeCoverageEnable/Disable cumulative coverage tracking for a library system or referenced model.
rsRsiIsCumulativeCoverageQuery cumulative coverage tracking status for a library system or referenced model.
rsRsiGetCumulativeCoverageGet a list of systems for which cumulative coverage is enabled.


rsRsiGetCoverageEnabled

Get enabled/disabled status of a coverage metric.

Syntax

enabled = rsRsiGetCoverageEnabled(rsiId,metricName)

Description

enabled = rsRsiGetCoverageEnabled(rsiId,metricName) returns 1 if coverage metric metricName is enabled and 0 otherwise. The set of coverage metric names is enumerated it the Coverage Metric Names section of the API documentation.

rsiId is the identifier of an .rsi file previously opened by rsRsiOpen.

Examples

>> rsRsiGetCoverageEnabled(rsiId,'Branch')
ans = 
    1

See Also

rsRsiOpen, rsRsiSetCoverageEnabled


rsRsiSetCoverageEnabled

Set enabled/disabled status of a coverage metric.

Syntax

rsRsiSetCoverageEnabled(rsiId,metricName,enab)

Description

rsRsiSetCoverageEnabled(rsiId,metricName,enab) disables coverage tracking for metric metricName if enab is 0, otherwise coverage tracking is enabled. The set of coverage metric names is enumerated it the Coverage Metric Names section of the API documentation.

rsiId is the identifier of an .rsi file previously opened by rsRsiOpen.

Examples

rsRsiSetCoverageEnabled(rsiId,'Branch',1)

See Also

rsRsiOpen, rsRsiGetCoverageEnabled


rsRsiGetSystemCoverageTracking

Get coverage tracking status of a subsystem.

Syntax

rsRsiGetSystemCoverageTracking(rsiId, systemPath)

Description

Reactis lets you disable coverage tracking for all targets in a given subsystem of the model. See Section Excluding a Subsystem of the Reactis User's Guide for a description of how this feature works. This API function lets you query whether or not coverage tracking for a given subsystem is enabled.

rsRsiGetSystemCoverageTracking(rsiId,systemPath) returns:

disabledif coverage tracking for systemPath is disabled
enabledif coverage tracking for systemPath is enabled
inheritedif coverage tracking for systemPath is inherited from its parent

rsiId is the identifier of an .rsi file previously opened by rsRsiOpen.

Examples

>> rsRsiGetSystemCoverageTracking(rsiId,'cruise/CruiseMain/CruiseMDL/DesiredSpeed')
ans =
    inherited

See Also

rsRsiOpen, rsRsiSetSystemCoverageTracking


rsRsiSetSystemCoverageTracking

Set coverage tracking status of a subsystem.

Syntax

rsRsiSetSystemCoverageTracking(rsiId, systemPath, enab)

Description

Reactis lets you disable coverage tracking for all targets in a given subsystem of the model. See Section Excluding a Subsystem of the Reactis User's Guide for a description of how this feature works. This API function lets you set whether or not coverage tracking for a given subsystem is enabled.

rsRsiSetSystemCoverageTracking(rsiId, systemPath, enab) will change the coverage tracking setting for system systemPath. Valid values for enab are:

disabledif coverage tracking for systemPath is disabled
enabledif coverage tracking for systemPath is enabled
inheritedif coverage tracking for systemPath is inherited from its parent

rsiId is the identifier of an .rsi file previously opened by rsRsiOpen.

Examples

rsRsiSetSystemCoverageTracking(rsiId,'cruise/CruiseMain/CruiseMDL/DesiredSpeed','disabled')

See Also

rsRsiOpen, rsRsiGetSystemCoverageTracking


rsRsiSetCumulativeCoverage

Enable/Disable cumulative coverage tracking for a library system or referenced model.

Syntax

rsRsiSetCumulativeCoverage(rsiId, systemPath, setting)

Description

rsRsiSetCumulativeCoverage(rsiId, systemPath, setting) changes cumulative coverage setting for systemPath. systemPath is the referenced system's path, i.e. if a model named refmodel should be cumulatively covered then refmodel should be passed in as systemPath. For library systems, use the full path of the system within the library, including the library's name.

See Also

rsRsiOpen, rsRsiIsCumulativeCoverage, rsRsiGetCumulativeCoverage


rsRsiIsCumulativeCoverage

Query cumulative coverage tracking status for a library system or referenced model.

Syntax

rsRsiIsCumulativeCoverage(rsiId, systemPath)

Description

rsRsiIsCumulativeCoverage(rsiId, systemPath) queries cumulative coverage setting for systemPath. systemPath is the referenced system's path.

See Also

rsRsiOpen, rsRsiSetCumulativeCoverage, rsRsiGetCumulativeCoverage


rsRsiGetCumulativeCoverage

Get a list of systems for which cumulative coverage is enabled.

Syntax

rsRsiGetCumulativeCoverage(rsiId)

Description

rsRsiGetCumulativeCoverage(rsiId) returns a cell array of strings, listing all systems for which cumulative coverage is enabled.

See Also

rsRsiOpen, rsRsiIsCumulativeCoverage, rsRsiSetCumulativeCoverage



Spacer