Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OptH.cc
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 core/pack/task/operation/OptH.cc
11 /// @brief run optH
12 /// @author Yih-En Andrew Ban (yab@u.washington.edu)
13 
14 // unit headers
17 
18 // project headers
20 // AUTO-REMOVED #include <core/pose/Pose.hh>
21 
22 #include <utility/vector1.hh>
23 
24 
25 
26 namespace core {
27 namespace pack {
28 namespace task {
29 namespace operation {
30 
31 
32 /// @brief default constructor
34  Super(),
35  init_from_command_line_( true ),
36  include_current_( true ),
37  flip_HNQ_( false ),
38  use_multicool_annealer_( false )
39 {}
40 
41 
42 /// @brief copy constructor
43 OptH::OptH( OptH const & rval ) :
44  Super( rval ),
45  disallowed_resids_( rval.disallowed_resids_ ),
46  init_from_command_line_( rval.init_from_command_line_ ),
47  include_current_( rval.include_current_ ),
48  flip_HNQ_( rval.flip_HNQ_ ),
49  use_multicool_annealer_( rval.use_multicool_annealer_ )
50 {}
51 
52 
53 /// @brief default destructor
55 
57 {
58  return new OptH;
59 }
60 
61 /// @brief clone this object
63  return new OptH( *this );
64 }
65 
66 
67 /// @brief apply operations to PackerTask
68 void OptH::apply( Pose const & , PackerTask & task ) const {
69  // optH parameters
72  }
73  task.or_optimize_h_mode( true );
75  task.or_flip_HNQ( flip_HNQ_ );
77 
78  // lock down disallowed residues
79  for ( utility::vector1< Size >::const_iterator i = disallowed_resids_.begin(), ie = disallowed_resids_.end(); i != ie; ++i ) {
81  }
82 }
83 
84 
85 /// @brief prevent a position from being optimized
86 void OptH::disallow_resid( Size const resid ) {
87  disallowed_resids_.push_back( resid );
88 }
89 
90 
91 /// @brief init flags from command line? (default true)
92 void OptH::init_from_comand_line( bool const flag ) {
94 }
95 
96 
97 /// @brief include current sidechain rotamers? (default true)
98 void OptH::include_current( bool const flag ) {
99  include_current_ = flag;
100 }
101 
102 
103 /// @brief allow sidechain flips of HNQ? (default false)
104 void OptH::flip_HNQ( bool const flag ) {
105  flip_HNQ_ = flag;
106 }
107 
108 
109 /// @brief use multicool annealer? (default false)
110 void OptH::use_multicool_annealer( bool const flag ) {
112 }
113 
114 
115 } // namespace operation
116 } // namespace task
117 } // namespace pack
118 } // namespace core