|
|
Re: Custom primitive types in OCL [message #1207261 is a reply to message #1206816] |
Sun, 24 November 2013 13:31 |
Damjan Temelkovski Messages: 16 Registered: November 2013 |
Junior Member |
|
|
Thank you Ed,
You are incredibly helpful. I am only starting to learn OCL, so perhaps I don't know the right way to access the needed property. But, so far I couldn't find some information about using custom types in OCL.
This is what I am trying to achieve:
I am sure I saw a constraint for the Nfp somewhere that was in the form "self.Nfp1 < (5, CustomUnit)". I have tried this as well, and maybe it is not possible in OCL. I thought if I can overload the operator in OCL to work for CustomTypes, or if I can access the 'value' of the custom type, that it would work.
Thank you,
Damjan
-
Attachment: ocl_nfp.png
(Size: 83.68KB, Downloaded 485 times)
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04587 seconds