Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AnnealerFactory.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 core/pack/annealer/AnnealerFactory.cc
11 /// @brief Annealer Factory class implementation
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 
14 /// Unit headers
16 
17 /// Package headers
22 
27 
29 
30 #include <basic/Tracer.hh>
31 
32 #include <utility/vector0.hh>
33 #include <utility/vector1.hh>
34 
35 
36 namespace core {
37 namespace pack {
38 namespace annealer {
39 
40 static basic::Tracer TR("core.pack.annealer.AnnealerFactory");
41 
45  utility::vector0<int> & rot_to_pack,
46  ObjexxFCL::FArray1D_int & bestrotamer_at_seqpos,
47  core::PackerEnergy & bestenergy,
48  bool start_with_current,
51  ObjexxFCL::FArray1_int & current_rot_index,
52  bool calc_rot_freq,
53  ObjexxFCL::FArray1D< core::PackerEnergy > & rot_freq
54 )
55 {
56  if ( task->rotamer_couplings_exist() ) {
57  TR.Debug << "Creating FixbbCoupledRotamerSimAnnealer" << std::endl;
59  rot_to_pack, bestrotamer_at_seqpos, bestenergy, start_with_current, ig,
60  rotamer_sets, current_rot_index, calc_rot_freq, rot_freq,
61  task->rotamer_couplings() );
62  } else if ( task->rotamer_links_exist() ){
63  TR.Debug << "Creating FixbbLinkingRotamerSimAnnealer" << std::endl;
65  rot_to_pack, bestrotamer_at_seqpos, bestenergy, start_with_current, ig,
66  rotamer_sets, current_rot_index, calc_rot_freq, rot_freq,
67  task->rotamer_links() );
68  } else if ( task->multi_cool_annealer() ) {
69  TR.Debug << "Creating MultiCoolAnnealer" << std::endl;
70  return new MultiCoolAnnealer(
71  task, rot_to_pack, bestrotamer_at_seqpos, bestenergy, start_with_current, ig,
72  rotamer_sets, current_rot_index, calc_rot_freq, rot_freq );
73  } else {
74  TR.Debug << "Creating FixbbSimAnnealer" << std::endl;
75  return new FixbbSimAnnealer(
76  rot_to_pack, bestrotamer_at_seqpos, bestenergy, start_with_current, ig,
77  rotamer_sets, current_rot_index, calc_rot_freq, rot_freq );
78  }
79 
80  // appease compiler
81  return 0;
82 }
83 
84 }// namespace annealer
85 }// namespace pack
86 }// namespace core
87