From: Harry Butterworth <harry@hebutterworth.freeserve.co.uk>
To: Ewan Mellor <ewan@xensource.com>
Cc: Xen-devel <xen-devel@lists.xensource.com>
Subject: Re: Xen Management API Draft, version 0.4
Date: Fri, 07 Jul 2006 14:49:10 +0100 [thread overview]
Message-ID: <1152280150.7717.69.camel@localhost.localdomain> (raw)
In-Reply-To: <20060707131934.GA24259@leeni.uk.xensource.com>
> > I think this may be a bit unnatural and I think any required accessor
> > methods for constructor parameters are just a special case of accessor
> > methods required in general and they in turn are just a special case of
> > general purpose methods like the ones required to drive the vm
> > lifecycle.
>
> You've lost me. Could you give an example?
>From my understanding of your doc:
Class X has property Y implies constructor for class X takes parameter Y
and class X automatically gets at a get_Y method (and a set_Y method if
Y is RW).
But, what if the dynamic model for X has two states (say) where get_Y is
a valid operation in state A but not in state B.
An alternative way of saying this is that accessor methods are identity
state transitions on the dynamic model which happen to either pass or
return a single value and should be expressed in the same way that the
methods for the other state transitions are expressed.
i.e. little circular arrows that point back to the same state on the
dynamic model. The key point is that they aren't necessarily valid in
all states of the dynamic model.
So, I think that the bit in the document about an object having a list
of fields is unnecessary and breaks encapsulation as explained in the
googled reference I gave.
You need to use the use cases to get the dynamic model for the objects
right and then work out whether any accessor methods are required at all
and if so, which states of the dynamic model they are required in.
Harry.
next prev parent reply other threads:[~2006-07-07 13:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-03 15:53 Xen Management API Draft, version 0.4 Ewan Mellor
2006-07-04 11:55 ` Harry Butterworth
2006-07-07 12:18 ` Harry Butterworth
2006-07-07 13:22 ` Ewan Mellor
2006-07-07 14:32 ` Harry Butterworth
2006-07-07 13:16 ` Harry Butterworth
2006-07-07 13:19 ` Ewan Mellor
2006-07-07 13:49 ` Harry Butterworth [this message]
2006-07-07 14:31 ` Ewan Mellor
2006-07-07 14:57 ` Harry Butterworth
2006-07-07 15:10 ` Harry Butterworth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1152280150.7717.69.camel@localhost.localdomain \
--to=harry@hebutterworth.freeserve.co.uk \
--cc=ewan@xensource.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.