Code Search for Developers
 
 
  

delay.asc from EmStar at Krugle


Show delay.asc syntax highlighted

Using the delay function in .sim files
======================================
The EmStar Team
$Id: delay.asc,v 1.2 2005/03/08 10:47:13 ndbusek Exp $


The delay function allows the user to start a simulated process either a fixed or variable delay after a device activates.  An example showing the usage is:

`&delay(args="-r 10 -R 60",prev=mote0);`

  process my_process {
     type = daemon;
     waitfor = delay;
     ....
  }

delay will start a randomized delay after mote0 comes up, and then will run my_process after the delay is over.  

Arguments for delay:
--------------------

 obj.../emrun/delay -h

 usage: delay [ -i <interval> | [-r <rand_low>] -R <rand_high> ] [ -H ]

 Arguments:
    --interval <sec>: seconds to delay
    --rand_low <sec>: low end of random range of seconds to delay
    --rand_high <sec>: high end of random range of seconds to delay
    --hang: hang instead of just exiting




See more files for this project here

EmStar

EmStar is a software system for developing and deploying wireless sensor networks involving Linux-based platforms. As the wireless sensor network community has attempted to deploy more complex designs---large-scale, long-lived systems that need self-organization and adaptivity---a number of difficult software design issues have arisen. Advances in software design have not kept pace with the capabilities of hardware. This is because designing for an adaptive, efficient, and useful sensor network has turned out to be surprisingly complex and difficult. EmStar is a Linux-based software framework, whose goal is to dramatically reduce this complexity, enabling work to be shared and reused, and simplifying and speeding the design of new sensor network applications.

Project homepage: http://cvs.cens.ucla.edu/emstar/
Programming language(s): C,Shell Script
License: other

  misc/
    queue.asc
  building_an_array.asc
  delay.asc
  emcee.asc
  emsim.asc
  emtos.asc
  events.asc
  gdb.asc
  http.asc
  index.asc
  link.asc
  make.asc
  misc.asc
  node.info
  prog_model.asc
  run.asc
  sim_component.asc