主要内容

TransferGate

R2026b

Transfer gate in fault tree document

Since R2026b

Description

TransferGate objects represent transfer gates in Safety Analysis Manager fault tree documents. Use TransferGate objects to reuse trees or subtrees in other fault trees.

Creation

To create a TransferGate object:

  • Use the createTransferGate function on a Gate object.

  • Get the TransferGates property of a FaultTree object.

  • Get the IncomingTransfer property of a Gate object.

Properties

expand all

Gate in the Safety Analysis Manager fault tree that the transfer gate retrieves, specified as a Gate object.

If you evaluate a fault tree document that contains the transfer gate and this property is empty, the fault tree document sets the transfer gate failure unavailability and frequency to 0.

If you specify a gate that implements a logical loop, an error occurs.

Examples

collapse all

Create a new fault tree document in the Safety Analysis Manager and get the FaultTree object.

myTreeDoc = safetyAnalysisMgr.newDocument("fault-tree");
myFaultTree = myTreeDoc.FaultTrees(1);

The new document contains one fault tree. Create another fault tree and store the associated FaultTree object.

myNewTree = createFaultTree(myTreeDoc);

Add a transfer gate to the top-level gate of myFaultTree that transfers from the top-level gate of myNewTree.

topGate = myFaultTree.Gates(1);
newTopGate = myNewTree.Gates(1);
myTransferGate = createTransferGate(topGate);
myTransferGate.Gate = newTopGate;

Version History

Introduced in R2026b