Your SlideShare is downloading. ×
0
Executable UML – UML2
Executable UML – UML2
Executable UML – UML2
Executable UML – UML2
Executable UML – UML2
Executable UML – UML2
Executable UML – UML2
Executable UML – UML2
Executable UML – UML2
Executable UML – UML2
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Executable UML – UML2

737

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
737
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
53
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Executable UML – UML2 The Need for xUML With Acknowledgement to Kennedy-Carter: http:// www.kc.com Moh Ibrahim, Alex Fedorec & Keith Rennolls The University of Greenwich
  • 2. Why is the UML 1.x… not executable ? <ul><li>It is ‘ computationally ’ incomplete </li></ul><ul><ul><li>UML describes a system in, broadly, two ways: </li></ul></ul><ul><ul><ul><li>by specifying the desired results (use cases, sequence diagrams) </li></ul></ul></ul><ul><ul><ul><li>by specifying the software that, when executed, will produce the desired results (classes, associations, operations, state machines) </li></ul></ul></ul><ul><ul><li>The latter specification of behaviour is the basis for implementing the system, but is missing key ingredients: </li></ul></ul><ul><ul><ul><li>the implementation of operations (methods) are specified only by a “ language dependent ” text string </li></ul></ul></ul><ul><ul><ul><li>the actions associated with state machines (and methods) are specified either by a text string, or by using the “action” part of the UML </li></ul></ul></ul>Action Terminate Action DestroyAction Uninterpreted Action CreateAction CallAction ReturnAction SendAction
  • 3. Action Specifications in UML 1.x <ul><li>Cannot be attached to methods and therefore </li></ul><ul><li>cannot be used to specify operations </li></ul><ul><li>Do not cover the full range of information required to model real behaviour </li></ul><ul><ul><li>No conditional logic </li></ul></ul><ul><ul><li>Do not deal with internal data within an Action Sequence </li></ul></ul><ul><ul><li>Cannot describe reading and writing of attributes </li></ul></ul><ul><ul><li>Cannot describe manipulation and navigation of associations </li></ul></ul><ul><ul><li>Cannot describe parallel behaviour </li></ul></ul><ul><ul><li>Not related to the UML type model </li></ul></ul><ul><li>Do not have fully defined semantics </li></ul><ul><li>..... were intended only as a place holder for future UML development </li></ul>
  • 4. Why is the current UML not executable ? <ul><li>It is big </li></ul><ul><ul><li>UML was conceived as a Universal as well as Unified modelling language </li></ul></ul><ul><ul><li>UML covers many development paradigms </li></ul></ul><ul><ul><ul><li>Synchronous and asynchronous behaviour </li></ul></ul></ul><ul><ul><ul><li>State dependent and stateless behaviour </li></ul></ul></ul><ul><ul><ul><li>Mealy state machines and Moore state machines </li></ul></ul></ul><ul><ul><ul><li>Flat state models and Harel state charts </li></ul></ul></ul><ul><ul><ul><li>Abstract analysis modelling and code specific design modelling </li></ul></ul></ul><ul><ul><ul><li>Language specific modelling and abstract modelling </li></ul></ul></ul><ul><ul><li>Sometimes the breadth of coverage can lead to ambiguity... </li></ul></ul><ul><ul><li>e.g. what happens if you execute a “return” in a transition action </li></ul></ul><ul><ul><li>stimulated by “call” (synchronous) event ? </li></ul></ul>I have absolutely no idea because that combination of behaviour is undefined! Transaction in Progress Transaction Complete entry/ log transaction Transaction Completed/ if is_aborted then return
  • 5. Actions and the UML <ul><li>the Action Specification Language, operates at the same level of abstraction as UML… …but embodies the precision to allow models to be executed and consequently supports translation of the models into any language. </li></ul><ul><li>The OMG has recognised the need for a full action specification in the UML </li></ul><ul><li>In November 1998 the OMG issued a Request for Proposals on Precise Action Semantics for the UML </li></ul>
  • 6. What is xUML? <ul><li>xUML is </li></ul><ul><ul><li>an executable version of the UML, with… </li></ul></ul><ul><ul><ul><li>clearly defined simple model structure </li></ul></ul></ul><ul><ul><ul><li>a precise semantics for actions, incorporated into the UML 2 standard </li></ul></ul></ul><ul><ul><ul><li>a compliant action specification language </li></ul></ul></ul><ul><ul><ul><li>an accompanying process </li></ul></ul></ul><ul><ul><li>a proven development process , oriented towards… </li></ul></ul><ul><ul><ul><li>executable modelling </li></ul></ul></ul><ul><ul><ul><li>large-scale reuse </li></ul></ul></ul><ul><ul><ul><li>pattern based design </li></ul></ul></ul>UML V1.x xUML = Semantically Weak Elements - Precisely Defined Action Semantics +
  • 7. Why an Executable UML ? <ul><li>Measurable Deliverables </li></ul><ul><ul><li>Models that execute tests correctly </li></ul></ul><ul><ul><li>Can be delivered in phases with progressive integration </li></ul></ul><ul><ul><ul><li>Use case by use case </li></ul></ul></ul><ul><ul><ul><li>Class group by class group </li></ul></ul></ul><ul><li>Early Verification </li></ul><ul><ul><li>Requirements can be validated before extensive system design and coding </li></ul></ul>This supports iterative and incremental development An executable model can be developed and tested even if it supports only a single use case Groups of classes at the collaboration, subsystem, package or domain level can be modelled and executed Admit In Patient User Interface U log incident Patient Admin Statements Resource Alloc 1:dialogue ok hit 2:admit in patient 3:assign bed 4:bed assigned 5:confirm admission 6:display dialogue 8:reject admission 9:display dialogue 1:op selects admit in patient 2: 3:find a suitable bed 4:if bed available then 5: confirm admission 6: display “success” dialogue 7: log admission details 8:else reject admission 9: display “failure” dialogue
  • 8. Why an Executable UML ? <ul><li>Improves the quality of the modelling </li></ul><ul><ul><li>Models can be judged not just on subjective criteria, but on whether they exhibit the desired behaviour and thus meet requirements </li></ul></ul><ul><li>Focused analyst objective </li></ul><ul><ul><li>The aim is to build models that execute correctly </li></ul></ul><ul><ul><li>Avoids “analysis paralysis” </li></ul></ul><ul><ul><li>Reviews criteria are objective and therefore more useful </li></ul></ul>Does this identify the correct runway to deallocate ? Aircraft clearedRunway() Runway deallocate() 0..1 is_ allocated_to R9 0..1 # obtain an instance handle for # the runway we just landed on theRunway = this -> R9.”is_allocated_to” # remove the association unlink this R9 theRunway # tell the runway that aircraft has landed [] = deallocate[] on theRunway
  • 9. Why an Executable UML ? <ul><ul><li>..... eliminates maintenance problems due to redundant analysis and design models </li></ul></ul><ul><li>Supports extensive code generation if desired </li></ul><ul><ul><li>Lack of ambiguity means automatic code generation will deliver functionally correct code </li></ul></ul><ul><li>A solid specification </li></ul><ul><ul><li>Supports multiple development teams </li></ul></ul><ul><ul><li>Well defined models mean well defined interfaces </li></ul></ul><ul><li>Easier Transition to Design and Code </li></ul><ul><ul><li>No ambiguity in the models - the models have a single clear interpretation </li></ul></ul><ul><ul><li>Design can be specified using abstract patterns </li></ul></ul>GenericContainer HashTable LinkedList BoundedArray GenericClass 0..* 1 <TypicalClass>
  • 10. Why an Executable UML ? <ul><li>and finally ..... It’s more fun ! </li></ul><ul><ul><li>Analysts see the results of their efforts more rapidly and have more confidence that what they are doing is correct </li></ul></ul><ul><ul><li>Managers get more confidence that progress is being made </li></ul></ul>Round-trip Software Engineering - Quality Assurance Problem / Requirement Solution / Implementation Can miss the solution to the problem?

×