Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MPI_LoopHashRefine.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file protocols/loophash/MPI_LoopHashRefine.hh
11 /// @brief
12 /// @author Mike Tyka
13 
14 
15 
16 #ifndef INCLUDED_protocols_loophash_MPI_LoopHashRefine_hh
17 #define INCLUDED_protocols_loophash_MPI_LoopHashRefine_hh
18 
21 // AUTO-REMOVED #include <protocols/loophash/LoopHashSampler.fwd.hh>
22 // AUTO-REMOVED #include <protocols/loophash/LocalInserter.fwd.hh>
23 
24 #include <core/types.hh>
25 // AUTO-REMOVED #include <core/pose/Pose.hh>
26 #include <utility/vector1.hh>
28 // AUTO-REMOVED #include <core/io/silent/ProteinSilentStruct.hh>
29 #include <string>
30 #include <vector>
31 
32 // AUTO-REMOVED #include <core/chemical/AtomType.hh>
33 #include <core/kinematics/Jump.hh>
34 
35 
36 namespace protocols {
37 namespace loophash {
38 
39 
41  public:
42  MPI_LoopHashRefine( char machine_letter );
43 
44  void set_defaults();
45 
46  virtual ~MPI_LoopHashRefine(){}
47 
48  protected: // overloaded functions
49 
50  // --none-- this is a pure virtual class
51 
52  protected: // added functions
53 
54  void load_structures_from_cmdline_into_library( core::Size structure_read_offset );
55 
56  void save_state(std::string prefix = "default" );
57 
58  void save_state_auto();
59 
60  void load_state(std::string prefix = "default" );
61 
62  void print_stats();
63 
64  void print_library();
65 
66  // adding arriving structures to library
67  virtual bool add_structures_to_library( protocols::wum::SilentStructStore &new_structs, std::string add_algorithm = "" );
68 
69  virtual bool add_structure_to_library( core::io::silent::SilentStruct &pss, std::string add_algorithm = "" );
70 
72 
74 
76 
77  void send_random_library_struct( core::Size dest_rank, core::Size ssid ) const ;
78 
79  void limit_library();
80 
81  void dump_structures( const protocols::wum::SilentStructStore &new_structs, bool score_only = true ) const;
82 
83  void set_ident_string( std::string new_ident ){ ident_string_ = new_ident; }
84 
85  protected: // accesors
86  const std::string &mpi_resume(){ return mpi_resume_; }
87 
89 
91 
92 
93  const std::string & mpi_feedback( ){ return mpi_feedback_; }
94 
96 
97 
99 
101 
103 
105 
107 
108 
110 
112 
114 
115  private:
116  // parameters
123 
124 
127 
128  // Live data
131 
132 protected: // statistics can be protected such that derived classes can modify their values.
133  // Statistics
142 
143 private:
144  std::string ident_string_; // Unique identified for this job.
145 };
146 
147 
148 
149 
150 } // namespace loops
151 } // namespace protocols
152 
153 
154 
155 #endif
156 
157 
158 
159