---------- Forwarded message ----------
From: David Gay <[EMAIL PROTECTED]>
Date: Aug 14, 2006 9:03 AM
Subject: Re: [Tinyos-help] Re: "Uses" parameterized interfaces
To: Arijit Ghosh <[EMAIL PROTECTED]>


On 8/13/06, Arijit Ghosh <[EMAIL PROTECTED]> wrote:
No that will not work.

Each of the two components B and C "provides" the
interface IF. Lets assume IF has a command
some_command:

interface IF {
 command result_t some_command();
}

B and C provides their own implementation.
Ex. in B, I have

command result_t IF.some_command() {
    /* Some implementation */
}

And in C:
command result_t IF.some_command() {
    /* Some different implementatio */
}

Now A wants to use the IF interface provided by B and
C.
How do I do it?

configuration X { }
implementation {
 components AM, B, C;

 AM.IF[0] -> B.IF;
 AM.IF[1] -> C.IF;
}
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to