3
# BioPerl module for wrapping runtime parameters
5
# Cared for by Chad Matsalla (bioinformatics1 at dieselwurks dot com)
7
# Copyright Chad Matsalla
9
# You may distribute this module under the same terms as perl itself
11
# POD documentation - main docs before the code
15
Bio::Search::StatisticsI - A Base object for statistics
19
# do not use this object directly, it provides the following methods
22
my $void = $obj->set_statistic("statistic_name","statistic_value");
23
my $value = $obj->get_statistic("statistic_name");
27
This is a basic container to hold the statistics returned from a program.
33
User feedback is an integral part of the evolution of this and other
34
Bioperl modules. Send your comments and suggestions preferably to
35
the Bioperl mailing list. Your participation is much appreciated.
37
bioperl-l@bioperl.org - General discussion
38
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
42
Report bugs to the Bioperl bug tracking system to help us keep track
43
of the bugs and their resolution. Bug reports can be submitted via the
46
http://bugzilla.open-bio.org/
48
=head1 AUTHOR - Chad Matsalla
50
Email bioinformatics1 at dieselwurks dot com
54
The rest of the documentation details each of the object methods.
55
Internal methods are usually preceded with a _
60
# Let the code begin...
63
package Bio::Search::StatisticsI;
66
# Object preamble - inherits from Bio::Root::Root
69
use base qw(Bio::Root::RootI);
75
Usage : $statistic_object->get_statistic($statistic_name);
76
Function: Get the value of a statistic named $statistic_name
77
Returns : A scalar that should be a string
78
Args : A scalar that should be a string
84
$self->throw_not_implemented;
91
Usage : $statistic_object->set_statistic($statistic_name => $statistic_value);
92
Function: Set the value of a statistic named $statistic_name to $statistic_value
94
Args : A hash containing name=>value pairs
99
my ($self,$name,$value) = @_;
100
$self->throw_not_implemented;