Back to bricks list
Introduction
Technical Documentation
Other Classes
Scenario ScenarioTemplate ScenarioTemplateFactory
Version

ScenarioTemplateFactory

Functions

FROM_EXPORT_DTO - @classmethod
Parameters:
NameTypeDefault valueDescription
export_dtoScenarioTemplateExportDTO
Return type:
ScenarioTemplate
FROM_EXPORT_DTO_DICT - @classmethod
Parameters:
NameTypeDefault valueDescription
export_dictdict
Return type:
ScenarioTemplate
FROM_EXPORT_DTO_STR - @classmethod
Parameters:
NameTypeDefault valueDescription
export_strstr
Return type:
ScenarioTemplate
FROM_PROTOCOL_MODEL - @classmethod
Parameters:
NameTypeDefault valueDescription
protocol_modelProtocolModel
namestr
descriptionRichTextDTO
Return type:
ScenarioTemplate
MIGRATE_DATA_FROM_1_TO_3 - @classmethod

Migrate the scenario template from version 1 to version 3

Parameters:
NameTypeDefault valueDescription
graphdict
Return type:
dict
MIGRATE_TO_CURRENT_VERSION - @classmethod

Migrate the scenario template to the current version

Parameters:
NameTypeDefault valueDescription
scenario_templatedict Scenario template to migrate scenariotemplate
Return type:
dict