Skip to content

web-backend


Class: NestedModelController

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:38

Controller for nested model operations. Routes for creating and manipulating nested technical elements.

Constructors

Constructor

new NestedModelController(nestedModelService, initiatingEventsService, eventSequenceDiagramService, eventSequenceAnalysisService, eventTreeService, bayesianNetworkService, faultTreesService): NestedModelController

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:50

Construct the controller with feature services for nested models.

Parameters

nestedModelService

NestedModelService

Core nested model service for generic creates and counters

initiatingEventsService

InitiatingEventsService

Service handling Initiating Events operations

eventSequenceDiagramService

EventSequenceDiagramService

Service handling Event Sequence Diagram operations

eventSequenceAnalysisService

EventSequenceAnalysisService

Service handling Event Sequence Analysis operations

eventTreeService

EventTreesService

Service handling Event Tree operations

bayesianNetworkService

BayesianNetworksService

Service handling Bayesian Network operations

faultTreesService

FaultTreesService

Service handling Fault Tree operations

Returns

NestedModelController

Methods

createBayesianEstimation()

createBayesianEstimation(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:80

Create a Bayesian Estimation nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label (name string, optional description string) and parentId

Returns

Promise<NestedModel>

Newly created nested model with common fields


createBayesianNetwork()

createBayesianNetwork(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:91

Create a Bayesian Network nested model.

Parameters

body

Either the full body or an object like { data, typedModel }

Partial<NestedModel> | { data: Partial<NestedModel>; typedModel: TypedModelType; }

Returns

Promise<NestedModel>

Newly created nested model with common fields


createBayesianNetwowrk()

createBayesianNetwowrk(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:109

Back-compat helper that delegates to createBayesianNetwork.

Parameters

body

Either the full body or an object like { data, typedModel }

Partial<NestedModel> | { data: Partial<NestedModel>; typedModel: TypedModelType; }

Returns

Promise<NestedModel>

Newly created nested model with common fields


createDataAnalysis()

createDataAnalysis(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:286

Create a Data Analysis nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label and parentId

Returns

Promise<NestedModel>

Newly created nested model


createEventSequenceAnalysis()

createEventSequenceAnalysis(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:335

Create an Event Sequence Analysis nested model.

Accepts either of the following payloads:

  • {"data": Partial<NestedModel>; "typedModel": TypedModelType} to target a specific typed model
  • Partial<NestedModel> to create without specifying a typed model

Parameters

body

Request payload; when typedModel is provided, creation occurs within that typed model.

Partial<NestedModel> | { data: Partial<NestedModel>; typedModel: TypedModelType; }

Returns

Promise<NestedModel>

Newly created nested model with common fields


createEventSequenceDiagram()

createEventSequenceDiagram(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:122

Create an Event Sequence Diagram nested model.

Parameters

body

Either the full body or an object like { data, typedModel }

Partial<NestedModel> | { data: Partial<NestedModel>; typedModel: TypedModelType; }

Returns

Promise<NestedModel>

Newly created nested model with common fields


createEventSequenceQuantificationDiagram()

createEventSequenceQuantificationDiagram(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:275

Create an Event Sequence Quantification Diagram nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label and parentId

Returns

Promise<NestedModel>

Newly created nested model


createEventTree()

createEventTree(body): Promise<NestedModel>

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

Create an Event Tree nested model.

Parameters

body

Either the full body or an object like { data, typedModel }

Partial<NestedModel> | { data: Partial<NestedModel>; typedModel: TypedModelType; }

Returns

Promise<NestedModel>

Newly created nested model with common fields


createFaultTree()

createFaultTree(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:162

Create a Fault Tree nested model.

Accepts either of the following payloads:

  • {"data": Partial<NestedModel>; "typedModel": TypedModelType} to target a specific typed model
  • Partial<NestedModel> to create without specifying a typed model

Parameters

body

Request payload; when typedModel is provided, creation occurs within that typed model.

Partial<NestedModel> | { data: Partial<NestedModel>; typedModel: TypedModelType; }

Returns

Promise<NestedModel>

Newly created nested model with common fields


createFunctionalEvent()

createFunctionalEvent(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:191

Create a Functional Event nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label (name string, optional description string) and parentId

Returns

Promise<NestedModel>

Newly created nested model with common fields


createHeatBalanceFaultTree()

createHeatBalanceFaultTree(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:180

Create a Heat Balance Fault Tree nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label (name string, optional description string) and parentId

Returns

Promise<NestedModel>

Newly created nested model with common fields


createHumanReliabilityAnalysis()

createHumanReliabilityAnalysis(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:297

Create a Human Reliability Analysis nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label and parentId

Returns

Promise<NestedModel>

Newly created nested model


createInitiatingEvent()

createInitiatingEvent(body): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:202

Create an Initiating Event nested model.

Parameters

body

Either the full body or an object like { data, typedModel }

Partial<NestedModel> | { data: Partial<NestedModel>; typedModel: TypedModelType; }

Returns

Promise<NestedModel>

Newly created nested model with common fields


createMarkovChain()

createMarkovChain(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:220

Create a Markov Chain nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label (name string, optional description string) and parentId

Returns

Promise<NestedModel>

Newly created nested model with common fields


createMechanisticSourceTerm()

createMechanisticSourceTerm(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:264

Create a Mechanistic Source Term nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label and parentId

Returns

Promise<NestedModel>

Newly created nested model


createOperatingStateAnalysis()

createOperatingStateAnalysis(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:353

Create an Operating State Analysis nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label and parentId

Returns

Promise<NestedModel>

Newly created nested model


createRadiologicalConsequenceAnalysis()

createRadiologicalConsequenceAnalysis(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:253

Create a Radiological Consequence Analysis nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label and parentId

Returns

Promise<NestedModel>

Newly created nested model


createRiskIntegration()

createRiskIntegration(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:242

Create a Risk Integration nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label and parentId

Returns

Promise<NestedModel>

Newly created nested model


createSuccessCriteria()

createSuccessCriteria(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:319

Create a Success Criteria nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label and parentId

Returns

Promise<NestedModel>

Newly created nested model


createSystemsAnalysis()

createSystemsAnalysis(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:308

Create a Systems Analysis nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label and parentId

Returns

Promise<NestedModel>

Newly created nested model


createWeibullAnalysis()

createWeibullAnalysis(data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:231

Create a Weibull Analysis nested model.

Parameters

data

Partial<NestedModel>

Partial nested model with label (name string, optional description string) and parentId

Returns

Promise<NestedModel>

Newly created nested model with common fields


deleteBayesianEstimation()

deleteBayesianEstimation(id): Promise<BayesianEstimation>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:835

Delete a single nested model by id.

Parameters

id

number

The id of the model to be deleted

Returns

Promise<BayesianEstimation>

A promise with the deleted model


deleteBayesianNetwork()

deleteBayesianNetwork(id, typedModel?): Promise<any>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:846

Delete a single nested model by id.

Parameters

id

The id of the model to be deleted

string | number

typedModel?

TypedModelType

The typed model that this nested model belongs to

Returns

Promise<any>

A promise with the deleted model


deleteDataAnalysis()

deleteDataAnalysis(id): Promise<DataAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1009

Delete a Data Analysis nested model.

Parameters

id

number

Identifier of the model to delete

Returns

Promise<DataAnalysis>

The deleted model


deleteEventSequenceAnalysis()

deleteEventSequenceAnalysis(id, typedModel?): Promise<any>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1054

Delete a single nested model by id.

Parameters

id

The id of the model to be deleted

string | number

typedModel?

TypedModelType

The typed model that this nested model belongs to

Returns

Promise<any>

A promise with the deleted model


deleteEventSequenceDiagram()

deleteEventSequenceDiagram(id, typedModel?): Promise<any>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:863

Delete a single nested model by id.

Parameters

id

The id of the model to be deleted

string | number

typedModel?

TypedModelType

The typed model that this nested model belongs to

Returns

Promise<any>

A promise with the deleted model


deleteEventSequenceQuantificationDiagram()

deleteEventSequenceQuantificationDiagram(id): Promise<EventSequenceQuantificationDiagram>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:998

Delete an Event Sequence Quantification Diagram nested model.

Parameters

id

number

Identifier of the model to delete

Returns

Promise<EventSequenceQuantificationDiagram>

The deleted model


deleteEventTree()

deleteEventTree(id, typedModel?): Promise<any>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:880

Delete a single nested model by id.

Parameters

id

The id of the model to be deleted

string | number

typedModel?

TypedModelType

The typed model that this nested model belongs to

Returns

Promise<any>

A promise with the deleted model


deleteFaultTree()

deleteFaultTree(id, typedModel?): Promise<any>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:894

Delete a single nested model by id.

Parameters

id

The id of the model to be deleted

string | number

typedModel?

TypedModelType

The typed model that this nested model belongs to

Returns

Promise<any>

A promise with the deleted model


deleteFunctionalEvent()

deleteFunctionalEvent(id): Promise<FunctionalEvent>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:917

Delete a single nested model by id.

Parameters

id

number

The id of the model to be deleted

Returns

Promise<FunctionalEvent>

A promise with the deleted model


deleteHeatBalanceFaultTree()

deleteHeatBalanceFaultTree(id): Promise<HeatBalanceFaultTree>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:907

Delete a single nested model by id.

Parameters

id

number

The id of the model to be deleted

Returns

Promise<HeatBalanceFaultTree>

A promise with the deleted model


deleteHumanReliabilityAnalysis()

deleteHumanReliabilityAnalysis(id): Promise<HumanReliabilityAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1020

Delete a Human Reliability Analysis nested model.

Parameters

id

number

Identifier of the model to delete

Returns

Promise<HumanReliabilityAnalysis>

The deleted model


deleteInitiatingEvent()

deleteInitiatingEvent(id, typedModel?): Promise<any>

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

Delete a single nested model by id.

Parameters

id

The id of the model to be deleted

string | number

typedModel?

TypedModelType

The typed model that this nested model belongs to

Returns

Promise<any>

A promise with the deleted model


deleteMarkovChain()

deleteMarkovChain(id): Promise<MarkovChain>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:944

Delete a single nested model by id.

Parameters

id

number

The id of the model to be deleted

Returns

Promise<MarkovChain>

A promise with the deleted model


deleteMechanisticSourceTerm()

deleteMechanisticSourceTerm(id): Promise<MechanisticSourceTerm>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:987

Delete a Mechanistic Source Term nested model.

Parameters

id

number

Identifier of the model to delete

Returns

Promise<MechanisticSourceTerm>

The deleted model


deleteOperatingStateAnalysis()

deleteOperatingStateAnalysis(id): Promise<OperatingStateAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1071

Delete an Operating State Analysis nested model.

Parameters

id

number

Identifier of the model to delete

Returns

Promise<OperatingStateAnalysis>

The deleted model


deleteRadiologicalConsequenceAnalysis()

deleteRadiologicalConsequenceAnalysis(id): Promise<RadiologicalConsequenceAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:976

Delete a Radiological Consequence Analysis nested model.

Parameters

id

number

Identifier of the model to delete

Returns

Promise<RadiologicalConsequenceAnalysis>

The deleted model


deleteRiskIntegration()

deleteRiskIntegration(id): Promise<RiskIntegration>

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

Delete a Risk Integration nested model.

Parameters

id

number

Identifier of the model to delete

Returns

Promise<RiskIntegration>

The deleted model


deleteSuccessCriteria()

deleteSuccessCriteria(id): Promise<SuccessCriteria>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1042

Delete a Success Criteria nested model.

Parameters

id

number

Identifier of the model to delete

Returns

Promise<SuccessCriteria>

The deleted model


deleteSystemsAnalysis()

deleteSystemsAnalysis(id): Promise<SystemsAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1031

Delete a Systems Analysis nested model.

Parameters

id

number

Identifier of the model to delete

Returns

Promise<SystemsAnalysis>

The deleted model


deleteWeibullAnalysis()

deleteWeibullAnalysis(id): Promise<WeibullAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:954

Delete a single nested model by id.

Parameters

id

number

The id of the model to be deleted

Returns

Promise<WeibullAnalysis>

A promise with the deleted model


getBayesianEstimations()

getBayesianEstimations(id): Promise<BayesianEstimation[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:367

Retrieve the collection of Bayesian Estimations.

Parameters

id

number

The id of the parent model

Returns

Promise<BayesianEstimation[]>

A promise with the list of models of the requested type


getBayesianNetworks()

getBayesianNetworks(id): Promise<EventSequenceDiagram[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:377

Retrieve the collection of Bayesian Networks.

Parameters

id

The id of the parent model

string | number

Returns

Promise<EventSequenceDiagram[]>

A promise with the list of models of the requested type


getCounterPastValue()

getCounterPastValue(): Promise<number>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:67

Returns

Promise<number>


getDataAnalysis()

getDataAnalysis(id): Promise<DataAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:531

Retrieve the collection of Data Analysis models.

Parameters

id

number

The id of the parent model

Returns

Promise<DataAnalysis[]>

A list of models of the requested type


getEventSequenceAnalysis()

getEventSequenceAnalysis(id): Promise<EventSequenceAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:572

grabs the collection of the type of nested model defined by the function call name (Initiating Events)

Parameters

id

number

the id of the parent model

Returns

Promise<EventSequenceAnalysis[]>

a promise with a list of the model typed defined


getEventSequenceDiagrams()

getEventSequenceDiagrams(id): Promise<EventSequenceDiagram[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:392

grabs the collection of the type of nested model defined by the function call name (Event Sequence Diagrams)

Parameters

id

the id of the parent model

string | number

Returns

Promise<EventSequenceDiagram[]>

a promise with a list of the model typed defined


getEventSequenceQuantificationDiagram()

getEventSequenceQuantificationDiagram(id): Promise<EventSequenceQuantificationDiagram[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:521

Retrieve the collection of Event Sequence Quantification Diagram models.

Parameters

id

number

The id of the parent model

Returns

Promise<EventSequenceQuantificationDiagram[]>

A list of models of the requested type


getEventTrees()

getEventTrees(id): Promise<EventSequenceDiagram[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:407

grabs the collection of the type of nested model defined by the function call name (Event Trees)

Parameters

id

the id of the parent model

string | number

Returns

Promise<EventSequenceDiagram[]>

a promise with a list of the model typed defined


getFaultTrees()

getFaultTrees(id): Promise<FaultTree[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:422

grabs the collection of the type of nested model defined by the function call name (Event Trees)

Parameters

id

the id of the parent model

string | number

Returns

Promise<FaultTree[]>

a promise with a list of the model typed defined


getFunctionalEvents()

getFunctionalEvents(id): Promise<FunctionalEvent[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:447

Retrieve the collection of Functional Events.

Parameters

id

number

The id of the parent model

Returns

Promise<FunctionalEvent[]>

A promise with the list of models of the requested type


getHeatBalanceFaultTrees()

getHeatBalanceFaultTrees(id): Promise<HeatBalanceFaultTree[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:437

Retrieve the collection of Heat Balance Fault Trees.

Parameters

id

number

The id of the parent model

Returns

Promise<HeatBalanceFaultTree[]>

A promise with the list of models of the requested type


getHumanReliabilityAnalysis()

getHumanReliabilityAnalysis(id): Promise<HumanReliabilityAnalysis[]>

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

Retrieve the collection of Human Reliability Analysis models.

Parameters

id

number

The id of the parent model

Returns

Promise<HumanReliabilityAnalysis[]>

A list of models of the requested type


getInitiatingEvents()

getInitiatingEvents(id): Promise<InitiatingEvent[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:457

Retrieve the collection of Initiating Events.

Parameters

id

The id of the parent model

string | number

Returns

Promise<InitiatingEvent[]>

A promise with the list of models of the requested type


getMarkovChains()

getMarkovChains(id): Promise<MarkovChain[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:471

Retrieve the collection of Markov Chains.

Parameters

id

number

The id of the parent model

Returns

Promise<MarkovChain[]>

A promise with the list of models of the requested type


getMechanisticSourceTerm()

getMechanisticSourceTerm(id): Promise<MechanisticSourceTerm[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:511

Retrieve the collection of Mechanistic Source Term models.

Parameters

id

number

The id of the parent model

Returns

Promise<MechanisticSourceTerm[]>

A list of models of the requested type


getOperatingStateAnalysis()

getOperatingStateAnalysis(id): Promise<OperatingStateAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:586

Retrieve the collection of Operating State Analysis models.

Parameters

id

number

The id of the parent model

Returns

Promise<OperatingStateAnalysis[]>

A list of models of the requested type


getRadiologicalConsequenceAnalysis()

getRadiologicalConsequenceAnalysis(id): Promise<RadiologicalConsequenceAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:501

Retrieve the collection of Radiological Consequence Analysis models.

Parameters

id

number

The id of the parent model

Returns

Promise<RadiologicalConsequenceAnalysis[]>

A list of models of the requested type


getRiskIntegration()

getRiskIntegration(id): Promise<RiskIntegration[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:491

Retrieve the collection of Risk Integration models.

Parameters

id

number

The id of the parent model

Returns

Promise<RiskIntegration[]>

A list of Risk Integration models


getSingleBayesianEstimation()

getSingleBayesianEstimation(modelId): Promise<BayesianEstimation>

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

Return a single model from the collection.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<BayesianEstimation>

A promise with the model with the given id


getSingleBayesianNetwork()

getSingleBayesianNetwork(modelId): Promise<EventSequenceDiagram>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:608

Return a single model from the collection.

Parameters

modelId

The id of the model to be retrieved

string | number

Returns

Promise<EventSequenceDiagram>

A promise with the model with the given id


getSingleDataAnalysis()

getSingleDataAnalysis(modelId): Promise<DataAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:767

Return a single Data Analysis model by id.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<DataAnalysis>

The requested model


getSingleEventSequenceAnalysis()

getSingleEventSequenceAnalysis(modelId): Promise<EventSequenceAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:808

returns a single model from the given collection

Parameters

modelId

number

the id of the model to be retrieved

Returns

Promise<EventSequenceAnalysis>

a promise with the model with the given id


getSingleEventSequenceDiagram()

getSingleEventSequenceDiagram(modelId): Promise<EventSequenceDiagram>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:623

Return a single model from the collection.

Parameters

modelId

The id of the model to be retrieved

string | number

Returns

Promise<EventSequenceDiagram>

A promise with the model with the given id


getSingleEventSequenceQuantificationDiagram()

getSingleEventSequenceQuantificationDiagram(modelId): Promise<EventSequenceQuantificationDiagram>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:755

Return a single Event Sequence Quantification Diagram model by id.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<EventSequenceQuantificationDiagram>

The requested model


getSingleEventTree()

getSingleEventTree(modelId): Promise<EventTree>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:638

Return a single model from the collection.

Parameters

modelId

The id of the model to be retrieved

string | number

Returns

Promise<EventTree>

A promise with the model with the given id


getSingleFaultTree()

getSingleFaultTree(modelId): Promise<EventTree>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:653

Return a single model from the collection.

Parameters

modelId

The id of the model to be retrieved

string | number

Returns

Promise<EventTree>

A promise with the model with the given id


getSingleFunctionalEvent()

getSingleFunctionalEvent(modelId): Promise<FunctionalEvent>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:678

Return a single model from the collection.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<FunctionalEvent>

A promise with the model with the given id


getSingleHeatBalanceFaultTree()

getSingleHeatBalanceFaultTree(modelId): Promise<HeatBalanceFaultTree>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:668

Return a single model from the collection.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<HeatBalanceFaultTree>

A promise with the model with the given id


getSingleHumanReliabilityAnalysis()

getSingleHumanReliabilityAnalysis(modelId): Promise<HumanReliabilityAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:777

Return a single Human Reliability Analysis model by id.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<HumanReliabilityAnalysis>

The requested model


getSingleInitiatingEvent()

getSingleInitiatingEvent(modelId): Promise<InitiatingEvent>

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

Return a single model from the collection.

Parameters

modelId

The id of the model to be retrieved

string | number

Returns

Promise<InitiatingEvent>

A promise with the model with the given id


getSingleMarkovChain()

getSingleMarkovChain(modelId): Promise<MarkovChain>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:703

Return a single model from the collection.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<MarkovChain>

A promise with the model with the given id


getSingleMechanisticSourceTerm()

getSingleMechanisticSourceTerm(modelId): Promise<MechanisticSourceTerm>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:745

Return a single Mechanistic Source Term model by id.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<MechanisticSourceTerm>

The requested model


getSingleOperatingStateAnalysis()

getSingleOperatingStateAnalysis(modelId): Promise<OperatingStateAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:823

Return a single Operating State Analysis model by id.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<OperatingStateAnalysis>

The requested model


getSingleRadiologicalConsequenceAnalysis()

getSingleRadiologicalConsequenceAnalysis(modelId): Promise<RadiologicalConsequenceAnalysis>

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

Return a single Radiological Consequence Analysis model by id.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<RadiologicalConsequenceAnalysis>

The requested model


getSingleRiskIntegration()

getSingleRiskIntegration(modelId): Promise<RiskIntegration>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:723

Return a single Risk Integration model by id.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<RiskIntegration>

The requested model


getSingleSuccessCriteria()

getSingleSuccessCriteria(modelId): Promise<SuccessCriteria>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:797

Return a single Success Criteria model by id.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<SuccessCriteria>

The requested model


getSingleSystemsAnalysis()

getSingleSystemsAnalysis(modelId): Promise<SystemsAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:787

Return a single Systems Analysis model by id.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<SystemsAnalysis>

The requested model


getSingleWeibullAnalysis()

getSingleWeibullAnalysis(modelId): Promise<WeibullAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:713

Return a single model from the collection.

Parameters

modelId

number

The id of the model to be retrieved

Returns

Promise<WeibullAnalysis>

A promise with the model with the given id


getSuccessCriteria()

getSuccessCriteria(id): Promise<SuccessCriteria[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:561

Retrieve the collection of Success Criteria models.

Parameters

id

number

The id of the parent model

Returns

Promise<SuccessCriteria[]>

A list of models of the requested type


getSystemsAnalysis()

getSystemsAnalysis(id): Promise<SystemsAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:551

Retrieve the collection of Systems Analysis models.

Parameters

id

number

The id of the parent model

Returns

Promise<SystemsAnalysis[]>

A list of models of the requested type


getWeibullAnalysis()

getWeibullAnalysis(id): Promise<WeibullAnalysis[]>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:481

Retrieve the collection of Weibull Analysis models.

Parameters

id

number

The id of the parent model

Returns

Promise<WeibullAnalysis[]>

A promise with the list of models of the requested type


removeParentIds()

removeParentIds(modelId): Promise<number>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1322

Remove parentId from all nested models. If the model has no parentIds it is removed.

Parameters

modelId

The parent id to be removed

string | number

Returns

Promise<number>

A promise with the number of totally deleted nested models


updateBayesianEstimationLabel()

updateBayesianEstimationLabel(id, data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1082

Update a label for the nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<NestedModel>

The updated model


updateBayesianNetworkLabel()

updateBayesianNetworkLabel(id, data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1093

Update a label for the nested model type.

Parameters

id

The id of the nested model to be updated

string | number

data

Label

The new label, with a name and description string

Returns

Promise<NestedModel>

The updated model


updateDataAnalysisLabel()

updateDataAnalysisLabel(id, data): Promise<DataAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1247

Update a label for the Data Analysis nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<DataAnalysis>

The updated model


updateEventSequenceAnalysisLabel()

updateEventSequenceAnalysisLabel(id, data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1295

Update a label for the nested model type.

Parameters

id

The id of the nested model to be updated

string | number

data

Label

The new label, with a name and description string

Returns

Promise<NestedModel>

The updated model


updateEventSequenceDiagramLabel()

updateEventSequenceDiagramLabel(id, data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1105

Update a label for the nested model type.

Parameters

id

The id of the nested model to be updated

string | number

data

Label

The new label, with a name and description string

Returns

Promise<NestedModel>

The updated model


updateEventSequenceQuantificationDiagramLabel()

updateEventSequenceQuantificationDiagramLabel(id, data): Promise<EventSequenceQuantificationDiagram>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1233

Update a label for the Event Sequence Quantification Diagram nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<EventSequenceQuantificationDiagram>

The updated model


updateEventTreeLabel()

updateEventTreeLabel(id, data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1117

Update a label for the nested model type.

Parameters

id

The id of the nested model to be updated

string | number

data

Label

The new label, with a name and description string

Returns

Promise<NestedModel>

The updated model


updateFaultTreeLabel()

updateFaultTreeLabel(id, data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1129

Update a label for the nested model type.

Parameters

id

The id of the nested model to be updated

string | number

data

Label

The new label, with a name and description string

Returns

Promise<NestedModel>

The updated model


updateFunctionalEventLabel()

updateFunctionalEventLabel(id, data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1152

Update a label for the nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<NestedModel>

The updated model


updateHeatBalanceFaultTreeLabel()

updateHeatBalanceFaultTreeLabel(id, data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1141

Update a label for the nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<NestedModel>

The updated model


updateHumanReliabilityAnalysisLabel()

updateHumanReliabilityAnalysisLabel(id, data): Promise<HumanReliabilityAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1258

Update a label for the Human Reliability Analysis nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<HumanReliabilityAnalysis>

The updated model


updateInitiatingEventLabel()

updateInitiatingEventLabel(id, data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1163

Update a label for the nested model type.

Parameters

id

The id of the nested model to be updated

string | number

data

Label

The new label, with a name and description string

Returns

Promise<NestedModel>

The updated model


updateMarkovChainLabel()

updateMarkovChainLabel(id, data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1175

Update a label for the nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<NestedModel>

The updated model


updateMechanisticSourceTermLabel()

updateMechanisticSourceTermLabel(id, data): Promise<MechanisticSourceTerm>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1222

Update a label for the Mechanistic Source Term nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<MechanisticSourceTerm>

The updated model


updateOperatingStateAnalysisLabel()

updateOperatingStateAnalysisLabel(id, data): Promise<OperatingStateAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1307

Update a label for the Operating State Analysis nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<OperatingStateAnalysis>

The updated model


updateRadiologicalConsequenceAnalysisLabel()

updateRadiologicalConsequenceAnalysisLabel(id, data): Promise<RadiologicalConsequenceAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1208

Update a label for the Radiological Consequence Analysis nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<RadiologicalConsequenceAnalysis>

The updated model


updateRiskIntegrationLabel()

updateRiskIntegrationLabel(id, data): Promise<RiskIntegration>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1197

Update a label for the Risk Integration nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<RiskIntegration>

The updated model


updateSuccessCriteriaLabel()

updateSuccessCriteriaLabel(id, data): Promise<SuccessCriteria>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1283

Update a label for the Success Criteria nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<SuccessCriteria>

The updated model


updateSystemsAnalysisLabel()

updateSystemsAnalysisLabel(id, data): Promise<SystemsAnalysis>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1272

Update a label for the Systems Analysis nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<SystemsAnalysis>

The updated model


updateWeibullAnalysisLabel()

updateWeibullAnalysisLabel(id, data): Promise<NestedModel>

Defined in: packages/web-backend/src/nestedModels/nestedModel.controller.ts:1186

Update a label for the nested model type.

Parameters

id

number

The id of the nested model to be updated

data

Label

The new label, with a name and description string

Returns

Promise<NestedModel>

The updated model