1 / 12

UML-B: Formal Modeling and Design Aided by UML

UML-B: Formal Modeling and Design Aided by UML. B-Specification. -state model based, formal specification -3steps(specification,implementation and implementation) -for refinement it requires ‘refinement relation’. 0.. 1. UML-B model. +pbook. 1. Difficulties Translating from UML to B.

bruno
Download Presentation

UML-B: Formal Modeling and Design Aided by UML

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UML-B: Formal Modeling and Design Aided by UML

  2. B-Specification -state model based, formal specification -3steps(specification,implementation and implementation) -for refinement it requires ‘refinement relation’

  3. 0.. 1 UML-B model +pbook 1

  4. Difficulties Translating from UML to B • B is not object-oriented • Restrictions on B component and variable access • Simultaneous calls to several operations of another machine are not allowed UML-B profile: -uses stereotypes -defines tagged values(invariants,guards etc)

  5. UML-B Model Architecture Class Diagrams -attributes -associations +current 0..* 0..1 1 0..* +cellChannels +dspChannels 0..* 0..*

  6. TRANSLATION OF ųB -OCL=def:myExpression:integer=a → select(ocllsTypeOf(S)).x → sum() -ųB=Σi.(i ε C ۸ i ε S ۸ i ε a‌i.x) BEHAVIOUR - Invariants instance invariants class invariants - Operation Specification - Initialization - Appearance and Disappearance of class instances - subroutines +channels

  7. SPECIALIZATION OF CLASSES

  8. BEHAVIOURAL SPECIFICATION BY STATE MACHINE • State Dependant Invariants • Example of state Machine Behaviour specification Inc / bx :=bx+1 Inc / bx :=bx+10 new BB Non_Zero Zero Dec [bx=1] Dec [bx>1] • State machine decision point s2 [G2] /A2 E1 [G1] /A1 s1 [G4] /A4 s3 [G3] /A3 s4 [G5] /A5

  9. [G8]/A8 s8 E10[G10]/A10 s10 s9 [G9]/A9 E5[G5]/A5 s5 [G7]/A7 s7 s6 E6[G6]/A6

  10. Alternative Semantics for UML-B State Machines s1 s2 REFINEMENT refines <<refinement>> cellphone1 <<machine>> cellphone

  11. Refinement in UML-B +current PHONE CELL Powerlevel:INT +TRChannel +cellTRChannels +CBChannel +cellCBChannel +cellASChannles +ASChannels CBCH TRAFFIC ACCESS callkind:CALLKIND CHANNEL broadcasting:BOOL=FALSE

  12. Refinement Relation

More Related