Wednesday, 15 September 2010

OCL constraint UML Profile Rational Software Architect -



OCL constraint UML Profile Rational Software Architect -

i have uml profile need add together constraint stereotype of modebehaviour extension of statemachine.

constraint: owned states must stereotyped mode, , owned transitions must stereotyped modetransition

for first part of constraint thinking may begin with: self.submachine refer owned states of modebehaviour? there don't know how see if these states stereotypes mode.

any direction helpful.

to find out whether element has particular stereotype attached, utilize getappliedstereotype function. example, if want find out whether self element has mystereotype stereotype myprofile profile, use

self.getappliedstereotype("myprofile::mystereotype") <> null

adapting particular utilize left exercise :)

profile ocl stereotype

No comments:

Post a Comment