ensembl-hive
2.1
|
'LongMult::AddTogether' is the final step of the pipeline that, naturally, adds the products together and stores the result in 'final_result' database table.
protected Bio::EnsEMBL::Hive::RunnableDB::LongMult::AddTogether::_add_together | ( | ) |
Description: this is a private function (not a method) that adds all the products with a shift
public Bio::EnsEMBL::Hive::RunnableDB::LongMult::AddTogether::fetch_input | ( | ) |
Description : Implements fetch_input() interface method of Bio::EnsEMBL::Hive::Process that is used to read in parameters and load data. Here all relevant partial products are fetched from the 'partial_product' accumulator and stored in a hash for future use.
param('a_multiplier'): The first long number (a string of digits - doesn't have to fit a register).
param('b_multiplier'): The second long number (also a string of digits).
param('take_time'): How much time to spend sleeping (seconds).
public Bio::EnsEMBL::Hive::RunnableDB::LongMult::AddTogether::param_defaults | ( | ) |
Description : Implements param_defaults() interface method of Bio::EnsEMBL::Hive::Process that defines module defaults for parameters.
public Bio::EnsEMBL::Hive::RunnableDB::LongMult::AddTogether::run | ( | ) |
Description : Implements run() interface method of Bio::EnsEMBL::Hive::Process that is used to perform the main bulk of the job (minus input and output). The only thing we do here is make a call to the function that will add together the intermediate results.
public Bio::EnsEMBL::Hive::RunnableDB::LongMult::AddTogether::write_output | ( | ) |
Description : Implements write_output() interface method of Bio::EnsEMBL::Hive::Process that is used to deal with job's output after the execution. Dataflows both original multipliers and the final result down branch-1, which will be routed into 'final_result' table.