- From: d.nickerson at auckland.ac.nz (David Nickerson)
- Subject: [cellml-discussion] Finding the units associated with a variable
- Date: Mon, 29 May 2006 10:55:41 +1200
>
>> It is already on the variable interface, so that is implied. That name
>
>> might also suggest that the units themselves are variable, and confuse
>
>> people.
>
>>
>
>>
>
> yeah, but I'm similarly confused with unitsElement - obviously units
>
> would be the best attribute but as you say, that would be invalid
>
> IDL...is there anything else we could call it?
>
>
>
>
>
How is it confusing exactly? The attribute gives/sets the object
>
representing the <units> element (and element is the technically correct
>
term to use from the XML specification), so it seems that unitsElement
>
actually spells out what it does quite clearly. I don't think I can
>
think of a better name than that (unless you are looking for a shorter
>
name, we could abbreviate to unitsEl, but that is ugly and confusing).
I think the issue I have is just the use of element at this level, I
prefer not to be thinking about the XML at all and let the API hide all
that from me unless I specifically need to dive into it.
However, if no one else has this problem then unitsElement is probably
not too bad...
Andre.
Archive powered by MHonArc 2.6.18.