1 #-----------------------------------------------------------------
4 # BioPerl module Bio::Search::DatabaseI
6 # Please direct questions and support issues to <bioperl-l@bioperl.org>
8 # Cared for by Steve Chervitz <sac@bioperl.org>
10 # You may distribute this module under the same terms as perl itself
11 #-----------------------------------------------------------------
13 # POD documentation - main docs before the code
17 Bio::Search::DatabaseI - Interface for a database used in a sequence search
21 Bio::Search::DatabaseI objects should not be instantiated since this
22 module defines a pure interface.
24 Given an object that implements the Bio::Search::DatabaseI interface,
25 you can do the following things with it:
31 $num_letters = $db->letters();
33 $num_entries = $db->entries();
37 This module defines methods for an object that provides metadata
38 information about a database used for sequence searching.
44 User feedback is an integral part of the evolution of this and other
45 Bioperl modules. Send your comments and suggestions preferably to one
46 of the Bioperl mailing lists. Your participation is much appreciated.
48 bioperl-l@bioperl.org - General discussion
49 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
53 Please direct usage questions or support issues to the mailing list:
55 I<bioperl-l@bioperl.org>
57 rather than to the module maintainer directly. Many experienced and
58 reponsive experts will be able look at the problem and quickly
59 address it. Please include a thorough description of the problem
60 with code and data examples if at all possible.
64 Report bugs to the Bioperl bug tracking system to help us keep track
65 the bugs and their resolution. Bug reports can be submitted via the
68 http://bugzilla.open-bio.org/
72 Steve Chervitz E<lt>sac@bioperl.orgE<gt>
74 See L<the FEEDBACK section | FEEDBACK> for where to send bug reports and comments.
78 Copyright (c) 2001 Steve Chervitz. All Rights Reserved.
82 This software is provided "as is" without warranty of any kind.
88 The rest of the documentation details each of the object methods.
92 # Let the code begin...
94 package Bio
::Search
::DatabaseI
;
98 use base
qw(Bio::Root::RootI);
103 Usage : $name = $db->name();
104 Purpose : Get the name of the database searched.
112 $self->throw_not_implemented;
117 Usage : $date = $db->date();
118 Purpose : Get the creation date of the queried database.
126 $self->throw_not_implemented;
132 Usage : $num_letters = $db->letters();
133 Purpose : Get the number of letters in the queried database.
141 $self->throw_not_implemented;
147 Usage : $num_entries = $db->entries();
148 Purpose : Get the number of entries in the queried database.
156 $self->throw_not_implemented;