return _batch_queue;
}
+void
+BL::Job::setWCKey(const std::string & wckey)
+{
+ _wckey = wckey;
+}
+
+const std::string &
+BL::Job::getWCKey()
+{
+ return _wckey;
+}
+
void
BL::Job::setLoadLevelerJobType(const std::string & jobtype)
{
void setBatchQueue(const std::string & queue);
std::string & getBatchQueue();
+ void setWCKey(const std::string & wckey);
+ const std::string & getWCKey();
+
void setLoadLevelerJobType(const std::string & jobtype);
std::string & getLoadLevelerJobType();
BL::Job::FilesParam _files_params;
std::string _resource_choosed;
std::string _batch_queue;
+ std::string _wckey;
std::string _ll_jobtype;
int _salome_launcher_id;
job_parameters->resource_required.nb_proc = cpp_batch_params.nb_proc;
job_parameters->queue = CORBA::string_dup(job->getBatchQueue().c_str());
job_parameters->exclusive = cpp_batch_params.exclusive;
+ job_parameters->wckey = CORBA::string_dup(job->getWCKey().c_str());
// Memory
switch (cpp_batch_params.mem_req_type)
job_return->setJobFile(job_parameters->job_file.in());
job_return->setEnvFile(job_parameters->env_file.in());
job_return->setBatchQueue(job_parameters->queue.in());
+ job_return->setWCKey(job_parameters->wckey.in());
BL::Job::FilesParam param;
param.result_directory = job_parameters->result_directory.in();
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>AdvancedParametersWizardPage</class>
+ <widget class="QWizardPage" name="AdvancedParametersWizardPage">
+ <property name="title">
+ <string>Advanced Parameters</string>
+ </property>
+ <layout class="QFormLayout" name="formLayout">
+ <item row="0" column="0">
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Workload Characterization Key (wckey):</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QLineEdit" name="line_wckey"/>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>
#include <ui_ResourceRequirementsWizardPage.h>
#include <ui_FilesWizardPage.h>
+#include <ui_AdvancedParametersWizardPage.h>
#ifdef WNT
#undef ERROR
setPage(Page_Files, new BL::FilesPage(this, salome_services));
setPage(Page_Resource, new BL::ResourcePage(this, salome_services));
+ setPage(Page_Advanced, new BL::AdvancedParametersPage(this));
setPage(Page_Conclusion, new BL::ConclusionPage(this));
// Specific pages
setField("resource_choosed", QString(job->getResource().c_str()));
setField("batch_queue", QString(job->getBatchQueue().c_str()));
setField("ll_jobtype", QString(job->getLoadLevelerJobType().c_str()));
+ setField("wckey", QString(job->getWCKey().c_str()));
}
}
ll_jobtype = "";
}
+ // WC Key
+ QString f_wckey = field("wckey").toString();
+ wckey = f_wckey.trimmed().toUtf8().constData();
+
start_job = field("start_job").toBool();
}
}
int
FilesPage::nextId() const
{
- return BL::CreateJobWizard::Page_Conclusion;
+ return BL::CreateJobWizard::Page_Advanced;
}
BL::ConclusionPage::ConclusionPage(QWidget * parent)
{
return BL::CreateJobWizard::Page_Resource;
}
+
+
+
+AdvancedParametersPage::AdvancedParametersPage(CreateJobWizard * parent)
+: QWizardPage(parent),
+ ui(new Ui::AdvancedParametersWizardPage)
+{
+ ui->setupUi(this);
+ registerField("wckey", ui->line_wckey);
+};
+
+AdvancedParametersPage::~AdvancedParametersPage()
+{
+ delete ui;
+}
+
+int
+AdvancedParametersPage::nextId() const
+{
+ return BL::CreateJobWizard::Page_Conclusion;
+}
namespace Ui {
class ResourceRequirementsWizardPage;
class FilesWizardPage;
+ class AdvancedParametersWizardPage;
}
namespace BL{
std::string resource_choosed;
std::string batch_queue;
+ std::string wckey;
bool start_job;
int dump_yacs_state;
Page_COORM_BatchParameters,
Page_Files,
Page_Resource,
+ Page_Advanced,
Page_Conclusion};
};
QLineEdit * _line_PythonSalome;
QLineEdit * _line_env_file;
};
+
+ class AdvancedParametersPage: public QWizardPage
+ {
+ Q_OBJECT
+
+ public:
+ AdvancedParametersPage(BL::CreateJobWizard * parent);
+ virtual ~AdvancedParametersPage();
+
+ virtual int nextId() const;
+ virtual void cleanupPage() {}
+
+ private:
+ Ui::AdvancedParametersWizardPage * ui;
+
+ };
+
}
#endif
new_job->setResource(wizard.resource_choosed);
new_job->setBatchQueue(wizard.batch_queue);
new_job->setLoadLevelerJobType(wizard.ll_jobtype);
+ new_job->setWCKey(wizard.wckey);
// End
addJobToLauncher(wizard.job_name);
SET(_uic_files
ResourceRequirementsWizardPage.ui
FilesWizardPage.ui
+ AdvancedParametersWizardPage.ui
)
# header files / uic wrappings