Contenuto principale

Event

R2026b

Event in fault tree documents

Since R2026b

Description

Event objects represent events in Safety Analysis Manager fault tree documents. Use Event objects to define the starting point of failures in your safety analyses.

Creation

To create an Event object:

Properties

expand all

Event type, specified as one of these options:

ValueDescription
"basic"

Represents a basic event

"undeveloped"

Represents an undeveloped event

"house"

Represents a house event

For more information on event types, see Create Fault Tree Events.

Data Types: enumeration

Event label, specified as a string scalar or character vector. Each event must have a unique label. If you create another event with the default label, the next addition uses the default label with an appended number. Each new event increments the number, for example, EVENT1, EVENT2, and so on.

Data Types: char | string

Event description, specified as a string scalar or character vector.

Data Types: char | string

Failure model assigned to the event, specified as a FailureModel object. To add a failure model to the event, use the createFailureModel function on the FaultTreeDocument object that contains this Event object, and assign the new failure model to this property.

This property is read-only.

Failure properties calculated at the event, represented as a FailureProperties object. This property is empty until you evaluate the fault tree document.

Object Functions

addFlagAdd flag to Safety Analysis Manager spreadsheet cell or row
acceptAllChangesAccept detected changes to linked artifacts in Safety Analysis Manager
clearFlagsClear flags in Safety Analysis Manager spreadsheet and fault tree document elements
getChangesGet changed artifacts linked to artifacts in Safety Analysis Manager
getFlagsRetrieve flags from Safety Analysis Manager documents
getLinksGet links associated with spreadsheet cell or row in Safety Analysis Manager
navigateNavigate to elements in Safety Analysis Manager documents and changed artifacts

Examples

collapse all

Create a fault tree and add three events to it. First, create the fault tree document.

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

The new document contains one fault tree. Retrieve the FaultTree object from the document.

myFaultTree = myTreeDoc.FaultTrees(1);

The fault tree contains one top-level gate. Retrieve the Gate object for the top level gate.

topGate = myFaultTree.Gates(1);

Add three events to the top-level gate.

numberOfEvents = 3;
for n = 1:numberOfEvents
 myEvent(n) = createEvent(topGate);
end

Alternatively, use myEvent = arrayfun(@(~) createEvent(topGate),1:3); to perform the same operation.

Version History

Introduced in R2026b