Hi Nigel,
As mentioned recently, the XML application is somewhat new.
The property API for individual workers should also apply to the
application as a whole, with the ability to define
application-properties that map to properties of individual workers.
I.e. the internals of the application should be somewhat opaque.
But the first fix is simply to add a setProperty method that takes a
"woker-name:property-name" string name.
There is a set of improvements to applications in the works over the
next few weeks and this will be included.
Jim
On 3/20/12 7:11 PM, Merritt, Nigel (Contractor) wrote:
*UNCLASSIFIED*
When the main cxx application has created workers using the XML
method, how is a worker instance obtained so that it's properties can
be accessed. The worker class provides get and set functions for
properties but the OA::Application class does not appear to have an
interface for accessing workers and only provides getProperty, which
is a readonly copy.
So given:
<application>
<instance worker='first_worker'>
<property name='level' value='4'/>
</instance>
</application>
How is the first_worker instance obtained so that the 'level' property
can be changed during runtime?
Cheers,
Nigel
*IMPORTANT*: This email remains the property of the Department of
Defence and is subject to the jurisdiction of section 70 of the Crimes
Act 1914. If you have received this email in error, you are requested
to contact the sender and delete the email.
_______________________________________________
opencpi_dev mailing list
[email protected]
http://lists.opencpi.org/listinfo.cgi/opencpi_dev-opencpi.org
_______________________________________________
opencpi_dev mailing list
[email protected]
http://lists.opencpi.org/listinfo.cgi/opencpi_dev-opencpi.org