A list for the developers of CellML tools

Text archives Help


[cellml-dev] retrieve main model component name


Chronological Thread 
  • From: p.pannarale at gmail.com (Paolo Pannarale)
  • Subject: [cellml-dev] retrieve main model component name
  • Date: Tue, 24 Jan 2012 17:29:48 +0100

Dear developers, I managed to programmatically integrate a cellml model
from java, writing my own jni which mainly encapsulate the runcellml.cpp
example of cis.
I had to adopt this solution because the integrationProgressObserver
methods weren't never called by the cis run in java.
by the way...I've one final issue:

when i get a variable from a computation target
"iface::cellml_api::CellMLVariable* source = ct->variable();"
how can I retrieve the component name of that variable in the main model
rather than in the source imported model?
in the case of multiple model imports I can't know which variable I'm
handling...

Thank you very much, Paolo

--
?[M]y work, which I?ve done for a long time, was not pursued in order to
gain the praise I now enjoy, but chiefly from a craving after knowledge,
which I notice resides in me more than in most other men. And
wherewithal, whenever I found out anything remarkable, I have thought it my
duty to put down my discovery on paper, so that all ingenious people might
be informed thereof.?
(van Leeuwenhoek, Letter to the Royal Society, June 12 1716)

?Make it as simple as possible. But not simpler?.
(Albert Einstein)

"The best way to predict the future is to invent it".
(Alan Kay)

___________________________________

Questo documento ? indirizzato esclusivamente al destinatario.
Tutte le informazioni ivi contenute, compresi eventuali allegati,
sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003
in materia di "privacy" e ne ? proibito l'utilizzo da parte di
altri soggetti. Se avesse ricevuto per errore questo messaggio,
La preghiamo cortesemente di contattare il mittente al pi? presto
e di cancellare il messaggio subito dopo. Grazie.
----
This document is exclusively intended for the stated addressee.
All information therein, including any attachment, are reserved
as per Italian D.Lgs. 196/2003 about privacy, and cannot be used
by third parties. In case you received this message by mistake,
please inform the sender and delete the message afterward.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.cellml.org/pipermail/cellml-tools-developers/attachments/20120124/a1f09dda/attachment.htm>




Archive powered by MHonArc 2.6.18.

Top of page