#!/usr/bin/env ruby
# $Source: /home/cvs/ESP/gen2/software/esp/example/schedule.rb,v $
# $Id: schedule.rb,v 1.5 2004/11/01 17:39:19 brent Exp $

#A Mission (Universal Coordinated Time) schedule might defined as follows:
Mission = schedule "UTC
   1/13/04  7:52",  "esp sample 2",    #sample puck in tube 2
  "         9:14",  "esp archive 4",   #archive puck in tube 4
  "1/15    22:10",  "esp process",     #1/15/04
  "         3:19",  "date",            #1/16/04 -- a non-esp OS command
  "2/03    12:19pm","esp sandhyb 6",   #2/03/04
  "from 4:19pm until 2/5 every +6:23",
                    "esp checkContext" #checkContext on tide until 4:19pm 2/5

4.times {Mission.add "Monday 15:14:52pst", "esp phoneHome"}

#Notes:
#  The schedule should be entered in order
#  Only the first time need be completely specified.
#  Local Time is assumed if no UTC or GMT designator is included.
#  Missing fields from subsequent times are copied from the previous one
#  appearing in the schedule.
#  Times lacking am or pm designators are assumed to be military form
#  If a time is incompletely specified, missing fields are adjusted 
#  as little as possible such that the time will be after the previous one.
#

Mission.show
