Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AmbiguousMultiConstraint.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
11 /// @brief contains declarations for a type of constraint that holds multiple other
12 /// @brief constrains where only the one with lowest energy is considered
13 /// @brief
14 /// @author Florian Richter (floric@u.washington.edu, april 2009)
15 
16 
17 #ifndef INCLUDED_protocols_constraints_additional_AmbiguousMultiConstraint_hh
18 #define INCLUDED_protocols_constraints_additional_AmbiguousMultiConstraint_hh
19 
20 // Unit header
23 // AUTO-REMOVED #include <core/scoring/constraints/XYZ_Func.hh>
27 
28 #include <core/id/AtomID.hh>
31 #include <core/pose/Pose.fwd.hh>
32 
33 //Utility Headers
34 #include <numeric/xyzVector.fwd.hh>
35 
36 #include <utility/vector1.hh>
37 
38 
39 
40 namespace protocols {
41 namespace constraints_additional {
42 
43 
45 public:
46 
47  /// @brief Constructor
49  core::Size num_act_csts);
50 
51  /// @brief Constructor
53  core::Size num_act_csts,
55 
56  ///
57  virtual
59  return new AmbiguousMultiConstraint(*this);
60  }
61 
62  std::string type() const {
63  return "AmbiguousMultiConstraint";
64  }
65 
66  /// @brief read in constraint defiinition
67  //void
68  //read_def( std::istream& data, pose::Pose const& pose, FuncFactory const& func_factory );
69 
70  /// @brief compute score
71  void
72  score(
73  core::scoring::constraints::XYZ_Func const & xyz_func,
74  core::scoring::EnergyMap const & weights,
75  core::scoring::EnergyMap & emap ) const;
76 
77 
78  virtual
80  remap_resid( core::id::SequenceMapping const &seqmap ) const;
81 
82  /// @brief compute atom deriv
83  void
84  fill_f1_f2(
85  core::id::AtomID const & atom,
87  core::Vector & F1,
88  core::Vector & F2,
89  core::scoring::EnergyMap const & weights
90  ) const;
91 
92  void show( std::ostream& out) const;
93 
94  // void read_def( std::istream& in, pose::Pose const& pose, FuncFactory const& func_factory );
95 
96  Size show_violations( std::ostream& out, core::pose::Pose const& pose, core::Size verbose_level, core::Real threshold = 1.0 ) const;
97 
98 
99 private:
101 
103 
104 }; //AmbiguousMultiConstraint
105 
106 }
107 }
108 
109 #endif