Author Topic: Set Run State improvement  (Read 2668 times)

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Set Run State improvement
« on: May 24, 2004, 05:02:12 pm »
May I suggest that the Set Run State function be extended to include modelling the values returned by Property methods.

Consider an object with a derived property.   That is, the value returned is dependent on some processing of the objects attributes.  For example, "isInCredit" is a boolean value calculated, say, from the attributes "account_balance", "outstanding_credit_notes", "forward_orders" etc.

At the moment all these attribute values have to be set and shown on the diagram and there is no way to simply indicate the value returned by the property.

One could add a "virtual" attribute to the class for the purposes of the model, but the purist in me says there has to be a better way.

Any support?

Bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.