1 : uml UML
UML, :
2
UML 17 : 1) 2 3 4 5 6
1
<1> (bind)
11.1 binding ( ):, + ID : int = 0 Map Item, Value, nclassid ( ):, + Map() + bind(i : Item, v : Value) : int OrderMap
<2> Person, BirthDate, Age,Age birthdate derive <<derive>> 11.2
11.2 derive +Age int Person <<derive>> +BirthDate int
<3> C++ friend <<friend>> UML ( ROSE) (specification) 11.3 color line color line : color,start_x
11.3 color + same_color(l : line, b : box) : int <<friend>> <<friend>> line - color : int - start_x : int - start_y : int - len : int box - color : int - up_x : int - up_y : int - low_x : int - low_y : int
<4> UML refine <<refine>>, 11.4 Optimized chessboard Simple
11.4 <<design model>> Optimized <<analysis model>> Simple chessboard (from Simpl e) chessboard (from Optimized) <<refine>>
<5> instantiate <<instantiate>>
<6> (<<use>>)
2 metaclass)
<1> instanceof UML instanceof InstanceOf <<instanceof>> 11.5 user <<actor>>, actor <<stereotype>> actor user actor actor user user actor instanceof
11.5 instanceof <<Actor>> User (from Actors) <<instanceof>> <<stereotype>> Actor (from 10.8 ) <<metaclass>> Class (from 10.8 )
<2> (powertype) <<powertype>>
11.6 Tree <<powertype>> <<powertype>> TreeSpecies Oak Elm Willow
3) package UML access (import)
<1>
<2>
4) UML
<1> include (base use case) (inclusion use case) <<include>>
<2> extend extension <<extend>>
5) 4
<1> become role <<become>>.
<2>
<3>
<4>
6) (trace) <<trace>>
3
11.7: BankAccount RealEstate Security
11.7 InterestBearingItem InsurableItem : Asset : BankAccount RealEstate Security : Stock Bond CheckingAccount SavingsAccount
1)
<1> disjoint 11. 8 Worker Butcher Baker( ) Driver( ) Worker
{disjoint, incomplete} Worker (diajoint), Worker. incomplete 11.8 Butcher Baker Driver Athlete overlapping, (Athlet) (Swimmer), (Golfer). {overlapping,incomplete} Swimmer Golfer
<2> overlapping 11.8 Athelet Swimmer (Golfer) Swimmer Golfer
<3>
<4>
2
4
1
11.9 Company Department (from 7.4) 1 1..* (from 15.1 )
2
11.10 UserGroup +user User +owner -key Password * * 1 *
3) qualification 11.11 Student (Teacher) Teacher Student Student
11.11 teacher teaches the Coures to Students Teacher ncourseid : int * 1 teacher teaches the Coures student take the course * Student 1 Course *
Teacher-Student UML qualifier target class, qualified class
11.11
4)
role-name : interface-name
11.12 interface specifier Person +supervisor:imanger * 1 +worker:iemployee
5 (composition)
11.13 Window Frame
6
11.14 Company +employer +employee Person * 1..* Job description datehired salary
5,, UML UML
UML realization
named stereotype, 11.15 (a) (b)
11..15 <<Interface>> IRuleAgennt AddRule() changerule() explaneaction() AccountBusinessRules IRuleAgennt acctrul e.dll (a) (b)
( 11.14) a IRuleAgent AccountBusiness (b) IRuleAgent, acctrule.dll AccountBusiness 11.16
11.16 Validate user Validation
6,
( )