Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SetAACompositionPotential.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 protocols/forge/components/SetAACompositionPotential.hh
11 /// @brief
12 /// @author Nobuyasu Koga ( nobuyasu@u.washington.edu )
13 
14 #ifndef INCLUDED_protocols_fldsgn_potentials_SetAACompositionPotential_HH
15 #define INCLUDED_protocols_fldsgn_potentials_SetAACompositionPotential_HH
16 
17 // unit headers
19 // AUTO-REMOVED #include <protocols/fldsgn/potentials/AACompositionEnergy.fwd.hh>
20 
21 // project headers
22 #include <core/chemical/AA.hh>
23 #include <core/pose/Pose.fwd.hh>
25 #include <protocols/moves/Mover.hh>
26 
27 // type headers
28 #include <core/types.hh>
29 
30 // C++ headers
31 #include <map>
32 #include <string>
33 #include <utility/tag/Tag.fwd.hh>
34 
35 #include <utility/vector1.hh>
36 
37 
38 namespace protocols {
39 namespace fldsgn {
40 namespace potentials {
41 
43 
44 
45 private: // typedefs
46 
47 
49 
50 
51 public: // typedefs
52 
53 
55  typedef core::Real Real;
56  typedef core::Size Size;
62 
67 
68 
69 public: // construct/destruct
70 
71 
72  /// @brief default constructor
74 
75  /// @brief copy constructor
77 
78  /// @brief default destructor
80 
81 
82 private: // disallow assignment
83 
84 
85  /// @brief copy assignment
86  /// @remarks Mover base class prevents this from working properly...
88 
89 
90 public: // virtual constructors
91 
92 
93  /// @brief clone this object
94  virtual
95  MoverOP clone() const;
96 
97  /// @brief create this type of object
98  virtual
99  MoverOP fresh_instance() const;
100 
101 
102 public: // virtual main methods
103 
104 
105  /// @brief apply defined moves to given Pose
106  virtual
107  void apply( Pose & );
108 
109  virtual
110  std::string get_name() const;
111 
112 
113 public: //parser
114 
115 
116  /// @brief parse xml file
117  void parse_my_tag( TagPtr const tag,
118  DataMap & data,
119  Filters_map const &,
120  Movers_map const &,
121  Pose const & );
122 
123 
124 private: // helper functions
125 
126 
127  bool set_parameters( String const & file );
128 
129 
130 private: // data
131 
132 
133  /// @brief
134  std::map< core::chemical::AA, std::pair< Real, Real > > comp_constraint_aas_;
135 
136  /// @brief weight for composition constraints
138 
139  /// @brief scorefunction to use
141 
142  /// @brief
143  bool loaded_;
144 
145 
146 };
147 
148 } // namespace potentials
149 } // namespace fldsgn
150 } // namespace protocols
151 
152 
153 #endif /* INCLUDED_protocols_fldsgn_SetAACompositionPotential_HH */