Skip to main content



      Home
Home » Modeling » Papyrus » Existing InstanceSpecification as value
Existing InstanceSpecification as value [message #1832219] Sat, 12 September 2020 14:18 Go to next message
Eclipse UserFriend
Hi all,

is there a way to assign an existing InstanceSpecification to a value of a Slot of an InstanceSpecification typed by a class?

I managed to assign a newly created InstanceSpecification, but not an already existing.

If I look for an existing InstanceSpecification none is displayed.

/Carsten
Re: Existing InstanceSpecification as value [message #1832222 is a reply to message #1832219] Sat, 12 September 2020 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Yes. You have to assign an InstanceValue that may reference your InstanceSpecification. Bloated and confusing isn't it?

Regards

Ed Willink
Re: Existing InstanceSpecification as value [message #1832224 is a reply to message #1832222] Sat, 12 September 2020 15:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Well perhaps not really confusing once you realize that UML is an assembler language for which IDEs provide very little high level abstraction.

For relationships IDEs generally aggregate the creation of an Association and two Properties which is helpful, but you still have to tunnel down and configure them individually. Other concepts are much more naked.

If you are mad enough to use the UML Expression classes it's hard work.

If you use OCL, you get a high level abstraction so that you do not see that

a + b

is actually at least:

createOperationCallExp("+", createVariableExp("a"), createVariableExp("b"))

This hides the VariableExp in just the same way that you would like to have known nothing about the InstanceValue that converts an InstanceSpecification to a ValueSpecification. Yes, two different semantics for the "Specification" suffix.

Regards

Ed Willink
Re: Existing InstanceSpecification as value [message #1832259 is a reply to message #1832222] Mon, 14 September 2020 08:34 Go to previous message
Eclipse UserFriend
Hi Ed,
indeed, I simply forgot the InstanceValue element in between.
Many thanks,
Carsten
Previous Topic:Constraints on diagrams creation.
Next Topic:Problems by installation Papyrus IDE
Goto Forum:
  


Current Time: Mon Jul 14 18:00:37 EDT 2025

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

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

Back to the top