Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TrajectoryRecorder.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/canonical_sampling/TrajectoryRecorder.hh
11 ///
12 /// @brief
13 /// @author
14 
15 
16 #ifndef INCLUDED_protocols_canonical_sampling_TrajectoryRecorder_hh
17 #define INCLUDED_protocols_canonical_sampling_TrajectoryRecorder_hh
18 
19 
20 // Project forward headers
22 
23 // Project headers
25 #include <core/types.hh>
26 #include <core/pose/Pose.fwd.hh>
28 
29 #include <utility/io/ozstream.hh>
30 #include <utility/vector1.hh>
31 
32 // External library headers
33 
34 // C++ headers
35 #include <string>
36 
37 // Operating system headers
38 
39 // Forward declarations
40 
41 namespace protocols {
42 namespace canonical_sampling {
43 
44 /// @brief
46 public:
47  /// @brief Associates relevant options with the TemperedDocking class
48  static void register_options();
49 
50  /// @brief Constructor
52 
53  /// @brief Destructor
55 
56  /// @brief Copy constructor
58 
59 private:
60  //assignment not allowed
62  operator=( TrajectoryRecorder const & );
63 
64 public:
65  virtual std::string get_name() const;
66 
67  virtual void parse_my_tag(
68  utility::tag::TagPtr const tag,
70  protocols::filters::Filters_map const & filters,
71  protocols::moves::Movers_map const & movers,
72  core::pose::Pose const & pose
73  );
74 
75  std::string const & file_name() const {
76  return file_name_;
77  }
78 
79  void file_name( std::string const & file_name ) {
81  }
82 
84  return model_count_;
85  }
86 
88  return step_count_;
89  }
90 
91  core::Size stride() const {
92  return stride_;
93  }
94 
95  bool cumulate_jobs() const {
96  return cumulate_jobs_;
97  }
98 
99  bool cumulate_replicas() const {
100  return cumulate_replicas_;
101  }
102 
104  stride_ = stride;
105  }
106 
107  virtual void reset(
110  );
111 
113  core::pose::Pose const & pose,
115  );
116 
119  );
120 
121  virtual void apply( core::pose::Pose& pose );
122 
123  virtual void initialize_simulation(
124  core::pose::Pose & pose,
125  protocols::canonical_sampling::MetropolisHastingsMover const & metropolis_hastings_mover,
126  core::Size cycle //non-zero if trajectory is restarted
127  );
128 
129  virtual void observe_after_metropolis(
130  protocols::canonical_sampling::MetropolisHastingsMover const & metropolis_hastings_mover
131  );
132 
133 protected:
134 
135  virtual void write_model(
136  core::pose::Pose const & pose,
138  ) = 0;
139 
140 private:
147 
148  static bool options_registered_;
149 }; // TrajectoryRecorder
150 
151 
152 } // namespace canonical_sampling
153 } // namespace protocols
154 
155 
156 #endif // INCLUDED_protocols_canonical_sampling_TrajectoryRecorder_HH