Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SmoothFragmentMover.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 // :noTabs=false:tabSize=4:indentSize=4:
4 //
5 // (c) Copyright Rosetta Commons Member Institutions.
6 // (c) This file is part of the Rosetta software suite and is made available under license.
7 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
8 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
9 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
10 
11 
12 /// @brief set of fragments for a certain alignment frame
13 /// @author Oliver Lange (olange@u.washington.edu)
14 /// @date Wed Oct 20 12:08:31 2007
15 ///
16 
17 
18 #ifndef INCLUDED_protocols_simple_moves_SmoothFragmentMover_HH
19 #define INCLUDED_protocols_simple_moves_SmoothFragmentMover_HH
20 
21 // Unit Headers
23 
24 // Package Headers
26 
27 // Project Headers
28 #include <core/types.hh>
29 #include <core/pose/Pose.fwd.hh>
30 
31 // Utility headers
32 #include <utility/vector1.fwd.hh>
33 
34 #include <utility/vector1.hh>
35 
36 
37 namespace protocols {
38 namespace simple_moves {
39 
41 
43 protected:
44  // Constructor protected for base class
46  virtual ~FragmentCost();
47 public:
48  // accesor
49  std::string const& type() {
50  return type_;
51  };
52 
53  core::Real cutoff() const {
54  return cutoff_;
55  };
56 
57  // the meaning of life
58  virtual void score( core::fragment::Frame const&, core::pose::Pose const& pose, ScoreList &scores ) = 0;
59 
60 private:
62 
63  // SmoothFragmentMover will randomly choose from all fragments that are below cutoff_
65 };
66 
67 class SmoothFragmentMover : virtual public ClassicFragmentMover {
68 public:
70 
71 public:
74  FragmentCostOP cost );
75 
76 
80  FragmentCostOP cost );
81 
83 
84  virtual std::string get_name() const;
85 
86  // void apply( core::pose::Pose & );
87 protected:
91  FragmentCostOP cost,
92  std::string move_type );
93 
94  // frame and fragment of choice, returns false if no good fragment is found
95  virtual
96  bool
99  core::pose::Pose const&,
100  Size &frame_num,
101  Size &frag_num
102  ) const;
103 
104  virtual
105  bool
106  use_ss_length_screen() const;
107 
108 private:
110 
111  // choose randomly fragments that are below cutoff_
113 
114 };
115 
116 } //simple_moves
117 } //protocols
118 
119 #endif