SDA SE Wiki

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

User Tools

Site Tools


Use Case: Add a new player

Given: Schema, Structure, Role
Result: Structure is changed, new player is added to the set of role players.

Implementations & API

Annotation Wizard

When you use the annotation wizard to annotate object data (e.g. source code) with a new real entity, you can on the fly add a new player to a given structure. the following figure shows the according page of the wizard.

annotationwizard-step4-player-screenshot.jpg annotationwizard-step5-player-screenshot.jpg

Prolog

In repair/elementary_actions.pl:

add_new_player(+SchemaID, +StructureID, +RoleID, -PlayerID)

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

Java

In org.cs3.patchwork.facade.FacadeToProlog:

public String addRoleInstance(String schema, String structure, String role)

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

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

SEWiki, © 2023