On Feb 17, 2010, at 12:31 PM, Xiaohui Liu wrote:
> Thanks, I understand that.
>
> But how could implementation of CtpP.StdControl be delegated to both
> Router.StdControl and Estimator.StdControl. What would happen if I call
> CtpP.StdControl.start()? Which one would be actually called,
> Router.StdControl.start() or Estimator.StdControl.start()?
>
> Another thing I don't understand is the following (red):
> In CtpP
> configuration CtpP {
> provides {
> ....
> }
>
> uses {
> ....
> interface CollectionDebug;
> }
> .......
> components new CtpRoutingEngineP(TREE_ROUTING_TABLE_SIZE, 128, 512000) as
> Router;
>
> Router.CollectionDebug = CollectionDebug;
>
>
> In CtpRoutingEngineP
> generic module CtpRoutingEngineP(uint8_t routingTableSize, uint32_t
> minInterval, uint32_t maxInterval) {
> provides {
> .....
> }
> uses {
> .....
> interface CollectionDebug;
> .....
> }
> }
>
>
> Why are the left and right side of "=" both using the interface
> CollectionDebug? Then who is providing that interface?
Please read associated sections of the programming manuals: I (and David Gay)
wrote them for a reason. :)
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help