Abstract
We present a method for automatically generating a prototype from a UML model of system requirements that consists of a use-case model and a conceptual class model. The method is based on a formalization of UML in which a use case is formally specified by a pair of pre and post conditions in the context of a conceptual class model. To generate a prototype, we translate the pre and post conditions of a use case into a sequence of executable atomic actions. These actions are to create or delete an object, update an object, establish or remove a link between two objects with respect to an association. Such a prototype can be used to validate requirements and check system invariants. An automated prototype generator is developed in Java, and a simple library system is used as an example to illustrate the feasibility of the method.
| Original language | English |
|---|---|
| Pages (from-to) | 255-265 |
| Number of pages | 11 |
| Journal | Lecture Notes in Computer Science |
| Volume | 3347 |
| DOIs | |
| State | Published - 2004 |
| Externally published | Yes |
Keywords
- Code generation
- Formal specification
- Prototype
- Requirements analysis