README 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. -------------------------------------------------------------------------------
  2. DojoX Timing
  3. -------------------------------------------------------------------------------
  4. Version 0.1.0
  5. Release date: 08/08/2007
  6. -------------------------------------------------------------------------------
  7. Project state:
  8. experimental
  9. -------------------------------------------------------------------------------
  10. Credits
  11. Tom Trenka (ttrenka AT gmail.com): original Timer, Streamer, Thread and ThreadPool
  12. Wolfram Kriesing (http://wolfram.kriesing.de/blog/): Sequence
  13. Jonathan Bond-Caron (jbondc AT gmail.com): port of Timer and Streamer
  14. Pete Higgins (phiggins AT gmail.com): port of Sequence
  15. Mike Wilcox (anm8tr AT yahoo.com): dojo.doLater
  16. -------------------------------------------------------------------------------
  17. Project description
  18. DojoX Timing is a project that deals with any kind of advanced use of timing
  19. constructs. The central object, dojox.timing.Timer (included by default), is
  20. a simple object that fires a callback on each tick of the timer, as well as
  21. when starting or stopping it. The interval of each tick is settable, but the
  22. default is 1 second--useful for driving something such as a clock.
  23. dojox.timing.Streamer is an object designed to facilitate streaming/buffer-type
  24. scenarios; it takes an input and an output function, will execute the output
  25. function onTick, and run the input function when the internal buffer gets
  26. beneath a certain threshold of items. This can be useful for something timed--
  27. such as updating a data plot at every N interval, and getting new data from
  28. a source when there's less than X data points in the internal buffer (think
  29. real-time data updating).
  30. dojox.timing.Sequencer is an object, similar to Streamer, that will allow you
  31. to set up a set of functions to be executed in a specific order, at specific
  32. intervals.
  33. The DojoX Timing ThreadPool is a port from the original implementation in the
  34. f(m) library. It allows a user to feed a set of callback functions (wrapped
  35. in a Thread constructor) to a pool for background processing.
  36. dojo.doLater() provides a simple mechanism that checks a conditional before allowing
  37. your function to continue. If the conditional is false, the function is blocked and continually
  38. re-called, with arguments, until the conditional passes.
  39. -------------------------------------------------------------------------------
  40. Dependencies:
  41. DojoX Timing only relies on the Dojo Base.
  42. -------------------------------------------------------------------------------
  43. Documentation
  44. TBD.
  45. -------------------------------------------------------------------------------
  46. Installation instructions
  47. Grab the following from the Dojo SVN Repository:
  48. http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/timing.js
  49. http://svn.dojotoolkit.org/var/src/dojo/dojox/trunk/timing/*
  50. Install into the following directory structure:
  51. /dojox/timing.js
  52. /dojox/timing/
  53. ...which should be at the same level as your Dojo checkout.