Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "MoDisco/Components/QueryManager/Architecture"

(Add "use cases" section)
Line 3: Line 3:
 
==Use cases==
 
==Use cases==
 
This document assumes that:
 
This document assumes that:
* A user is the actor which use the query manager  
+
* A user is the actor which uses the query manager  
* A developer is a kind of user which creates requests.
+
* A developer is a kind of user which creates queries.
  
'''UC1 - Create query set''': The developer creates query set by declaring its identifier and the used meta-models. Each query set contains one or more query. The developer has to add query in the new query set ('''UC2''')
+
'''UC1 - Create query set''': The developer creates a query set by declaring its identifier and the used meta-models. Each query set contains one or more queries. The developer has to add queries in the new query set ('''UC2''')
  
'''UC2 - Add a query in a query set''': The user select an existing query set and add a new query in this query. Each query has a name and this name is the query identifier. To add a model query the developer has to provide: the name, the parameters, the description and the implementation. Each model query set are automatically detected and added into a catalog.
+
'''UC2 - Add a query in a query set''': The user selects an existing query set and adds a new query in this query set. Each query has a name and this name is the query identifier. To add a model query the developer has to provide: the name, the parameters, the description and the implementation. All the model query sets are automatically detected and added into a catalog.
  
 
'''UC3 - Use a model query''': To use a model query the user has to find it in the model query set catalog ('''UC5'''). To execute a query the developer has to provide an execution context (a set of models and of model elements) and the parameter values.
 
'''UC3 - Use a model query''': To use a model query the user has to find it in the model query set catalog ('''UC5'''). To execute a query the developer has to provide an execution context (a set of models and of model elements) and the parameter values.
  
'''UC4 - Add a query to a meta-class''': The user want to create a query to a dedicated meta-class by selecting the meta-class or one of its instances. He has to choose query set in the catalog or create a new query set ('''UC1''') and next to create a new query.
+
'''UC4 - Add a query to a meta-class''': The user wants to create a query to a dedicated meta-class by selecting the meta-class or one of its instances. He has to choose a query set in the catalog, or create a new query set ('''UC1''') and then create a new query.
  
 
'''UC5 - Find a query in the catalog''': by scope, by name, by query set name, by return type.
 
'''UC5 - Find a query in the catalog''': by scope, by name, by query set name, by return type.
  
'''UC6 - Publish a model query''': The developer publish a query set to allow other user to install the query set in their working environment. A publish and/or installed query cannot be modified by the query set user (to be sure that the published model query set will never be modified). An installed model query set is available through the model query set catalog. A published query set has a version number.
+
'''UC6 - Publish a model query''': The developer publishes a query set to allow other users to install the query set in their working environment. A published and/or installed query cannot be modified by the query set user (to make sure that the published model query set will never be modified). An installed model query set is available through the model query set catalog. A published query set has a version number.

Revision as of 08:20, 18 February 2010

MoDisco
Website
Download
Community
Mailing ListForums
Bugzilla
Open
Help Wanted
Bug Day
Contribute
Browse SourceProject Set File

Use cases

This document assumes that:

  • A user is the actor which uses the query manager
  • A developer is a kind of user which creates queries.

UC1 - Create query set: The developer creates a query set by declaring its identifier and the used meta-models. Each query set contains one or more queries. The developer has to add queries in the new query set (UC2)

UC2 - Add a query in a query set: The user selects an existing query set and adds a new query in this query set. Each query has a name and this name is the query identifier. To add a model query the developer has to provide: the name, the parameters, the description and the implementation. All the model query sets are automatically detected and added into a catalog.

UC3 - Use a model query: To use a model query the user has to find it in the model query set catalog (UC5). To execute a query the developer has to provide an execution context (a set of models and of model elements) and the parameter values.

UC4 - Add a query to a meta-class: The user wants to create a query to a dedicated meta-class by selecting the meta-class or one of its instances. He has to choose a query set in the catalog, or create a new query set (UC1) and then create a new query.

UC5 - Find a query in the catalog: by scope, by name, by query set name, by return type.

UC6 - Publish a model query: The developer publishes a query set to allow other users to install the query set in their working environment. A published and/or installed query cannot be modified by the query set user (to make sure that the published model query set will never be modified). An installed model query set is available through the model query set catalog. A published query set has a version number.

Back to the top