uml - Representing insertion of a already created object -


i'm modeling sequence diagram code this:

void myobject::createadevice{    device* somedevice = new device();    devices[i] = somedevice;    screen* scr = new screen();    somedevice->addscreen(scr);    ... } 

this code have doubts. i'm modelling no problem until call of somedevice->addscreen(). i've created self message object creation device , screen objects. i'm failing represent last line. how can that?

p.s: i'm using enterprise architect

the device , screen objects needs own lifelines. new operator can represented messages device , screen. addscreen message device.


Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -