Nigel/all,

This feature was recently pushed to the repo.
It will be in the ACI doc update in July.
It is an additional constructor for the OCPI::API::Property class where instead of providing a worker reference, you provide an app reference, and instead of a worker property name, you provide a string of "worker-instance-name:property-name").

The remaining obvious feature is to allow the assembly XML to include a property table, mapping assembly-level property names to individual (or multiple) worker instance properties, thus eliminating the "colon" syntax above, and making applications increasingly like workers.

Cheers,
Jim


On 6/24/12 9:34 PM, Merritt, Nigel (Contractor) wrote:
Fast property access [SEC=UNCLASSIFIED]

*UNCLASSIFIED*

In the discussion last week, it was mentioned that fast access to properties existed already, which is true when the components are manually created in code. However when using the XML method, the OcpiApplicationApi is the only interface and this does not contain functions to access the properties directly, it has the comment:

"// FIXME: add cached/efficient property methods like workers have"

It would be great to have a function that returned a Ocpi::Api::Property class so that the application can get one for each property requiring fast access, however from the comment above it looks like the intention is to use the OCPI_DATA_TYPE macro to provide functions for each data type?

Could you explain the intended interface and give a rough idea (if known) of timescale. I am looking at possibly adding this in this from the point of view of getting the Property instance as mentioned above but this may not be the intended direction for OpenCPI.

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

Reply via email to