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
enzdes
AddorRemoveCsts.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/enzdes/movers/AddorRemoveCsts.hh
11
/// @author Florian Richter (floric@u.washington.edu)
12
13
#ifndef INCLUDED_protocols_enzdes_AddorRemoveCsts_hh
14
#define INCLUDED_protocols_enzdes_AddorRemoveCsts_hh
15
16
#include <
core/types.hh
>
17
#include <
core/pose/Pose.fwd.hh
>
18
#include <utility/tag/Tag.fwd.hh>
19
#include <
protocols/filters/Filter.fwd.hh
>
20
#include <
protocols/moves/Mover.hh
>
21
#include <
protocols/moves/DataMap.fwd.hh
>
22
#include <
core/scoring/ScoreFunction.fwd.hh
>
23
#include <
protocols/toolbox/match_enzdes_util/EnzConstraintIO.fwd.hh
>
24
25
#include <utility/vector1.hh>
26
27
28
29
namespace
protocols {
30
namespace
enzdes {
31
32
enum
CstAction
{
33
VOID
= 1,
34
ADD_NEW
,
35
ADD_PREGENERATED
,
36
REMOVE
37
};
38
39
40
/// @brief A simple wrapper to get the functionality in EnzConstraintIO
41
/// into mover format
42
class
AddOrRemoveMatchCsts
:
public
protocols::moves::Mover
{
43
44
public
:
//Constructor / Destructor
45
46
AddOrRemoveMatchCsts
();
47
48
AddOrRemoveMatchCsts
(
AddOrRemoveMatchCsts
const
& other );
49
50
~AddOrRemoveMatchCsts
();
51
52
public
:
53
54
protocols::moves::MoverOP
clone
()
const
;
55
virtual
std::string
get_name
()
const
;
56
57
protocols::moves::MoverOP
fresh_instance
()
const
;
58
59
void
apply
(
core::pose::Pose
& pose );
60
61
void
parse_my_tag
(
62
utility::tag::TagPtr
const
tag,
63
protocols::moves::DataMap
&,
64
protocols::filters::Filters_map
const
&,
65
protocols::moves::Movers_map
const
&,
66
core::pose::Pose
const
& );
67
68
virtual
void
parse_def
( utility::lua::LuaObject
const
& def,
69
utility::lua::LuaObject
const
& score_fxns,
70
utility::lua::LuaObject
const
& tasks,
71
protocols::moves::MoverCacheSP
cache );
72
73
// @brief Set the name of the constraint file. Overwrites the file name that might be read in during parse_my_tag.
74
void
cstfile
(
std::string
const
& setting );
75
76
static
77
toolbox::match_enzdes_util::EnzConstraintIOCOP
78
get_const_EnzConstraintIO_for_cstfile
(
std::string
cstfile =
""
);
79
80
void
set_cst_action
(
CstAction
action){
cst_action_
=action; }
81
void
set_accept_blocks_missing_header
(
bool
setting ){
accept_blocks_missing_header_
= setting; }
82
void
set_keep_covalent
(
bool
setting ){
keep_covalent_
= setting; }
83
84
85
protected
:
86
87
toolbox::match_enzdes_util::EnzConstraintIOOP
88
get_EnzConstraintIO_for_cstfile
(
89
std::string
const
cstfile
90
);
91
92
private
:
93
94
/// Save the contents of the constraint files that are read in for reuse.
95
static
std::map< std::string, toolbox::match_enzdes_util::EnzConstraintIOOP >
cstfile_map_
;
96
97
std::string
option_cstfile_
;
// Read from options system if no user-defined constraint file is given.
98
std::string
cstfile_
;
// May be set either by the parser or programmatically.
99
CstAction
cst_action_
;
100
bool
keep_covalent_
,
accept_blocks_missing_header_
,
fail_on_constraints_missing_
;
101
102
///atm this scorefunction is only used if the user specifes a covalent ambiguous constraint
103
///in which case the ambiguity is resolved at the time of newly adding the constraints, and the
104
///covalent connection established according to the then best constraints.
105
core::scoring::ScoreFunctionOP
sfxn_
;
106
};
107
108
}
// enzdes
109
}
// protocols
110
111
112
#endif
/*INCLUDED_protocols_enzdes_AddorRemoveCsts_HH*/
Generated on Sat Jun 1 2013 11:47:42 for Rosetta 3.5 by
1.8.4