Causality Relationship API

This topic describes the Causality Relationship API.

This page discusses:

See Also
Workflow for Setting up the Environment for Public API to Customize Analyses
About Script Creation

getFailureModesEffectsAnalysis

getFailureModesEffectsAnalysis corresponds to a method used to get the failure modes effects analysis that owns a specific causality relationship.

 getFailureModesEffectsAnalysis(
  causalityRelationship: CausalityRelationshipProxyInterface
): Promise<FailureModesEffectsAnalysisProxyInterface | undefined>;
Parameters
causalityRelationship: A CausalityRelationshipProxyInterface model representing the causality relationship for which the failure modes effects analysis is requested and owned.
Return Value
Returns a failure modes effects analysis representing the owner of the requested causality relationships.

addPath

addPath corresponds to a method used to get some causality relationships from an existing failure modes effects analysis.

addPath(
  causalityRelationship: CausalityRelationshipProxyInterface, 
  dataIndex: DataIndexType, 
  path: ProxyInterface[] | PathProxyInterface
): Promise<PathProxyInterface | undefined>;
Parameters
  • causalityRelationship: A CausalityRelationshipProxyInterface model representing the causality relationships to which a path is added.
  • dataIndex: A string that is the value of the dataIndex used to add to the path. The dataIndex defines the characteristics of the path: role, persistence, etc. For more information concerning dataIndex, see dataIndex Attribute and Editors.
  • path: An array of proxies that represents the path to be added. Each item of the array is an element of the path and the order in the array is the order of the elements in the array to be created or a PathProxyInterface.
Return Value
Returns a PathProxyInterface representing the created path.

removePath

removePath corresponds to a method used to remove a path from an existing causality relationship.

removePath(
  causalityRelationship: CausalityRelationshipProxyInterface, 
  dataIndex: DataIndexType, 
  path: PathProxyInterface
): Promise<boolean>;
Parameters
  • causalityRelationship: A CausalityRelationshipProxyInterface model representing the causality relationships from which the path is removed.
  • dataIndex: A string that is the value of the dataIndex. For more information concerning dataIndex, see dataIndex Attribute and Editors.
  • path: A PathProxyInterface model representing the path to be removed.
Return Value
Returns a Boolean.

removeAllPaths

removeAllPaths corresponds to a method used to remove all paths from an existing causality relationship.

removeAllPaths(
  causalityRelationship: CausalityRelationshipProxyInterface, 
  dataIndex?: DataIndexType
): Promise<boolean>;
Parameters
  • causalityRelationship: A CausalityRelationshipProxyInterface model representing the causality relationships from which the path is removed.
  • dataIndex: An optional string that is the value of the dataIndex. For more information concerning dataIndex, see dataIndex Attribute and Editors.
Return Value
Returns a Boolean.

getPaths

getPaths corresponds to a method used to get the paths from an existing causality relationship.

getPaths(
  causalityRelationship: CausalityRelationshipProxyInterface, 
  dataIndex?: string
): Promise<PathProxyInterface[]>;
Parameters
  • causalityRelationship: A CausalityRelationshipProxyInterface model representing the causality relationships from which the paths are requested.
  • dataIndex: An optional string that is the value of the dataIndex. For more information concerning dataIndex, see dataIndex Attribute and Editors.
Return Value
Returns an array of PathProxyInterface.

getBaseLineCausalityRelationship

getBaseLineCausalityRelationship corresponds to a method used to get the causality relationships with baseline.

getBaseLineCausalityRelationship(
  causalityRelationship: CausalityRelationshipProxyInterface
): Promise<CausalityRelationshipProxyInterface | undefined>;
Parameters
  • causalityRelationship: A CausalityRelationshipProxyInterface model representing the causality relationships queried for their baseline causality relationships.
Return Value
Returns a CausalityRelationshipProxyInterface.

setBaseLineCausalityRelationship

setBaseLineCausalityRelationship corresponds to a method used to specify the baseline causality relationship to the causality relationship passed as parameter.

setBaseLineCausalityRelationship(
  causalityRelationship: CausalityRelationshipProxyInterface, 
  baseLineCausalityRelationship: CausalityRelationshipProxyInterface
): Promise<boolean>;
Parameters
  • causalityRelationship: The CausalityRelationshipProxyInterface that the baseline causality relationship is to be specified.
  • baseLineCausalityRelationship : The causality relationship considered as the baseline.
Return Value
Returns Promise<Boolean> that corresponds to true, if the baseline is successfully specified.