Book a Demo

Author Topic: Setting Property Values In Sequence Diagrams  (Read 4600 times)

TrtnJohn

  • EA User
  • **
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Setting Property Values In Sequence Diagrams
« on: November 09, 2005, 05:16:22 pm »
When using a class that doesn't have specific getter and setter methods for a property.  (Such as VB.NET).  How do you show setting a property value as a message in a sequence diagram?

thomaskilian

  • Guest
Re: Setting Property Values In Sequence Diagrams
« Reply #1 on: November 09, 2005, 11:32:57 pm »
Sequence diagram only show messages. If you want to show an assignement to a property you have to use setters. Why not use a setter in the diagram? You could use a certain stereotype to indicate direct use.

TrtnJohn

  • EA User
  • **
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: Setting Property Values In Sequence Diagrams
« Reply #2 on: November 10, 2005, 08:59:55 am »
Quote
Sequence diagram only show messages. If you want to show an assignement to a property you have to use setters. Why not use a setter in the diagram? You could use a certain stereotype to indicate direct use.


I can add a specific setter method in the class for the sequence diagram.  But, then I need to change it back to a single method when I generate the code.  Won't this mess up my original sequence diagram if I remove the setter method later?

thomaskilian

  • Guest
Re: Setting Property Values In Sequence Diagrams
« Reply #3 on: November 10, 2005, 09:36:15 am »
As far as I remember you can use also non-existant methods (by writing plain text) for method calls in seq.-diagrams. Maybe that could be a way to handle it ???

TrtnJohn

  • EA User
  • **
  • Posts: 176
  • Karma: +0/-0
    • View Profile
Re: Setting Property Values In Sequence Diagrams
« Reply #4 on: November 10, 2005, 09:49:04 am »
Quote
As far as I remember you can use also non-existant methods (by writing plain text) for method calls in seq.-diagrams. Maybe that could be a way to handle it ???


Thanks Thomas.  That's what I was doing.  I was just hoping there was some tricky EA setting I overlooked.  I am always amazed by the things I don't know about EA.