Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ModifyAnnealer.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 ModifyAnnealer.cc
11 ///
12 /// @brief Task operation to set high and low temps for annealer as well as whether or not to do a quench step
13 /// @author Tim Jacobs
14 
15 //Unit Headers
18 
19 //Core Headers
21 
22 //Utility Headers
23 #include <utility/tag/Tag.hh>
24 
25 
26 namespace protocols {
27 namespace toolbox {
28 namespace task_operations {
29 
30  //initialize to default packer settings
32  disallow_quench_(false),
33  high_temp_(100.0),
34  low_temp_(0.3)
35  {}
36 
37  ModifyAnnealer::ModifyAnnealer(bool disallow_quench, core::Real high_temp, core::Real low_temp):
38  disallow_quench_(disallow_quench),
39  high_temp_(high_temp),
40  low_temp_(low_temp)
41  {}
42 
44 
46  return new ModifyAnnealer( *this );
47  }
48 
51  task.high_temp(high_temp_);
52  task.low_temp(low_temp_);
53  }
54 
56  disallow_quench_ = tag->getOption< bool >("disallow_quench", false);
57  high_temp_ = tag->getOption< core::Real >("high_temp", 100.0);
58  low_temp_ = tag->getOption< core::Real >("low_temp", 0.3);
59  }
60 
62  {
63  return new ModifyAnnealer;
64  }
65 
66 } //task_operations
67 } //toolbox
68 } //protocols