Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AACompositionEnergy.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 amino acid composition energy
12 /// @author Nobuyasu Koga
13 
14 
15 #ifndef INCLUDED_protocols_fldsgn_potentials_AACompositionEnergy_HH
16 #define INCLUDED_protocols_fldsgn_potentials_AACompositionEnergy_HH
17 
18 // Unit Headers
20 
21 // Package headers
23 
24 // Project headers
25 #include <core/chemical/AA.hh>
26 #include <core/pose/Pose.fwd.hh>
30 #include <core/types.hh>
31 #include <core/id/TorsionID.fwd.hh>
32 #include <core/id/DOF_ID.fwd.hh>
34 
35 // Utility headers
36 #include <map>
37 
38 #include <utility/vector1.hh>
39 
40 
41 namespace protocols {
42 namespace fldsgn {
43 namespace potentials {
44 
45 /// @brief AACompositionEnergy
47 public:
48 
50 
51 public: // typedef
52 
53 
54  //typedef std::string String;
57  typedef core::Real Real;
63 
64 
65 public: // constructor/destructor
66 
67 
68  /// @brief default constructor
70 
71  /// @brief value constructor
72  AACompositionEnergy( std::map< AA, std::pair< Real, Real > > const & comp_constraint_aas );
73 
74  /// @brief copy constructor
76 
77  /// @brief destructor
78  virtual ~AACompositionEnergy();
79 
80  /// @brief clone
81  virtual EnergyMethodOP clone() const;
82 
83 
84 private:
85 
86  void initialize();
87 
88 public: // mutator
89 
90 
91  void set_comp_constraint_aa( std::map< AA, std::pair< Real, Real > > const & comp_constraint_aas );
92 
93 
94 public:
95 
96  /////////////////////////////////////////////////////////////////////////////
97  // methods for ContextDependentOneBodyEnergies
98  /////////////////////////////////////////////////////////////////////////////
99 
100  virtual
101  void
103  Residue const & rsd,
104  Pose const & pose,
105  EnergyMap & emap
106  ) const;
107 
108 
109  /// @brief scoring
110  // virtual void setup_for_scoring( Pose &, ScoreFunction const & ) const;
111 
112  /// @brief scoring
113  // virtual void finalize_total_energy( Pose & pose, ScoreFunction const &, EnergyMap & totals ) const;
114 
115 
116  /// @brief DunbrackEnergy is context independent; indicates that no
117  /// context graphs are required
118  virtual
120 
121  virtual
122  Size version() const { return 1; }
123 
124 
125 private:
126 
127  /// @brief
128  std::map< AA, std::pair< Real, Real > > comp_constraint_aas_;
129 
130 
131 };
132 
133 } // namespace potentials
134 } // namespace fldsgn
135 } // namespace protocols
136 
137 #endif // INCLUDED_protocols_fldsgn_AACompositionEnergy_HH