getSubItems
getSubItems corresponds to a method used to get the subitems of a
ProxyInterface.
getSubItems(
model: ProxyInterface
): Promise<ProxyInterface[]>;
- Parameters
model: A ProxyInterface representing the model for
which the subitems are requested.
- Return Value
- Returns an array of proxies representing the subitems model of the model in
parameter.
getParentItems
getParentItems corresponds to a method used to get the parent items of a
ProxyInterface.
getParentItems(
model: ProxyInterface
): Promise<ProxyInterface[]>;
- Parameters
model: A ProxyInterface representing the model for
which the parent items are requested.
- Return Value
- Returns an array of proxies representing the parent items model of the model in
parameter.
getFunctions
getFunctions corresponds to a method used to get the functions performed
by a ProxyInterface.
getFunctions(
model: ProxyInterface
): Promise<ProxyInterface[]>;
- Parameters
model: A ProxyInterface representing the model for
which the functions are requested.
- Return Value
- Returns an array of proxies representing the functions performed by the model in
parameter.
getFailureModes
getFailureModes corresponds to a method used to get the failure modes that
belong to a ProxyInterface representing a model.
getFailureModes(
model: ProxyInterface
): Promise<FailureModeProxyInterface[]>;
- Parameters
model: A ProxyInterface representing the model for
which the failure modes are requested.
- Return Value
- Returns an array of
FailureModeProxyInterface representing the
failure modes that belong to the model represented by the proxy in parameter.
getFallibleReferenceProxy
getFallibleReferenceProxy corresponds to a method used to get the fallible
reference that contains a specific failure mode.
getFallibleReferenceProxy(
failureMode: FailureModeProxyInterface
): Promise<FallibleReferenceProxyInterface | undefined>;
- Parameters
failureMode: A ProxyInterface representing the
failure mode from which the fallible reference is requested.
- Return Value
- Returns a
FallibleReferenceProxyInterface representing the fallible
reference that owns the failure mode represented by the
ProxyInterface in parameter.
isASubTypeOf
isASubTypeOf verifies if the ProxyInterface that is in
parameter, is a type or a subtype of a specific type.
isASubTypeOf(
item: ProxyInterface,
type: string
): Promise<boolean>;
- Parameters
-
item: A ProxyInterface representing the model
whose type is to be verified.
type: Corresponds to the type to be compared to
item type.
- Return Value
- Returns TRUE if
item is a type or a subtype of
type, otherwise returns FALSE.
getDefaultFailureModes
getDefaultFailureModes corresponds to a method used to get the default
failure modes that must belong to all FallibleProxyInterface that are
defined in the template.
getDefaultFailureModes(
fmea: FailureModesEffectsAnalysisProxyInterface
): Promise<string[]>;
- Parameters
fmea: A ProxyInterface representing the failure
modes and effects analysis from which the default failure modes are requested.
- Return Value
- Returns an array of strings that correspond to the names of the default failure
modes defined in the template associated with the failure modes and effects analysis,
which is in parameter.