Hi,
so far I use the deployer to connect ports of my components, ...
I would also like to 'connect' methods. So far I'm using the following code in
my configureHook:
readMeasurement = this->getPeer("Reader")->methods()-
>getMethod<void(void)>("readMeasurement");
I would like to do this in my deployer. Is this functionality provided?
Tinne
Using deployer to connect methods?
On Friday 20 March 2009 14:24:18 Tinne De Laet wrote:
> Hi,
>
> so far I use the deployer to connect ports of my components, ...
> I would also like to 'connect' methods. So far I'm using the following code
> in my configureHook:
>
> readMeasurement = this->getPeer("Reader")->methods()-
>
> >getMethod<void(void)>("readMeasurement");
>
> I would like to do this in my deployer. Is this functionality provided?
No. But it's indeed a common construction one wonders how to automate.
The deployer could only set this up if both caller and sender have this method
in their TaskContext interface. Which means that 'caller.readMeasurement()'
would be equivalent to 'Reader.readMeasurement()'. Wouldn't that lead to
confusion on the interface level ?
Peter