Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Derived feature in OCL
Derived feature in OCL [message #536911] Mon, 31 May 2010 13:28
Karel Smutny is currently offline Karel SmutnyFriend
Messages: 22
Registered: July 2009
Junior Member
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,
Previous Topic:Unable to retrieve stereotypes applied to Interface
Next Topic:Derived feature in OCL
Goto Forum:

Current Time: Wed Jun 20 17:35:20 GMT 2018

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

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

Back to the top