Skip to content

web-backend


Class: NestedModelService ​

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:43

Service for nested model creation and persistence across technical elements. Provides methods to create and manage Bayesian networks, event trees, sequences, and more.

Constructors ​

Constructor ​

new NestedModelService(bayesianEstimationModel, eventSequenceDiagramModel, bayesianNetworkModel, eventTreeModel, faultTreeModel, heatBalanceFaultTreeModel, functionalEventsModel, initiatingEventModel, markovChainModel, weibullAnalysisModel, nestedCounterModel, riskIntegrationModel, radiologicalConsequenceAnalysisModel, mechanisticSourceTermModel, eventSequenceQuantificationDiagramModel, dataAnalysisModel, humanReliabilityAnalysisModel, systemsAnalysisModel, successCriteriaModel, eventSequenceAnalysisModel, operatingStateAnalysisModel): NestedModelService

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:71

Construct the service with injected Mongoose models for all supported nested elements. Each parameter is the collection model used to create, query, and update the respective element type.

Parameters ​

bayesianEstimationModel ​

Model<BayesianEstimationDocument>

Mongoose model for Bayesian Estimation documents

eventSequenceDiagramModel ​

Model<EventSequenceDiagramDocument>

Mongoose model for Event Sequence Diagram documents

bayesianNetworkModel ​

Model<BayesianNetworkDocument>

Mongoose model for Bayesian Network documents

eventTreeModel ​

Model<EventTreeDocument>

Mongoose model for Event Tree documents

faultTreeModel ​

Model<FaultTreeDocument>

Mongoose model for Fault Tree documents

heatBalanceFaultTreeModel ​

Model<HeatBalanceFaultTreeDocument>

Mongoose model for Heat Balance Fault Tree documents

functionalEventsModel ​

Model<FunctionalEventDocument>

Mongoose model for Functional Event documents

initiatingEventModel ​

Model<InitiatingEventDocument>

Mongoose model for Initiating Event documents

markovChainModel ​

Model<MarkovChainDocument>

Mongoose model for Markov Chain documents

weibullAnalysisModel ​

Model<WeibullAnalysisDocument>

Mongoose model for Weibull Analysis documents

nestedCounterModel ​

Model<NestedCounterDocument>

Counter collection used to allocate incremental IDs for nested elements

riskIntegrationModel ​

Model<RiskIntegrationDocument>

Mongoose model for Risk Integration documents

radiologicalConsequenceAnalysisModel ​

Model<RadiologicalConsequenceAnalysisDocument>

Mongoose model for Radiological Consequence Analysis documents

mechanisticSourceTermModel ​

Model<MechanisticSourceTermDocument>

Mongoose model for Mechanistic Source Term documents

eventSequenceQuantificationDiagramModel ​

Model<EventSequenceQuantificationDiagramDocument>

Mongoose model for Event Sequence Quantification Diagram documents

dataAnalysisModel ​

Model<DataAnalysisDocument>

Mongoose model for Data Analysis documents

humanReliabilityAnalysisModel ​

Model<HumanReliabilityAnalysisDocument>

Mongoose model for Human Reliability Analysis documents

systemsAnalysisModel ​

Model<SystemsAnalysisDocument>

Mongoose model for Systems Analysis documents

successCriteriaModel ​

Model<SuccessCriteriaDocument>

Mongoose model for Success Criteria documents

eventSequenceAnalysisModel ​

Model<EventSequenceAnalysisDocument>

Mongoose model for Event Sequence Analysis documents

operatingStateAnalysisModel ​

Model<OperatingStateAnalysisDocument>

Mongoose model for Operating State Analysis documents

Returns ​

NestedModelService

Methods ​

createBayesianEstimation() ​

createBayesianEstimation(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:153

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createBayesianNetwork() ​

createBayesianNetwork(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:212

Proxy create for Bayesian Network to support existing tests without typed model context.

Parameters ​

body ​

Partial<NestedModel>

Nested model payload including parentIds and label

Returns ​

Promise<NestedModel>

The created Bayesian Network document


createDataAnalysis() ​

createDataAnalysis(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:327

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createEventSequenceAnalysis() ​

createEventSequenceAnalysis(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:267

Proxy create for Event Sequence Analysis to support existing tests without typed model context.

Parameters ​

body ​

Partial<NestedModel>

Nested model payload including parentIds and label

Returns ​

Promise<NestedModel>

The created Event Sequence Analysis document


createEventSequenceDiagram() ​

createEventSequenceDiagram(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:223

Proxy create for Event Sequence Diagram to support existing tests without typed model context.

Parameters ​

body ​

Partial<NestedModel>

Nested model payload including parentIds and label

Returns ​

Promise<NestedModel>

The created Event Sequence Diagram document


createEventSequenceQuantificationDiagram() ​

createEventSequenceQuantificationDiagram(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:315

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createEventTree() ​

createEventTree(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:234

Proxy create for Event Tree to support existing tests without typed model context.

Parameters ​

body ​

Partial<NestedModel>

Nested model payload including parentIds and label

Returns ​

Promise<NestedModel>

The created Event Tree document


createFaultTree() ​

createFaultTree(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:245

Proxy create for Fault Tree to support existing tests without typed model context.

Parameters ​

body ​

Partial<NestedModel>

Nested model payload including parentIds and label

Returns ​

Promise<NestedModel>

The created Fault Tree document


createFunctionalEvent() ​

createFunctionalEvent(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:177

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createHeatBalanceFaultTree() ​

createHeatBalanceFaultTree(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:165

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createHumanReliabilityAnalysis() ​

createHumanReliabilityAnalysis(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:339

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createInitiatingEvent() ​

createInitiatingEvent(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:256

Proxy create for Initiating Event to support existing tests without typed model context.

Parameters ​

body ​

Partial<NestedModel>

Nested model payload including parentIds and label

Returns ​

Promise<NestedModel>

The created Initiating Event document


createMarkovChain() ​

createMarkovChain(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:189

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createMechanisticSourceTerm() ​

createMechanisticSourceTerm(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:303

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createOperatingStateAnalysis() ​

createOperatingStateAnalysis(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:375

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createRadiologicalConsequenceAnalysis() ​

createRadiologicalConsequenceAnalysis(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:291

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createRiskIntegration() ​

createRiskIntegration(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:279

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createSuccessCriteria() ​

createSuccessCriteria(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:363

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createSystemsAnalysis() ​

createSystemsAnalysis(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:351

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


createWeibullAnalysis() ​

createWeibullAnalysis(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:201

creates the type of nested model defined in the function name

Parameters ​

body ​

Partial<NestedModel>

a nested model, that needs to contain its parent id (easier to grab on frontend with getCurrentModel) and a label object with a name string and optional description string

Returns ​

Promise<NestedModel>

a promise with a nested model in it, which contains the basic data all the nested models have


deleteBayesianEstimation() ​

deleteBayesianEstimation(modelId): Promise<BayesianEstimation>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:780

finds and deletes the nested model in this collection with the give model id

Parameters ​

modelId ​

number

the id of the model we want to delete

Returns ​

Promise<BayesianEstimation>

a promise with the deleted model


deleteBayesianNetwork() ​

deleteBayesianNetwork(modelId): Promise<BayesianNetwork>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:825

Finds and deletes a Bayesian Network by id.

Parameters ​

modelId ​

number

The id of the model to delete

Returns ​

Promise<BayesianNetwork>

A promise with the deleted model


deleteDataAnalysis() ​

deleteDataAnalysis(modelId): Promise<DataAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:919

Finds and deletes a Data Analysis model based on the ID.

Parameters ​

modelId ​

number

The ID of the Data Analysis model to be deleted.

Returns ​

Promise<DataAnalysis>

A promise with the deleted Data Analysis model.


deleteEventSequenceAnalysis() ​

deleteEventSequenceAnalysis(modelId): Promise<EventSequenceAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:870

Finds and deletes an Event Sequence Analysis by id.

Parameters ​

modelId ​

number

The id of the model to delete

Returns ​

Promise<EventSequenceAnalysis>

A promise with the deleted model


deleteEventSequenceDiagram() ​

deleteEventSequenceDiagram(modelId): Promise<EventSequenceDiagram>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:834

Finds and deletes an Event Sequence Diagram by id.

Parameters ​

modelId ​

number

The id of the model to delete

Returns ​

Promise<EventSequenceDiagram>

A promise with the deleted model


deleteEventSequenceQuantificationDiagram() ​

deleteEventSequenceQuantificationDiagram(modelId): Promise<EventSequenceQuantificationDiagram>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:908

Finds and deletes an Event Sequence Quantification Diagram model based on the ID.

Parameters ​

modelId ​

number

The ID of the Event Sequence Quantification Diagram model to be deleted.

Returns ​

Promise<EventSequenceQuantificationDiagram>

A promise with the deleted Event Sequence Quantification Diagram model.


deleteEventTree() ​

deleteEventTree(modelId): Promise<EventTree>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:843

Finds and deletes an Event Tree by id.

Parameters ​

modelId ​

number

The id of the model to delete

Returns ​

Promise<EventTree>

A promise with the deleted model


deleteFaultTree() ​

deleteFaultTree(modelId): Promise<FaultTree>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:852

Finds and deletes a Fault Tree by id.

Parameters ​

modelId ​

number

The id of the model to delete

Returns ​

Promise<FaultTree>

A promise with the deleted model


deleteFunctionalEvent() ​

deleteFunctionalEvent(modelId): Promise<FunctionalEvent>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:798

finds and deletes the nested model in this collection with the give model id

Parameters ​

modelId ​

number

the id of the model we want to delete

Returns ​

Promise<FunctionalEvent>

a promise with the deleted model


deleteHeatBalanceFaultTree() ​

deleteHeatBalanceFaultTree(modelId): Promise<HeatBalanceFaultTree>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:789

finds and deletes the nested model in this collection with the give model id

Parameters ​

modelId ​

number

the id of the model we want to delete

Returns ​

Promise<HeatBalanceFaultTree>

a promise with the deleted model


deleteHumanReliabilityAnalysis() ​

deleteHumanReliabilityAnalysis(modelId): Promise<HumanReliabilityAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:928

Finds and deletes a Human Reliability Analysis model based on the ID.

Parameters ​

modelId ​

number

The ID of the Human Reliability Analysis model to be deleted.

Returns ​

Promise<HumanReliabilityAnalysis>

A promise with the deleted Human Reliability Analysis model.


deleteInitiatingEvent() ​

deleteInitiatingEvent(modelId): Promise<InitiatingEvent>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:861

Finds and deletes an Initiating Event by id.

Parameters ​

modelId ​

number

The id of the model to delete

Returns ​

Promise<InitiatingEvent>

A promise with the deleted model


deleteMarkovChain() ​

deleteMarkovChain(modelId): Promise<MarkovChain>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:807

finds and deletes the nested model in this collection with the give model id

Parameters ​

modelId ​

number

the id of the model we want to delete

Returns ​

Promise<MarkovChain>

a promise with the deleted model


deleteMechanisticSourceTerm() ​

deleteMechanisticSourceTerm(modelId): Promise<MechanisticSourceTerm>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:899

Finds and deletes a Mechanistic Source Term model based on the ID.

Parameters ​

modelId ​

number

The ID of the Mechanistic Source Term model to be deleted.

Returns ​

Promise<MechanisticSourceTerm>

A promise with the deleted Mechanistic Source Term model.


deleteOperatingStateAnalysis() ​

deleteOperatingStateAnalysis(modelId): Promise<OperatingStateAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:955

Finds and deletes an Operating State Analysis model based on the ID.

Parameters ​

modelId ​

number

The ID of the Operating State Analysis model to be deleted.

Returns ​

Promise<OperatingStateAnalysis>

A promise with the deleted Operating State Analysis model.


deleteRadiologicalConsequenceAnalysis() ​

deleteRadiologicalConsequenceAnalysis(modelId): Promise<RadiologicalConsequenceAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:888

Finds and deletes a Radiological Consequence Analysis model based on the ID.

Parameters ​

modelId ​

number

The ID of the Radiological Consequence Analysis model to be deleted.

Returns ​

Promise<RadiologicalConsequenceAnalysis>

A promise with the deleted Radiological Consequence Analysis model.


deleteRiskIntegration() ​

deleteRiskIntegration(modelId): Promise<RiskIntegration>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:879

Finds and deletes a Risk Integration model based on the ID.

Parameters ​

modelId ​

number

The ID of the Risk Integration model to be deleted.

Returns ​

Promise<RiskIntegration>

A promise with the deleted Risk Integration model.


deleteSuccessCriteria() ​

deleteSuccessCriteria(modelId): Promise<SuccessCriteria>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:946

Finds and deletes a Success Criteria model based on the ID.

Parameters ​

modelId ​

number

The ID of the Success Criteria model to be deleted.

Returns ​

Promise<SuccessCriteria>

A promise with the deleted Success Criteria model.


deleteSystemsAnalysis() ​

deleteSystemsAnalysis(modelId): Promise<SystemsAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:937

Finds and deletes a Systems Analysis model based on the ID.

Parameters ​

modelId ​

number

The ID of the Systems Analysis model to be deleted.

Returns ​

Promise<SystemsAnalysis>

A promise with the deleted Systems Analysis model.


deleteWeibullAnalysis() ​

deleteWeibullAnalysis(modelId): Promise<WeibullAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:816

finds and deletes the nested model in this collection with the give model id

Parameters ​

modelId ​

number

the id of the model we want to delete

Returns ​

Promise<WeibullAnalysis>

a promise with the deleted model


getBayesianEstimations() ​

getBayesianEstimations(parentId): Promise<BayesianEstimation[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:388

gets the collection of the nested model as defined by the function name (bayesian estimations, etc.)

Parameters ​

parentId ​

number

id of the parent model the nested model is number

Returns ​

Promise<BayesianEstimation[]>

a promise with an array of the nested model of the type in the function name


getBayesianNetworks() ​

getBayesianNetworks(parentId): Promise<BayesianNetwork[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:443

Retrieves a collection of Bayesian Network models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<BayesianNetwork[]>

A promise with an array of Bayesian Network models for the specified parent.


getDataAnalysis() ​

getDataAnalysis(parentId): Promise<DataAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:541

Retrieves a collection of Data Analysis models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<DataAnalysis[]>

A promise with an array of nested Data Analysis models associated with the specified parent ID.


getEventSequenceAnalysis() ​

getEventSequenceAnalysis(parentId): Promise<EventSequenceAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:488

Retrieves a collection of Event Sequence Analysis models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<EventSequenceAnalysis[]>

A promise with an array of Event Sequence Analysis models for the specified parent.


getEventSequenceDiagrams() ​

getEventSequenceDiagrams(parentId): Promise<EventSequenceDiagram[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:452

Retrieves a collection of Event Sequence Diagram models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<EventSequenceDiagram[]>

A promise with an array of Event Sequence Diagram models for the specified parent.


getEventSequenceQuantificationDiagram() ​

getEventSequenceQuantificationDiagram(parentId): Promise<EventSequenceQuantificationDiagram[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:530

Retrieves a collection of Event Sequence Quantification Diagram models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<EventSequenceQuantificationDiagram[]>

A promise with an array of nested Event Sequence Quantification Diagram models associated with the specified parent ID.


getEventTrees() ​

getEventTrees(parentId): Promise<EventTree[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:461

Retrieves a collection of Event Tree models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<EventTree[]>

A promise with an array of Event Tree models for the specified parent.


getFaultTrees() ​

getFaultTrees(parentId): Promise<FaultTree[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:470

Retrieves a collection of Fault Tree models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<FaultTree[]>

A promise with an array of Fault Tree models for the specified parent.


getFunctionalEvents() ​

getFunctionalEvents(parentId): Promise<FunctionalEvent[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:410

gets the collection of the nested model as defined by the function name (bayesian estimations, etc.)

Parameters ​

parentId ​

number

id of the parent model the nested model is number

Returns ​

Promise<FunctionalEvent[]>

a promise with an array of the nested model of the type in the function name


getHeatBalanceFaultTrees() ​

getHeatBalanceFaultTrees(parentId): Promise<HeatBalanceFaultTree[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:399

gets the collection of the nested model as defined by the function name (bayesian estimations, etc.)

Parameters ​

parentId ​

number

id of the parent model the nested model is number

Returns ​

Promise<HeatBalanceFaultTree[]>

a promise with an array of the nested model of the type in the function name


getHumanReliabilityAnalysis() ​

getHumanReliabilityAnalysis(parentId): Promise<HumanReliabilityAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:552

Retrieves a collection of Human Reliability Analysis models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<HumanReliabilityAnalysis[]>

A promise with an array of nested Human Reliability Analysis models associated with the specified parent ID.


getInitiatingEvents() ​

getInitiatingEvents(parentId): Promise<InitiatingEvent[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:479

Retrieves a collection of Initiating Event models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<InitiatingEvent[]>

A promise with an array of Initiating Event models for the specified parent.


getMarkovChains() ​

getMarkovChains(parentId): Promise<MarkovChain[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:421

Retrieves a collection of Markov Chain models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<MarkovChain[]>

A promise with an array of Markov Chain models for the specified parent.


getMechanisticSourceTerm() ​

getMechanisticSourceTerm(parentId): Promise<MechanisticSourceTerm[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:519

Retrieves a collection of Mechanistic Source Term models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<MechanisticSourceTerm[]>

A promise with an array of nested Mechanistic Source Term models associated with the specified parent ID.


getNextValue() ​

getNextValue(name): Promise<number>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:123

Create or increment a named counter. Generates an ID for new items incrementally; if none exists, the serial ID starts from 1.

Parameters ​

name ​

string

Name of the counter

Returns ​

Promise<number>

ID number


getOperatingStateAnalysis() ​

getOperatingStateAnalysis(parentId): Promise<OperatingStateAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:585

Retrieves a collection of Operating State Analysis models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<OperatingStateAnalysis[]>

A promise with an array of nested Operating State Analysis models associated with the specified parent ID.


getRadiologicalConsequenceAnalysis() ​

getRadiologicalConsequenceAnalysis(parentId): Promise<RadiologicalConsequenceAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:508

Retrieves a collection of Radiological Consequence Analysis models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<RadiologicalConsequenceAnalysis[]>

A promise with an array of nested Radiological Consequence Analysis models associated with the specified parent ID.


getRiskIntegration() ​

getRiskIntegration(parentId): Promise<RiskIntegration[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:497

Retrieves a collection of Risk Integration models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<RiskIntegration[]>

A promise with an array of nested Risk Integration models associated with the specified parent ID.


getSingleBayesianEstimation() ​

getSingleBayesianEstimation(modelId): Promise<BayesianEstimation>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:598

gets a single model from the collection based on the id

Parameters ​

modelId ​

number

the id of the model to be retrieved

Returns ​

Promise<BayesianEstimation>

the model which has the associated id


getSingleBayesianNetwork() ​

getSingleBayesianNetwork(modelId): Promise<BayesianNetwork>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:643

Gets a single Bayesian Network by its numeric id.

Parameters ​

modelId ​

number

The id of the model to retrieve

Returns ​

Promise<BayesianNetwork>

The model which has the associated id


getSingleDataAnalysis() ​

getSingleDataAnalysis(modelId): Promise<DataAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:733

Retrieves a single Data Analysis model based on the ID.

Parameters ​

modelId ​

number

The ID of the Data Analysis model to be retrieved.

Returns ​

Promise<DataAnalysis>

The Data Analysis model associated with the specified ID.


getSingleEventSequenceAnalysis() ​

getSingleEventSequenceAnalysis(modelId): Promise<EventSequenceAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:688

Gets a single Event Sequence Analysis by its numeric id.

Parameters ​

modelId ​

number

The id of the model to retrieve

Returns ​

Promise<EventSequenceAnalysis>

The model which has the associated id


getSingleEventSequenceDiagram() ​

getSingleEventSequenceDiagram(modelId): Promise<EventSequenceDiagram>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:652

Gets a single Event Sequence Diagram by its numeric id.

Parameters ​

modelId ​

number

The id of the model to retrieve

Returns ​

Promise<EventSequenceDiagram>

The model which has the associated id


getSingleEventSequenceQuantificationDiagram() ​

getSingleEventSequenceQuantificationDiagram(modelId): Promise<EventSequenceQuantificationDiagram>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:724

Retrieves a single Event Sequence Quantification Diagram model based on the ID.

Parameters ​

modelId ​

number

The ID of the Event Sequence Quantification Diagram model to be retrieved.

Returns ​

Promise<EventSequenceQuantificationDiagram>

The Event Sequence Quantification Diagram model associated with the specified ID.


getSingleEventTree() ​

getSingleEventTree(modelId): Promise<EventTree>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:661

Gets a single Event Tree by its numeric id.

Parameters ​

modelId ​

number

The id of the model to retrieve

Returns ​

Promise<EventTree>

The model which has the associated id


getSingleFaultTree() ​

getSingleFaultTree(modelId): Promise<FaultTree>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:670

Gets a single Fault Tree by its numeric id.

Parameters ​

modelId ​

number

The id of the model to retrieve

Returns ​

Promise<FaultTree>

The model which has the associated id


getSingleFunctionalEvent() ​

getSingleFunctionalEvent(modelId): Promise<FunctionalEvent>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:616

gets a single model from the collection based on the id

Parameters ​

modelId ​

number

the id of the model to be retrieved

Returns ​

Promise<FunctionalEvent>

the model which has the associated id


getSingleHeatBalanceFaultTree() ​

getSingleHeatBalanceFaultTree(modelId): Promise<HeatBalanceFaultTree>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:607

gets a single model from the collection based on the id

Parameters ​

modelId ​

number

the id of the model to be retrieved

Returns ​

Promise<HeatBalanceFaultTree>

the model which has the associated id


getSingleHumanReliabilityAnalysis() ​

getSingleHumanReliabilityAnalysis(modelId): Promise<HumanReliabilityAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:742

Retrieves a single Human Reliability Analysis model based on the ID.

Parameters ​

modelId ​

number

The ID of the Human Reliability Analysis model to be retrieved.

Returns ​

Promise<HumanReliabilityAnalysis>

The Human Reliability Analysis model associated with the specified ID.


getSingleInitiatingEvent() ​

getSingleInitiatingEvent(modelId): Promise<InitiatingEvent>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:679

Gets a single Initiating Event by its numeric id.

Parameters ​

modelId ​

number

The id of the model to retrieve

Returns ​

Promise<InitiatingEvent>

The model which has the associated id


getSingleMarkovChain() ​

getSingleMarkovChain(modelId): Promise<MarkovChain>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:625

gets a single model from the collection based on the id

Parameters ​

modelId ​

number

the id of the model to be retrieved

Returns ​

Promise<MarkovChain>

the model which has the associated id


getSingleMechanisticSourceTerm() ​

getSingleMechanisticSourceTerm(modelId): Promise<MechanisticSourceTerm>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:715

Retrieves a single Mechanistic Source Term model based on the ID.

Parameters ​

modelId ​

number

The ID of the Mechanistic Source Term model to be retrieved.

Returns ​

Promise<MechanisticSourceTerm>

The Mechanistic Source Term model associated with the specified ID.


getSingleOperatingStateAnalysis() ​

getSingleOperatingStateAnalysis(modelId): Promise<OperatingStateAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:769

Retrieves a single Operating State Analysis model based on the ID.

Parameters ​

modelId ​

number

The ID of the Operating State Analysis model to be retrieved.

Returns ​

Promise<OperatingStateAnalysis>

The Operating State Analysis model associated with the specified ID.


getSingleRadiologicalConsequenceAnalysis() ​

getSingleRadiologicalConsequenceAnalysis(modelId): Promise<RadiologicalConsequenceAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:706

Retrieves a single Radiological Consequence Analysis model based on the ID.

Parameters ​

modelId ​

number

The ID of the Radiological Consequence Analysis model to be retrieved.

Returns ​

Promise<RadiologicalConsequenceAnalysis>

The Radiological Consequence Analysis model associated with the specified ID.


getSingleRiskIntegration() ​

getSingleRiskIntegration(modelId): Promise<RiskIntegration>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:697

Retrieves a single Risk Integration model based on the ID.

Parameters ​

modelId ​

number

The ID of the Risk Integration model to be retrieved.

Returns ​

Promise<RiskIntegration>

The Risk Integration model associated with the specified ID.


getSingleSuccessCriteria() ​

getSingleSuccessCriteria(modelId): Promise<SuccessCriteria>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:760

Retrieves a single Success Criteria model based on the ID.

Parameters ​

modelId ​

number

The ID of the Success Criteria model to be retrieved.

Returns ​

Promise<SuccessCriteria>

The Success Criteria model associated with the specified ID.


getSingleSystemsAnalysis() ​

getSingleSystemsAnalysis(modelId): Promise<SystemsAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:751

Retrieves a single Systems Analysis model based on the ID.

Parameters ​

modelId ​

number

The ID of the Systems Analysis model to be retrieved.

Returns ​

Promise<SystemsAnalysis>

The Systems Analysis model associated with the specified ID.


getSingleWeibullAnalysis() ​

getSingleWeibullAnalysis(modelId): Promise<WeibullAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:634

gets a single model from the collection based on the id

Parameters ​

modelId ​

number

the id of the model to be retrieved

Returns ​

Promise<WeibullAnalysis>

the model which has the associated id


getSuccessCriteria() ​

getSuccessCriteria(parentId): Promise<SuccessCriteria[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:574

Retrieves a collection of Success Criteria models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<SuccessCriteria[]>

A promise with an array of nested Success Criteria models associated with the specified parent ID.


getSystemsAnalysis() ​

getSystemsAnalysis(parentId): Promise<SystemsAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:563

Retrieves a collection of Systems Analysis models based on the parent ID.

Parameters ​

parentId ​

number

The ID of the parent model for the nested model.

Returns ​

Promise<SystemsAnalysis[]>

A promise with an array of nested Systems Analysis models associated with the specified parent ID.


getValue() ​

getValue(name): Promise<number>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:140

Read the current value of a named counter. Generates an ID for new items incrementally; if none exists, the serial ID starts from 1.

Parameters ​

name ​

string

Name of the counter

Returns ​

Promise<number>

ID number


getWeibullAnalysis() ​

getWeibullAnalysis(parentId): Promise<WeibullAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:432

gets the collection of the nested model as defined by the function name (bayesian estimations, etc.)

Parameters ​

parentId ​

number

id of the parent model the nested model is number

Returns ​

Promise<WeibullAnalysis[]>

a promise with an array of the nested model of the type in the function name


removeParentModels() ​

removeParentModels(modelId): Promise<number>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1176

this goes through all the nested models and removes the given parent id from them, and if something is id-less, it is removed

Parameters ​

modelId ​

number

id of the parent model

Returns ​

Promise<number>


updateBayesianEstimationLabel() ​

updateBayesianEstimationLabel(id, body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:965

updates the label in the nested model

Parameters ​

id ​

number

the id of the nested model to be updated

body ​

Label

a label with a name and description

Returns ​

Promise<NestedModel>

a promise with the updated model with an updated label


updateBayesianNetworkLabelNumber() ​

updateBayesianNetworkLabelNumber(id, body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1015

Update a Bayesian Network label by numeric id.

Parameters ​

id ​

number

The numeric id of the model to update

body ​

Label

Label payload with name and (optional) description

Returns ​

Promise<NestedModel>

The updated model


updateDataAnalysisLabel() ​

updateDataAnalysisLabel(id, body): Promise<DataAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1126

Updates the label in a Data Analysis model.

Parameters ​

id ​

number

The ID of the Data Analysis model to be updated.

body ​

Label

A label with a name and description.

Returns ​

Promise<DataAnalysis>

A promise with the updated Data Analysis model with an updated label.


updateEventSequenceAnalysisLabelNumber() ​

updateEventSequenceAnalysisLabelNumber(id, body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1065

Update an Event Sequence Analysis label by numeric id.

Parameters ​

id ​

number

The numeric id of the model to update

body ​

Label

Label payload with name and (optional) description

Returns ​

Promise<NestedModel>

The updated model


updateEventSequenceDiagramLabelNumber() ​

updateEventSequenceDiagramLabelNumber(id, body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1025

Update an Event Sequence Diagram label by numeric id.

Parameters ​

id ​

number

The numeric id of the model to update

body ​

Label

Label payload with name and (optional) description

Returns ​

Promise<NestedModel>

The updated model


updateEventSequenceQuantificationDiagramLabel() ​

updateEventSequenceQuantificationDiagramLabel(id, body): Promise<EventSequenceQuantificationDiagram>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1109

Updates the label in an Event Sequence Quantification Diagram model.

Parameters ​

id ​

number

The ID of the Event Sequence Quantification Diagram model to be updated.

body ​

Label

A label with a name and description.

Returns ​

Promise<EventSequenceQuantificationDiagram>

A promise with the updated Event Sequence Quantification Diagram model with an updated label.


updateEventTreeLabelNumber() ​

updateEventTreeLabelNumber(id, body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1035

Update an Event Tree label by numeric id.

Parameters ​

id ​

number

The numeric id of the model to update

body ​

Label

Label payload with name and (optional) description

Returns ​

Promise<NestedModel>

The updated model


updateFaultTreeLabelNumber() ​

updateFaultTreeLabelNumber(id, body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1045

Update a Fault Tree label by numeric id.

Parameters ​

id ​

number

The numeric id of the model to update

body ​

Label

Label payload with name and (optional) description

Returns ​

Promise<NestedModel>

The updated model


updateFunctionalEventLabel() ​

updateFunctionalEventLabel(id, body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:975

updates the label in the nested model

Parameters ​

id ​

number

the id of the nested model to be updated

body ​

Label

a label with a name and description

Returns ​

Promise<NestedModel>

a promise with the updated model with an updated label


updateHeatBalanceFaultTreeLabel() ​

updateHeatBalanceFaultTreeLabel(id, body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:995

updates the label in the nested model

Parameters ​

id ​

number

the id of the nested model to be updated

body ​

Label

a label with a name and description

Returns ​

Promise<NestedModel>

a promise with the updated model with an updated label


updateHumanReliabilityAnalysisLabel() ​

updateHumanReliabilityAnalysisLabel(id, body): Promise<HumanReliabilityAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1136

Updates the label in a Human Reliability Analysis model.

Parameters ​

id ​

number

The ID of the Human Reliability Analysis model to be updated.

body ​

Label

A label with a name and description.

Returns ​

Promise<HumanReliabilityAnalysis>

A promise with the updated Human Reliability Analysis model with an updated label.


updateInitiatingEventLabelNumber() ​

updateInitiatingEventLabelNumber(id, body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1055

Update an Initiating Event label by numeric id.

Parameters ​

id ​

number

The numeric id of the model to update

body ​

Label

Label payload with name and (optional) description

Returns ​

Promise<NestedModel>

The updated model


updateMarkovChainLabel() ​

updateMarkovChainLabel(id, body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:985

updates the label in the nested model

Parameters ​

id ​

number

the id of the nested model to be updated

body ​

Label

a label with a name and description

Returns ​

Promise<NestedModel>

a promise with the updated model with an updated label


updateMechanisticSourceTermLabel() ​

updateMechanisticSourceTermLabel(id, body): Promise<MechanisticSourceTerm>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1099

Updates the label in a Mechanistic Source Term model.

Parameters ​

id ​

number

The ID of the Mechanistic Source Term model to be updated.

body ​

Label

A label with a name and description.

Returns ​

Promise<MechanisticSourceTerm>

A promise with the updated Mechanistic Source Term model with an updated label.


updateOperatingStateAnalysisLabel() ​

updateOperatingStateAnalysisLabel(id, body): Promise<OperatingStateAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1166

Updates the label in an Operating State Analysis model.

Parameters ​

id ​

number

The ID of the Operating State Analysis model to be updated.

body ​

Label

A label with a name and description.

Returns ​

Promise<OperatingStateAnalysis>

A promise with the updated Operating State Analysis model with an updated label.


updateRadiologicalConsequenceAnalysisLabel() ​

updateRadiologicalConsequenceAnalysisLabel(id, body): Promise<RadiologicalConsequenceAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1085

Updates the label in a Radiological Consequence Analysis model.

Parameters ​

id ​

number

The ID of the Radiological Consequence Analysis model to be updated.

body ​

Label

A label with a name and description.

Returns ​

Promise<RadiologicalConsequenceAnalysis>

A promise with the updated Radiological Consequence Analysis model with an updated label.


updateRiskIntegrationLabel() ​

updateRiskIntegrationLabel(id, body): Promise<RiskIntegration>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1075

Updates the label in a Risk Integration model.

Parameters ​

id ​

number

The ID of the Risk Integration model to be updated.

body ​

Label

A label with a name and description.

Returns ​

Promise<RiskIntegration>

A promise with the updated Risk Integration model with an updated label.


updateSuccessCriteriaLabel() ​

updateSuccessCriteriaLabel(id, body): Promise<SuccessCriteria>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1156

Updates the label in a Success Criteria model.

Parameters ​

id ​

number

The ID of the Success Criteria model to be updated.

body ​

Label

A label with a name and description.

Returns ​

Promise<SuccessCriteria>

A promise with the updated Success Criteria model with an updated label.


updateSystemsAnalysisLabel() ​

updateSystemsAnalysisLabel(id, body): Promise<SystemsAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1146

Updates the label in a Systems Analysis model.

Parameters ​

id ​

number

The ID of the Systems Analysis model to be updated.

body ​

Label

A label with a name and description.

Returns ​

Promise<SystemsAnalysis>

A promise with the updated Systems Analysis model with an updated label.


updateWeibullAnalysisLabel() ​

updateWeibullAnalysisLabel(id, body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.service.ts:1005

updates the label in the nested model

Parameters ​

id ​

number

the id of the nested model to be updated

body ​

Label

a label with a name and description

Returns ​

Promise<NestedModel>

a promise with the updated model with an updated label