Failure Modes Effects Analysis API

This topic describes the Failure Modes Effects Analysis API.

This page discusses:

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

addGenericAnalysis

addGenericAnalysis corresponds to a method used to add a generic analysis to an existing failure modes effects analysis.

addGenericAnalysis(
  fmea: FailureModesEffectsAnalysisProxyInterface, 
  genericAnalysis: FailureModesEffectsAnalysisProxyInterface
): Promise<boolean>;
Parameters
  • fmea: A FailureModesEffectsAnalysisProxyInterface model representing the failure modes effects analysis to which the generic analysis is added.
  • genericAnalysis: A FailureModesEffectsAnalysisProxyInterface model representing the generic analysis to be added.
Return Value
Returns a Boolean.

removeGenericAnalysis

removeGenericAnalysis corresponds to a method used to remove a generic analysis from an existing failure modes effects analysis.

removeGenericAnalysis(
  fmea: FailureModesEffectsAnalysisProxyInterface, 
  genericAnalysis: FailureModesEffectsAnalysisProxyInterface
): Promise<boolean>;
Parameters
  • fmea: A FailureModesEffectsAnalysisProxyInterface model representing the failure modes effects analysis from which the generic analysis is removed.
  • genericAnalysis: A FailureModesEffectsAnalysisProxyInterface model representing the generic analysis to be removed.
Return Value
Returns a Boolean.

getGenericAnalyses

getGenericAnalyses corresponds to a method used to get the generic analyses used by a failure modes effects analysis.

getGenericAnalyses(
  fmea: FailureModesEffectsAnalysisProxyInterface
): Promise<FailureModesEffectsAnalysisProxyInterface[]>;
Parameters
fmea: A FailureModesEffectsAnalysisProxyInterface model representing the failure modes effects analysis from which generic analyses are requested.
Return Value
Returns an array of FailureModesEffectsAnalysisProxyInterface models which are proxies representing the generic analyses used by the failure modes effects analyses.

getCausalityRelationships

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

getCausalityRelationships(
  fmea: FailureModesEffectsAnalysisProxyInterface, 
  start?: number, 
  size?: number
): Promise<Array<CausalityRelationshipProxyInterface>>;
Parameters
  • fmea: A FailureModesEffectsAnalysisProxyInterface model representing the failure modes effects analysis from which the causality relationships are requested.
  • start: An optional parameter of type number representing the first index of the causality relationships to get.
  • size: An optional parameter of type number representing the length of the array of causality relationships to get.
Return Value
Returns an array of CausalityRelationshipProxyInterface which are proxies representing the requested causality relationships. If start is not set, it starts from the index 0 of the list. If size is not set, it ends at the last element of the list.

getAnalyzedItem

getAnalyzedItem corresponds to a method used to get the model that is analyzed by an existing failure modes effects analysis.

getAnalyzedItem(
  fmea: FailureModesEffectsAnalysisProxyInterface
): Promise<FallibleProxyInterface | undefined>;
Parameters
fmea: A FailureModesEffectsAnalysisProxyInterface model representing the failure modes effects analysis for which the generic analysis is created.
Return Value
Returns a ProxyInterface model representing the analyzed object.

getFailureModesEffectsAnalyses

getFailureModesEffectsAnalyses corresponds to a method used to get all the failure modes effects analyses analyzing an object.

 getFailureModesEffectsAnalyses(
  analyzedItem: FallibleProxyInterface
): Promise<FailureModesEffectsAnalysisProxyInterface[]>;
Parameters
analyzedItem: A proxy model representing the object from which the failure modes effects analyses are requested.
Return Value
Returns an array of FailureModesEffectsAnalysisProxyInterface which are proxies representing the failure modes effects analyses that analyze the object.

getTableModel

getTableModel corresponds to a method used to get the table model.

getTableModel(
  fmea: FailureModesEffectsAnalysisProxyInterface
): Promise<string>;
Parameters
fmea: The FailureModesEffectsAnalysis from which the table model is requested.
Return Value
Returns a string containing the definition of the table model in JSON.

getBehaviorLibrary

getBehaviorLibrary corresponds to a method used to get the behavior library.

getBehaviorLibrary<T>(
  fmea: FailureModesEffectsAnalysisProxyInterface
): T | undefined;
Parameters
fmea: The FailureModesEffectsAnalysis from which the behavior library is requested.
Return Value
Returns the behavior library potentially computed in the initialization script if the method initializeBehaviorLibrary is provided by the initialization script or set using setBehaviorLibrary. For more information, see Initialization.

setBehaviorLibrary

setBehaviorLibrary corresponds to a method used to set the behavior library.

setBehaviorLibrary<T>(
  fmea: FailureModesEffectsAnalysisProxyInterface, 
  behaviorLibrary: T
): boolean;
Parameters
fmea: The FailureModesEffectsAnalysis from which the behavior library is requested.
behaviorLibrary: The behavior library.
Return Value
Returns TRUE if the behaviorLibrary is successfully set.