Hello,
i am a little bit confused about a way how the components
are configured by a XML configuration file.
A tried to solve the controller exercise ( 7 )
from Peter, where a application.cpf should read
the properties of controller component from
controller.cpf . The application.cpf already
defines properties of controller component:
...
AND the controller.cpf defines also the same properties of
the same component.
The offered solution is to use
inside the Controller properties definition in application.cpf which would cause redefinition of all previous defined Controller properties. It is right ?
It is not better to define just required controller property
Property
in controller.cpf and use in application.cpf just "update property" ?
-vitali
Component properties configuration from *.pcf file
i am a little bit confused about a way how the components are configured by a XML configuration file.
A tried to solve the controller exercise ( 7 ) from Peter, where a application.cpf should read the properties of controller component from controller.cpf . The application.cpf already defines properties of controller component:
Sorry for the confusion 'controller.cpf' is in this exercise not the same as 'Controller.cpf' (with capital C). controller.cpf is used to start the application with just one component: UseCase::Controller. The Controller.cpf file (check out the solution) contains the real properties (Kp).
The offered solution is to use
It is not better to define just required controller property
So that must be 'Controller.cpf'. I'll rename the 'controller.cpf' in the example to something more meaningful.
Also check the Deployment Component Manual http://www.orocos.org/stable/documentation/ocl/v1.6.x/doc-xml/ocl-overview.html
Thanks for the feedback, Peter