OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xmile message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [xmile] example of <scale> and <range>


Hi Will,

Yes, they are both valid for variables.  The <scale> is the output scale, e.g., for graphs, while the <range> is the input range, e.g., for sliders.  I don't see how they would apply to groups, but yes for the rest - for anything that has a value.

I include a simple example below.  Population has a global scale for graphs (which can be overridden in each graph).  birth_rate has a global input range (which can be overridden in a slider or knob or whatever).  Both also have their precision limited for both input and output.

Karim

        <stock name="Population">
            <eqn>100</eqn>
            <inflow>being_born</inflow>
            <scale min="0" max="200" />
            <format precision="0.1" />
        </stock>
        <flow name="being_born">
            <eqn>birth_rate*Population</eqn>
        </flow>
        <aux name="birth_rate">
            <eqn>0.05</eqn>
            <range min="0" max="0.1" />
            <format precision="0.01" />
        </aux>




On Fri, Jun 27, 2014 at 8:13 PM, Will Glass-Husain <wglass@forio.com> wrote:
Hi,

I'm trying to add <scale> and <range> to the schema for variables, but can't figure out the difference.  Are they both valid for variables?

Billy or Karim, can you please give a complete example of <variable> containing the scale, range (if appropriate) and format?

Am I right that this applies to stock, flow, aux, and group tag?

Thanks WILL

--
William Glass-Husain   /forio  |  +1 (415) 440 7500 x89  |  forio.com




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]