_command = "";
_env_file = "";
_batch_params.batch_directory = "";
- _batch_params.maximum_during_time = "";
+ _batch_params.maximum_duration = "";
_batch_params.expected_memory = "";
_batch_params.nb_proc = 0;
_files_params.result_directory = "";
_command = "";
_env_file = "";
_batch_params.batch_directory = "";
- _batch_params.maximum_during_time = "";
+ _batch_params.maximum_duration = "";
_batch_params.expected_memory = "";
_batch_params.nb_proc = 0;
_files_params.result_directory = "";
BL::Job::setBatchParameters(BL::Job::BatchParam & param)
{
_batch_params.batch_directory = param.batch_directory;
- _batch_params.maximum_during_time = param.maximum_during_time;
+ _batch_params.maximum_duration = param.maximum_duration;
_batch_params.expected_memory = param.expected_memory;
_batch_params.nb_proc = param.nb_proc;
}
command = "";
env_file = "";
batch_directory = "";
- maximum_during_time = "";
+ maximum_duration = "";
expected_memory = "";
nb_proc = 1;
QString time_hour;
QString time_min;
- if (field("during_time_hour").toInt() < 10)
- time_hour = "0" + field("during_time_hour").toString();
+ if (field("duration_hour").toInt() < 10)
+ time_hour = "0" + field("duration_hour").toString();
else
- time_hour = field("during_time_hour").toString();
- if (field("during_time_min").toInt() < 10)
- time_min = "0" + field("during_time_min").toString();
+ time_hour = field("duration_hour").toString();
+ if (field("duration_min").toInt() < 10)
+ time_min = "0" + field("duration_min").toString();
else
- time_min = field("during_time_min").toString();
- maximum_during_time = time_hour.toStdString() + ":" + time_min.toStdString() + ":00";
+ time_min = field("duration_min").toString();
+ maximum_duration = time_hour.toStdString() + ":" + time_min.toStdString() + ":00";
QString mem = field("mem_value").toString();
int mem_type_i = field("mem_type").toInt();
registerField("batch_directory", line_directory);
// exected during time
- QLabel * label_during_time = new QLabel("Maximum during time: ");
- QSpinBox * spin_during_time_hour = new QSpinBox(this);
- QLabel * label_during_time_hour = new QLabel("Hours");
- spin_during_time_hour->setMinimum(0);
- spin_during_time_hour->setMaximum(1000000);
- registerField("during_time_hour", spin_during_time_hour);
- QSpinBox * spin_during_time_min = new QSpinBox(this);
- QLabel * label_during_time_min = new QLabel("Minutes");
- spin_during_time_min->setMinimum(0);
- spin_during_time_min->setMaximum(59);
- registerField("during_time_min", spin_during_time_min);
+ QLabel * label_duration = new QLabel("Maximum during time: ");
+ QSpinBox * spin_duration_hour = new QSpinBox(this);
+ QLabel * label_duration_hour = new QLabel("Hours");
+ spin_duration_hour->setMinimum(0);
+ spin_duration_hour->setMaximum(1000000);
+ registerField("duration_hour", spin_duration_hour);
+ QSpinBox * spin_duration_min = new QSpinBox(this);
+ QLabel * label_duration_min = new QLabel("Minutes");
+ spin_duration_min->setMinimum(0);
+ spin_duration_min->setMaximum(59);
+ registerField("duration_min", spin_duration_min);
// memory
QLabel * label_memory = new QLabel("Memory per nodes expected: ");
QGridLayout *layout = new QGridLayout;
layout->addWidget(label_directory, 0, 0);
layout->addWidget(line_directory, 0, 1, 1, -1);
- layout->addWidget(label_during_time, 1, 0);
- layout->addWidget(spin_during_time_hour, 1, 1);
- layout->addWidget(label_during_time_hour, 1, 2);
- layout->addWidget(spin_during_time_min, 1, 3);
- layout->addWidget(label_during_time_min, 1, 4);
+ layout->addWidget(label_duration, 1, 0);
+ layout->addWidget(spin_duration_hour, 1, 1);
+ layout->addWidget(label_duration_hour, 1, 2);
+ layout->addWidget(spin_duration_min, 1, 3);
+ layout->addWidget(label_duration_min, 1, 4);
layout->addWidget(label_memory, 2, 0);
layout->addWidget(spin_memory, 2, 1);
layout->addWidget(combo_memory, 2, 2);
return false;
}
- int time_hour = field("during_time_hour").toInt();
- int time_min = field("during_time_min").toInt();
+ int time_hour = field("duration_hour").toInt();
+ int time_min = field("duration_min").toInt();
if (time_hour == 0 and time_min == 0)
{
QMessageBox::warning(NULL, "Time Error", "Please enter an expected during time");
new_job->setYACSFile(wizard.yacs_file);
BL::Job::BatchParam param;
param.batch_directory = wizard.batch_directory;
- param.maximum_during_time = wizard.maximum_during_time;
+ param.maximum_duration = wizard.maximum_duration;
param.expected_memory = wizard.expected_memory;
param.nb_proc = wizard.nb_proc;
new_job->setBatchParameters(param);
new_job->setEnvFile(wizard.env_file);
BL::Job::BatchParam param;
param.batch_directory = wizard.batch_directory;
- param.maximum_during_time = wizard.maximum_during_time;
+ param.maximum_duration = wizard.maximum_duration;
param.expected_memory = wizard.expected_memory;
param.nb_proc = wizard.nb_proc;
new_job->setBatchParameters(param);