Skip to main content



      Home
Home » Modeling » UML2 » Derived feature in OCL
Derived feature in OCL [message #536911] Mon, 31 May 2010 09:28
Eclipse UserFriend
Hello all,

How would one define a derived feature in OCL, please? There is a nice presentation showing operation bodies and invariant constraints in OCL, they are then directly generated into code.

How can I do the same for derived features?

Let's assume there is a class

class A {
  + /a: B [*] {union}
  + /b: B [*] {subsets a}
}


I have tried to:

- define getB(): B[*] method, but the genmodel wizard has complained (applying EReference stereotype and setting transient and volatile to true didn't help)
- define a badicGetB(): B[*], but there were two such method generated (one from a model, one to be implemented by me)

Thank you for any help,
Karel
Previous Topic:Unable to retrieve stereotypes applied to Interface
Next Topic:Derived feature in OCL
Goto Forum:
  


Current Time: Sun Jul 06 10:53:10 EDT 2025

Powered by FUDForum. Page generated in 0.04991 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top