Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AmbiguousConstraint.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, march 2008)
15 
16 
17 #ifndef INCLUDED_core_scoring_constraints_AmbiguousConstraint_hh
18 #define INCLUDED_core_scoring_constraints_AmbiguousConstraint_hh
19 
20 // Unit header
23 // AUTO-REMOVED #include <core/scoring/constraints/XYZ_Func.hh>
28 
29 #include <core/id/AtomID.hh>
32 #include <core/pose/Pose.fwd.hh>
33 
34 
35 //Utility Headers
36 #include <numeric/xyzVector.fwd.hh>
37 
39 #include <utility/vector1.hh>
40 
41 
42 
43 namespace core {
44 namespace scoring {
45 namespace constraints {
46 
47 
49 public:
50 
51  /// @brief Constructor
53 
54  /// @brief Constructor
56 
57  ///
58  virtual
59  ConstraintOP clone() const {
60  return new AmbiguousConstraint(*this);
61  }
62 
63  virtual
65  return new AmbiguousConstraint;
66  }
67 
68  /// @brief
69  void
71 
72  std::string type() const {
73  return "AmbiguousConstraint";
74  }
75 
76  /// @brief read in constraint defiinition
77  void
78  read_def( std::istream& data, pose::Pose const& pose, FuncFactory const& func_factory );
79 
80  /// @brief possibility to compare constraint according to data
81  /// and not just pointers
82  bool operator == ( Constraint const & other ) const;
83 
84  /// @brief compute score
85  void
86  score( XYZ_Func const & xyz_func, EnergyMap const & weights, EnergyMap & emap ) const;
87 
89  calculate_total_cst_score( EnergyMap const & weights, EnergyMap & emap) const;
90 
91  virtual
93  remap_resid( core::id::SequenceMapping const &seqmap ) const;
94 
95  /// @brief compute atom deriv
96  void
97  fill_f1_f2(
98  AtomID const & atom,
99  XYZ_Func const & xyz,
100  Vector & F1,
101  Vector & F2,
102  EnergyMap const & weights
103  ) const;
104 
105  void show( std::ostream& out) const;
106 
108 
109  // void read_def( std::istream& in, pose::Pose const& pose, FuncFactory const& func_factory );
110 
111  Size show_violations( std::ostream& out, pose::Pose const& pose, Size verbose_level, Real threshold = 1.0 ) const;
112 
113 
114 
115 private:
121 
122 }; //AmbiguousConstraint
123 
124 } //constraints
125 } //scoring
126 } //core
127 
128 #endif