I have started reading the tutorials,and I know some basical things,but I have 
no idea about how can I write this program.
I have to simulate 50 nodes whith tossim.. can u help me?
 

________________________________
 From: Sergio Valcarcel <[email protected]>
To: Ali Daylamani <[email protected]> 
Cc: "[email protected]" <[email protected]> 
Sent: Friday, February 3, 2012 1:13 PM
Subject: Re: [Tinyos-help] tiny os project
  

Hi,

You may start reviewing the tutorials to understand how to make a state machine 
in the motes, using timers, communications and so on.

Cheers!
Sergio



On Wed, Feb 1, 2012 at 12:11 AM, Ali Daylamani <[email protected]> wrote:

dear friends 
>can any body help me to write this application? 
>I have to write a programm in nesc that will be
run on some nodes and create a MIS (Maximal Independent set )
>To formally define the rules the following
predicates defined for each node v are needed
>  
>inNeighbor(v)≡∃w ∈N(v): w.state = IN. 
>waitNeighborWithLowerId(v)≡∃w ∈N(v): 
>w.state= WAIT ∧w.id <v.id. 
>inNeighborWithLowerId(v)≡∃w ∈N(v): 
>w.state= IN ∧w.id <v.id. 
>
>
>
>
>The
self-stabilizing algorithm AMIS uses the
followingfour
rules:
>1.  
>state = OUT∧・ハinNeighbor(v)→state := WAIT. 
>2.  
>state = WAIT ∧inNeighbor(v)→state := OUT. 
>3.  
>state = WAIT ∧・ハinNeighbor(v) ∧ 
>¬ waitNeighborWithLowerId(v)→state := IN. 
>4.  
>state = IN ∧inNeighbor(v)→state := OUT. 
>_______________________________________________
>Tinyos-help mailing list
>[email protected]
>https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to