17 #include <basic/Tracer.hh>
21 #include <utility/exit.hh>
23 static basic::Tracer
TR(
"protocols.elscripts.util" );
28 using namespace utility;
29 using namespace utility::lua;
33 LuaObject
const & score_fxns ) {
36 for (LuaIterator i=score_fxns.begin(),
end; i !=
end; ++i) {
37 if( i.skey() == scorefxn_name ) {
42 utility_exit_with_message(
"ScoreFunction " + scorefxn_name +
" not found in score_fxns map.");
47 LuaObject
const & tasks ) {
48 using namespace core::pack::task;
49 using namespace core::pack::task::operation;
52 for (LuaIterator i=taskdef.begin(),
end; i !=
end; ++i) {
54 bool taskfound =
false;
55 for (LuaIterator j=tasks.begin(),
end; j !=
end; ++j) {
56 if( j.skey() == task_name ) {
62 if( !taskfound ) utility_exit_with_message(
"TaskOperation " + task_name +
" not found in tasks map.");
64 return new_task_factory;
69 LuaObject
const & tasks ) {
70 using namespace core::pack::task;
71 using namespace core::pack::task::operation;
74 tmpop.relinquish_ownership();
79 for (LuaIterator i=movemapdef.begin(),
end; i !=
end; ++i) {
80 switch( (*i).size() ) {
83 core::Size const num( (*i)[1].to<core::Size>() );
84 bool const setting( (*i)[2].to<bool>() );
85 num == 0 ? mm->set_jump( setting ) : mm->set_jump( num, setting );
90 core::Size const begin( (*i)[1].to<core::Size>() );
92 runtime_assert( end >= begin );
93 bool const chi( (*i)[
"chi"].to<bool>() );
94 bool const bb( (*i)[
"bb"].to<bool>() );
96 mm->set_chi( i, chi );