Book a Demo

Author Topic: Object instances  (Read 3245 times)

dkunzman

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Object instances
« on: December 27, 2007, 10:27:30 am »
Hi -

I am creating a sequence diagram with EA 7.0.818 and would like to create an object instance.  for example I would like to create a instance of the object student named "sparks".  How would you do that?  According to UML 2.0 the object instance should have an underline like sparks::student.  Any ideas?

thanks, doug

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Object instances
« Reply #1 on: January 02, 2008, 05:31:11 pm »
Go to the project browser and hit the new element button or right-click and select ADD->Add new element. Name it "student" (make sure element type is set to "class" - I think this is the default). Then, with your sequence diagram open, click on your student class and drag to the diagram and drop. Select "as instance of element (object)" and name it "sparks". that should do it?
I believe the underlining notation only applies to class diagrams and not interactions such as sequence diagrams.  

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Object instances
« Reply #2 on: January 06, 2008, 02:08:29 pm »
Yes, object names should be underlined, except when they are at the head of a lifeline on a sequence diagram. I don't think it is explicitly stated in the spec, but every example sequence diagram in the UML 2.1.1 Superstructure shows the name not underlined.
The Sparx Team
[email protected]