|Class Object and Attributes issues [message #668425]
||Thu, 05 May 2011 15:49
| Valerian Merkling
Registered: May 2011
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 ?
Powered by FUDForum
. Page generated in 0.01584 seconds