ensembl-hive
2.1
|
'LongMult::PartMultiply' has a separate task of multiplying 'a_multiplier' by the given 'digit', then it passes its partial_product on.
protected Bio::EnsEMBL::Hive::RunnableDB::LongMult::PartMultiply::_rec_multiply | ( | ) |
Description: this is a private function (not a method) that performs recursive multiplication of a long number by a digit with a carry.
public Bio::EnsEMBL::Hive::RunnableDB::LongMult::PartMultiply::fetch_input | ( | ) |
Description : Implements fetch_input() interface method of Bio::EnsEMBL::Hive::Process that is used to read in parameters and load data. Here we have nothing to fetch.
public Bio::EnsEMBL::Hive::RunnableDB::LongMult::PartMultiply::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::PartMultiply::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 recursive function that will compute the product.
param('a_multiplier'): The first long number (a string of digits - doesn't have to fit a register).
param('digit'): A decimal digit that is a part of the second multiplier.
param('take_time'): How much time to spend sleeping (seconds).
public Bio::EnsEMBL::Hive::RunnableDB::LongMult::PartMultiply::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 the intermediate results down branch 1, which will be routed into 'partial_product' accumulator.