Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DockTaskFactory.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 DockTaskFactory
11 /// @brief sets up the task factory for docking movers
12 /// @detailed
13 /// This contains the functions that set up the taskfactory for docking
14 /// movers depending on the command line options
15 /// @author Krishna Kilambi
16 
17 
18 #ifndef INCLUDED_protocols_docking_DockTaskFactory_hh
19 #define INCLUDED_protocols_docking_DockTaskFactory_hh
20 
22 
23 // Package headers
25 
28 // AUTO-REMOVED #include <protocols/toolbox/task_operations/RestrictToInterface.fwd.hh>
29 // AUTO-REMOVED #include <core/pack/task/TaskFactory.fwd.hh>
30 #include <core/pose/Pose.fwd.hh>
31 
32 #include <core/types.hh>
34 #include <utility/vector1.hh>
35 #include <utility/pointer/ReferenceCount.hh>
36 
37 //Auto Headers
38 // option key includes
39 #ifdef WIN32
41 #endif
42 
43 
44 namespace protocols {
45 namespace docking {
46 
48 {
49 public:
50 
51  /// @brief Default constructor
53  // Undefinded, commenting out to fix PyRosetta build DockTaskFactory(bool restrict_2_interface); //JQX
54 
55  //copy constructor
56  DockTaskFactory( DockTaskFactory const & old_instance );
57 
58  // destructor
59  virtual ~DockTaskFactory();
60 
61  /// @brief Creates an appropriate TaskFactory based on command line options and attach it to a DockingHighResOP
62  /// Two arguments: DockingHighResOP and a pose.
64  DockingHighResOP docker,
65  core::pose::Pose const & pose
66  ) const;
67  /// @brief Sets booleans to default values
68  void set_default();
69 
70  /// @brief Associates relevant options with the DockTaskFactory class
71  void register_options();
72 
73  /// @brief Assigns user specified values to members using command line options
74  void init_from_options();
75 
76  void set_norepack1( bool norepack1 ) { norepack1_=norepack1; }
77  void set_norepack2( bool norepack2 ) { norepack2_=norepack2; }
78  void set_design_chains( utility::vector1< char > design_chains ) { design_chains_ = design_chains; }
82 
84  bool get_norepack1() const { return norepack1_; }
85  bool get_norepack2() const { return norepack2_; }
86  void set_prepack_only( bool prepack_only ) { prepack_only_ = prepack_only;} //JQX: add this function, one can decide to do restrict2interface
87 
88 private:
89  // commandline args
90  bool resfile_;
91  bool norepack1_;
92  bool norepack2_;
95  bool prepack_only_; //JQX
96 
98 
99 // core::pack::task::TaskFactoryOP init_tf_;
100 };
101 
102 } // docking
103 } // protocols
104 
105 #endif