###################################################################
# Class:   MissionList
# Purpose: Encapsulate a list of mission configuration files in
#          a Ruby class.
# Usage:   Modify the list member to add, remove, or change the
#          list of missions to run. Recommend using this file as
#          a template (e.g., copy mission_list.rb to my_missions.rb
#          then edit my_missions.rb)
#

class MissionList

  attr_reader :list

  def initialize
  
    # The list of missions to run
    # add/remove configuration files here
    @list = [ \
      "config_lib/Sept08Launch.xml",
      "config_lib/Sept08Benthic1.xml",
      "config_lib/Sept08Benthic2.xml",
      "config_lib/Sept08Benthic3.xml",
      "config_lib/Sept08Benthic4.xml"
    ]

    # Raise exception unless all the config files can be found
    #
    @list.each do |fname|
      unless (File.exists?(fname))
      	raise("Exception! Cannot find file #{fname}")
      end
    end
  end
end
