A list for the developers of CellML tools

Text archives Help


[cellml-dev] r2112 - in pce/trunk/chrome/content: . controls ui util


Chronological Thread 
  • From: r.britten at auckland.ac.nz (Randall Britten)
  • Subject: [cellml-dev] r2112 - in pce/trunk/chrome/content: . controls ui util
  • Date: Thu, 21 Feb 2008 11:19:58 +1300

Hi Andrew

I managed to decode the other variable abbreviations, but what is "mnl" in
"listFlaggedEquations"?

Also, perhaps the specifications of the variety of languages that can be
generated should be distributed with the CellML-API, under an associated
"utilities" directory?

Regads,
Randall

> -----Original Message-----
> From: automated-notifications-bounces at cellml.org [mailto:automated-
> notifications-bounces at cellml.org] On Behalf Of CellML Automated
> Notifications
> Sent: Wednesday, 20 February 2008 4:25 p.m.
> To: automated-notifications at cellml.org
> Subject: r2112 - in pce/trunk/chrome/content: . controls ui util
>
> Author: amil082
> Date: 2008-02-20 16:25:19 +1300 (Wed, 20 Feb 2008)
> New Revision: 2112
>
> Added:
> pce/trunk/chrome/content/exportProcedural.xul
> pce/trunk/chrome/content/ui/ExportProcedural.js
> pce/trunk/chrome/content/util/CodeGeneration.js
> Modified:
> pce/trunk/chrome/content/controls/integrationsettings.xml
> pce/trunk/chrome/content/controls/model.xml
> pce/trunk/chrome/content/pcenv.xul
> Log:
> Added support for an "Export to C" function.
>
> This also involved a minor refactoring of how the integrationsettings
> control
> reports errors so that some of the functions involved are shared with
> the
> procedural code export.
>
> Fixes tracker item 110.
>

...

> +function listFlaggedEquations(cci)
> +{
> + mnl = cci.flaggedEquations;
> + var str = "";
> +
> + var i, l = mnl.length;
> + for (i = 0; i < l; i++)
> + {
> + var apply = mnl.item(i);
> + var math = apply.parentNode.QueryInterface
> + (Components.interfaces.domIElement);
> + str += " * Equation";
> + apply = apply.QueryInterface
> + (Components.interfaces.domIElement);
> + var applyId = apply.getAttribute("id");
> + var mathId = math.getAttribute("id");
> + if (applyId != "")
> + str += " in apply element with id " + applyId;
> + if (mathId != "")
> + str += " in math element with id " + mathId;
> + if (mathId == "" && applyId == "")
> + str += " with no id on the apply or math element";
> + str += ".\n";
> + }
> +
> + return str;
> +}
>





Archive powered by MHonArc 2.6.18.

Top of page