Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ConstraintClaimer.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 TopologyBroker
11 /// @brief top-class (Organizer) of the TopologyBroker mechanism
12 /// @detailed responsibilities:
13 /// @author Oliver Lange
14 
15 
16 #ifndef INCLUDED_protocols_topology_broker_ConstraintClaimer_hh
17 #define INCLUDED_protocols_topology_broker_ConstraintClaimer_hh
18 
19 
20 // Unit Headers
22 
23 // Package Headers
27 
28 // Project Headers
29 #include <core/pose/Pose.hh>
30 
31 // ObjexxFCL Headers
32 
33 // Utility headers
34 //#include <utility/io/izstream.hh>
35 //#include <utility/io/ozstream.hh>
36 //#include <utility/io/util.hh>
37 //#include <basic/Tracer.hh>
38 //#include <basic/options/option.hh>
39 
40 #include <utility/pointer/ReferenceCount.hh>
41 
42 #include <utility/vector1.hh>
43 
44 
45 //#include <basic/options/option_macros.hh>
46 
47 //// C++ headers
48 //#include <fstream>
49 
50 // option key includes
51 
52 
53 namespace protocols {
54 namespace topology_broker {
55 
58 public:
59  ConstraintClaimer(); //for factory
60  ConstraintClaimer( std::string cst_file, std::string tag = "" );
61  ConstraintClaimer( bool CmdFlag, bool centroid = true, bool fullatom = false );
62 
63  virtual TopologyClaimerOP clone() const {
64  return new ConstraintClaimer( *this );
65  }
66 
67  virtual void generate_claims( DofClaims& );
68 
69  ///@brief type() is specifying the output name of the TopologyClaimer
70  virtual std::string type() const {
71  return _static_type_name();
72  }
73 
75  return "ConstraintClaimer";
76  }
77 
78  virtual void new_decoy();
79 
80  virtual bool read_tag( std::string tag, std::istream & );
81 
82  virtual void add_constraints( core::pose::Pose& /*pose*/ ) const;
83 
84  // ConstraintSetCOP constraints() const { return constraints_; }
85  // ConstraintSetCOP fa_constraints() const { return fa_constraints_; }
87  std::string const& filter_name() const { return filter_name_; }
90  std::string const& tag() const { return tag_; }
91 
92  void set_cst_file( std::string const& );
93  void set_fullatom( bool setting );
94  void set_centroid( bool setting );
95  void set_skip_redundant( core::Size setting );
96  void set_combine_ratio( core::Size setting );
97  void set_filter_weight( core::Real weight );
98  void set_drop_random_rate( core::Real setting );
99 private:
105 
109  ///@brief true if constraints are active in centroid mode
111 
112  ///@brief true if constraints are active in full-atom mode
113  /// if true use fa_constraints if available... normal constraints otherwise
115 
116  ///@brief use constraints defined via command line
117  bool bCmdFlag_;
118 
119 
120  ///@brief combine constraints randomly into Ambiguous Constraints
121  core::Size combine_ratio_; //default 1: no constraint combination
122 
123  ///@brief drop restraints with this rate randomly -- default 0 -- no dropping
125 
126  ///@brief at most one constraint per residue pair ( does not look at bounds... )
128 
129  ///@brief how many residues left and right do we exclude other "redundant" constraints...
131 
132  ///@brief which weight should this constraint set have when used as a filter
135 }; //class ConstraintClaimer
136 
137 }
138 }
139 
140 #endif