Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RemodelAccumulator.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/forge/remodel/RemodelAccumulator.hh
11 /// @brief
12 /// @author Possu Huang ( possu@uw.edu )
13 ///
14 
15 #ifndef INCLUDED_protocols_forge_remodel_RemodelAccumulator_hh
16 #define INCLUDED_protocols_forge_remodel_RemodelAccumulator_hh
17 
19 //#include <protocols/forge/remodel/RemodelData.hh>
23 
24 #include <utility/vector1.hh>
25 
26 
27 namespace protocols {
28 namespace forge {
29 namespace remodel {
30 
32 
33 private: // typedefs
34 
36 
37 public: // typedefs
38 
39  typedef core::Real Real;
40  typedef core::Size Size;
41 
53 
54 
55 public: //constructor/destructor
56 
58 
59  //RemodelAccumulator(RemodelData remodeldata);
60  RemodelAccumulator(WorkingRemodelSet & working_model);
61 
62  virtual
64 
65 public: // virtual constructors
66 
67  virtual
68  MoverOP clone() const;
69 
70  virtual
71  MoverOP fresh_instance() const;
72 
73 public: // options
74 
75 public:
76 
77  void keep_top_pose(core::Size num_to_keep);
78  void cluster_pose();
79  void cluster_loop();
80 
81  virtual void apply( Pose & pose);
82  virtual std::string get_name() const;
83 
84 
85 private: // data
86 
87  bool cluster_switch_; // check cluster radius for on/off state. 0 radius is no clustering
88 
89  //RemodelData remodel_data_; // design mode determined in here
91  //PackerTask packer_task_;
93  //MoveMap move_map_;
95  std::multimap<core::Real,core::pose::PoseOP> pose_store_;
96 
97 public: // accessors
99 
100  void write_checkpoint(core::Size progress_point);
101 
102  bool cluster_switch();
103 
104 //ScoreFunction const & scorefunction() const;
105 
106 //MoveMap const & movemap() const;
107 
108 //PackerTask const & packertask() const;
109 
110  void run_cluster();
111  void shrink_cluster(core::Size num_top);
112  std::vector<core::pose::PoseOP> clustered_best_poses();
113  std::vector<core::pose::PoseOP> contents_in_pose_store();
114  std::vector<core::pose::PoseOP> clustered_top_poses(core::Size count);
115 };
116 
117 } // namespace remodel
118 } // namespace forge
119 } // namespace protocols
120 
121 #endif /* INCLUDED_protocols_forge_remodel_RemodelAccumulator_HH */