Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
toolbox
task_operations
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
16
#include <
protocols/toolbox/task_operations/ModifyAnnealer.hh
>
17
#include <
protocols/toolbox/task_operations/ModifyAnnealerCreator.hh
>
18
19
//Core Headers
20
#include <
core/pack/task/PackerTask.hh
>
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
31
ModifyAnnealer::ModifyAnnealer
():
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
43
ModifyAnnealer::~ModifyAnnealer
(){}
44
45
core::pack::task::operation::TaskOperationOP
ModifyAnnealer::clone
()
const
{
46
return
new
ModifyAnnealer
( *
this
);
47
}
48
49
void
ModifyAnnealer::apply
(
core::pose::Pose
const
&,
core::pack::task::PackerTask
& task )
const
{
50
task.
disallow_quench
(
disallow_quench_
);
51
task.
high_temp
(
high_temp_
);
52
task.
low_temp
(
low_temp_
);
53
}
54
55
void
ModifyAnnealer::parse_tag
(
utility::tag::TagPtr
tag ){
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
61
core::pack::task::operation::TaskOperationOP
ModifyAnnealerCreator::create_task_operation
()
const
62
{
63
return
new
ModifyAnnealer
;
64
}
65
66
}
//task_operations
67
}
//toolbox
68
}
//protocols
Generated on Sat Jun 1 2013 12:23:18 for Rosetta 3.5 by
1.8.4