24 lines
710 B
C++
24 lines
710 B
C++
|
|
/*
|
|||
|
|
* AddComputingTask.cpp
|
|||
|
|
*
|
|||
|
|
* Created on: 17 <EFBFBD><EFBFBD><EFBFBD>. 2020 <EFBFBD>.
|
|||
|
|
* Author: LeonidTitov
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#include "AddComputingTask.hh"
|
|||
|
|
|
|||
|
|
bool application::utility::AddComputingTask::input( Environment & env ) {
|
|||
|
|
|
|||
|
|
return grab( task, env.rholder.getShared<processing::calc::IComputingTaskHolder>( links.task ) )
|
|||
|
|
and grab( calc, env.rholder.getShared<processing::calc::Calculator>( links.calculator ) );
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
void application::utility::AddComputingTask::build( Environment & env ) {
|
|||
|
|
|
|||
|
|
Local<processing::calc::Calculator> local_calc( calc, *env.rholder.getShared<processing::calc::Calculator>( links.calculator ) );
|
|||
|
|
|
|||
|
|
task->setComputingControl( local_calc->add_task( &(task->getComputingTask() ) ) );
|
|||
|
|
|
|||
|
|
}
|