ALPS Home Libraries License Support People ALPS Web Site

PrevUpHomeNext

Class Task

alps::scheduler::Task

Synopsis

// In header: <alps/scheduler/task.h>


class Task : public alps::scheduler::AbstractTask {
public:
  // construct/copy/destruct
  Task(const ProcessList &, const boost::filesystem::path &);
  Task(const ProcessList &, const Parameters &);
  ~Task();

  // public static functions
  static void print_copyright(std::ostream &);
  static Parameters parse_ext_task_file(std::string);

  // public member functions
  void construct();
  void checkpoint(const boost::filesystem::path &, bool = ALPS_WRITE_ALL_XML) const;
  void checkpoint_hdf5(const boost::filesystem::path &) const;
  void checkpoint_xml(const boost::filesystem::path &, 
                      bool = ALPS_WRITE_ALL_XML) const;
  void add_process(const Process &);
  uint32_t cpus() const;
  bool local();
  const alps::Parameters & get_parameters() const;
  void start();
  void run();
  void dostep();
  void finish();
  bool finished() const;
  bool finished(double &, double &) const;
  bool started() const;
  void halt();
  double work() const;
  ResultType get_summary() const;
  void load(hdf5::archive &);
  void save(hdf5::archive &) const;

  // protected member functions
  void write_xml_header(alps::oxstream &) const;
  void write_xml_trailer(alps::oxstream &) const;
  void write_xml_body(alps::oxstream &, boost::filesystem::path const &, bool) const;
  void handle_tag(std::istream &, const XMLTag &);

  // private member functions
  void parse_task_file(bool = false);
};

Description

Task public construct/copy/destruct

  1. Task(const ProcessList &, const boost::filesystem::path &);
  2. Task(const ProcessList &, const Parameters &);
  3. ~Task();

Task public static functions

  1. static void print_copyright(std::ostream &);
  2. static Parameters parse_ext_task_file(std::string);

Task public member functions

  1. void construct();
  2. void checkpoint(const boost::filesystem::path &, bool = ALPS_WRITE_ALL_XML) const;
  3. void checkpoint_hdf5(const boost::filesystem::path &) const;
  4. void checkpoint_xml(const boost::filesystem::path &, 
                        bool = ALPS_WRITE_ALL_XML) const;
  5. void add_process(const Process &);
  6. uint32_t cpus() const;
  7. bool local();
  8. const alps::Parameters & get_parameters() const;
  9. void start();
  10. void run();
  11. void dostep();
  12. void finish();
  13. bool finished() const;
  14. bool finished(double &, double &) const;
  15. bool started() const;
  16. void halt();
  17. double work() const;
  18. ResultType get_summary() const;
  19. void load(hdf5::archive &);
  20. void save(hdf5::archive &) const;

Task protected member functions

  1. void write_xml_header(alps::oxstream &) const;
  2. void write_xml_trailer(alps::oxstream &) const;
  3. void write_xml_body(alps::oxstream &, boost::filesystem::path const & fn, 
                        bool writeall) const;
  4. void handle_tag(std::istream &, const XMLTag &);

Task private member functions

  1. void parse_task_file(bool = false);
Copyright © 1994, 2002-2005 Matthias Troyer, Synge Todo

PrevUpHomeNext