home *** CD-ROM | disk | FTP | other *** search
/ Programmer's ROM - The Computer Language Library / programmersrom.iso / ada / misc / prior.pro < prev    next >
Encoding:
Text File  |  1988-05-03  |  3.5 KB  |  74 lines

  1.  
  2. -------- SIMTEL20 Ada Software Repository Prologue ------------
  3. --                                                           -*
  4. -- Unit name    : PRIORITIZED_QUEUE
  5. -- Version      : 1.0
  6. -- Author       : John A. Anderson
  7. --              : TEXAS INSTRUMENTS MS 8006
  8. --              : P.O. BOX 801
  9. --              : MCKINNEY, TEXAS   75069
  10. -- DDN Address  : ANDERSON%TI-EG@CSNET-RELAY
  11. -- Copyright    : (c) 1984 John A. Anderson
  12. -- Date created :  OCTOBER  2, 1984
  13. -- Release date :  NOVEMBER 27, 1984
  14. -- Last update  :  ANDERSON Wed Nov 27, 1984
  15. -- Machine/System Compiled/Run on: DEC VAX/VMS, DEC Ada
  16. --                                                           -*
  17. ---------------------------------------------------------------
  18. --                                                           -*
  19. -- Keywords     :  QUEUE
  20. ----------------:  PRIORITIZED QUEUE
  21. --
  22. -- Abstract     :  This generic package creates a Prioritized
  23. ----------------:  Queue of objects. The Queue is First-In,
  24. ----------------:  First-Out except where overridden by the
  25. ----------------:  priority.
  26. ----------------:  The priority may be any discrete type.
  27. ----------------:  It is assumed that the priorities are from
  28. ----------------:  lowest to highest.  The type of data structure
  29. ----------------:  to be instantiated for the queue may be any
  30. ----------------:  type having assignment and equality.  Other
  31. ----------------:  types may be enqueued by using access types.
  32. ----------------:  (i.e. Access variable pointing to a task.)
  33. ----------------:  The space for the Queue is allocated dynamically
  34. ----------------:  with garbage collection left up to the target
  35. ----------------:  system.
  36. --                                                           -*
  37. ------------------ Revision history ---------------------------
  38. --                                                           -*
  39. -- DATE         VERSION    AUTHOR                  HISTORY
  40. -- 11/27/84      1.0    Anderson        Initial Release
  41. --                                                           -*
  42. ------------------ Distribution and Copyright -----------------
  43. --                                                           -*
  44. -- This prologue must be included in all copies of this software.
  45. --
  46. -- This software is copyright by the author.
  47. --
  48. -- This software is released to the Ada community.
  49. -- This software is released to the Public Domain (note:
  50. --   software released to the Public Domain is not subject
  51. --   to copyright protection).
  52. -- Restrictions on use or distribution:  NONE
  53. --                                                           -*
  54. ------------------ Disclaimer ---------------------------------
  55. --                                                           -*
  56. -- This software and its documentation are provided "AS IS" and
  57. -- without any expressed or implied warranties whatsoever.
  58. -- No warranties as to performance, merchantability, or fitness
  59. -- for a particular purpose exist.
  60. --
  61. -- Because of the diversity of conditions and hardware under
  62. -- which this software may be used, no warranty of fitness for
  63. -- a particular purpose is offered.  The user is advised to
  64. -- test the software thoroughly before relying on it.  The user
  65. -- must assume the entire risk and liability of using this
  66. -- software.
  67. --
  68. -- In no event shall any person or organization of people be
  69. -- held responsible for any direct, indirect, consequential
  70. -- or inconsequential damages or lost profits.
  71. --                                                           -*
  72. -------------------END-PROLOGUE--------------------------------
  73.  
  74.