SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


Use Case: Instantiating a structure from a schema

Given: Schema
Result: New Structure

Implementations & API

Annotation Wizard

The annotation wizard offers the option to create an instance of a schema. Since it starts with a code selection, first the schema must be selected manually (cf. the combo box in the lower part). The check box is used to trigger a new instantiation:

annotationwizard-step1-screenshot.jpg

annotationwizard-step2-screenshot.jpg annotationwizard-step3-screenshot.jpg

The wizard instantiates the selected structure with the given name and the given attributes. The new structure is not made persistent after finishing the wizard, but the new structure instance is part of the model on both Java and Prolog levels.

Prolog

In repair/elementary_actions.pl:

instantiate_schema(+Schema, +StructureName)

This call updates the runtime fact base but does not persist the new structure.

Java

In org.cs3.patchwork.facade.FacadeToProlog:

createNewStructureInstance(String, String)

This call updates the runtime fact base but does not persist the new structure.

research/patchwork/usecases/instantiating_a_structure_from_a_schema.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2023