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
simple_moves
ScoreMover.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 ScoreMover.hh
11
/// @brief
12
/// @author Monica Berrondo
13
14
#ifndef INCLUDED_protocols_simple_moves_ScoreMover_hh
15
#define INCLUDED_protocols_simple_moves_ScoreMover_hh
16
17
// Unit headers
18
#include <
protocols/simple_moves/ScoreMover.fwd.hh
>
19
#include <
protocols/moves/Mover.hh
>
20
#include <
protocols/filters/Filter.fwd.hh
>
21
22
#include <
core/types.hh
>
23
#include <
core/scoring/ScoreFunction.fwd.hh
>
24
#include <
protocols/moves/DataMap.fwd.hh
>
25
26
#include <utility/vector1.hh>
27
28
29
namespace
protocols {
30
namespace
simple_moves {
31
32
class
ScoreMover
:
public
moves::Mover
{
33
34
public
:
35
typedef
core::scoring::ScoreFunctionOP
ScoreFunctionOP
;
36
37
public
:
38
/// @brief
39
/// empty constructor fills values with the values
40
/// read in from the commandline
41
ScoreMover
();
42
43
~ScoreMover
();
44
45
///@brief constructor
46
///@details creates the ScoreMover with the names passed in rather than
47
/// taken from the commandline
48
/// patch is not necessary
49
ScoreMover
(
std::string
const
&,
std::string
const
& patch =
""
);
50
51
///@brief constructor
52
///@details creates the ScoreMover with the scorefunction itself passed in
53
ScoreMover
(
ScoreFunctionOP
);
54
55
virtual
moves::MoverOP
clone
()
const
;
56
virtual
moves::MoverOP
fresh_instance
()
const
;
57
58
virtual
59
void
parse_my_tag
(
60
TagPtr
const
,
61
moves::DataMap
&,
62
protocols::filters::Filters_map
const
&,
63
moves::Movers_map
const
&,
64
Pose
const
& );
65
void
parse_def
( utility::lua::LuaObject
const
& def,
66
utility::lua::LuaObject
const
& score_fxns,
67
utility::lua::LuaObject
const
& tasks,
68
protocols::moves::MoverCacheSP
cache );
69
70
static
void
register_options
();
71
72
///@brief add an rms to the score_map
73
/// TODO possibly find a better way to do this?
74
/// for now, there are too many different rmsd calculation
75
/// functions to be able to do the actual calculation in the protocols::moves::Mover
76
void
insert_rms
(
core::Real
rms
) {
score_map_
[
"rms"
] =
rms
; }
77
78
virtual
void
apply
(
Pose
& pose );
79
virtual
std::string
get_name
()
const
;
80
virtual
void
test_move
(
Pose
& pose )
81
{
82
apply
(pose);
83
}
84
85
void
set_verbose
(
bool
value ) {
verbose_
= value; }
86
87
ScoreFunctionOP
score_function
()
const
;
88
89
void
set_score_file
(
std::string
scorefile ) {
scorefile_
= scorefile; }
90
91
private
:
92
ScoreFunctionOP
score_function_
;
93
std::map< std::string, core::Real >
score_map_
;
94
bool
verbose_
;
95
std::string
scorefile_
;
96
97
};
98
99
}
// simple_moves
100
}
// protocols
101
102
#endif //INCLUDED_protocols_simple_moves_ScoreMover_HH
Generated on Sat Jun 1 2013 12:16:49 for Rosetta 3.5 by
1.8.4