Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Class Object and Attributes issues (can't set the value of an object's attribute for a class)
Class Object and Attributes issues [message #668425] Thu, 05 May 2011 11:49 Go to previous message
Valerian Merkling is currently offline Valerian Merkling
Messages: 71
Registered: May 2011
Member
Hi !

I'm working with Papyrus 0.7, and with uml2

Here is what i want to do :

A class Transport, with an atribute Distance: Integer.

Now i want to make a class DeliveryA, which own an instance of Transport, with a fixed value of 1000 for Distance.

I'm aiming code generation(with Acceleo), and be able to say that each instance of DeliveryAcreate a new Transport with 1000 in its constructor.

Right now i'm trying to add a Property to DeliveryA, set its type to Transport, and now looking for somethings like a subproperty field, but i'm a bit lost.

And i don't want to use stereotypefor this.

I don't really know if my problem come from a bad understanding of UML or Papyrus, or maybe i'm doing it all wrong ... Can someone help me ?

Thanks !
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Port and Connectors Question
Next Topic:(no subject)
Goto Forum:
  


Current Time: Thu May 23 17:17:53 EDT 2013

Powered by FUDForum. Page generated in 0.01629 seconds