1 #-----------------------------------------------------------------
4 # BioPerl module Bio::Search::DatabaseI
6 # Cared for by Steve Chervitz <sac@bioperl.org>
8 # You may distribute this module under the same terms as perl itself
9 #-----------------------------------------------------------------
11 # POD documentation - main docs before the code
15 Bio::Search::DatabaseI - Interface for a database used in a sequence search
19 Bio::Search::DatabaseI objects should not be instantiated since this
20 module defines a pure interface.
22 Given an object that implements the Bio::Search::DatabaseI interface,
23 you can do the following things with it:
29 $num_letters = $db->letters();
31 $num_entries = $db->entries();
35 This module defines methods for an object that provides metadata
36 information about a database used for sequence searching.
42 User feedback is an integral part of the evolution of this and other
43 Bioperl modules. Send your comments and suggestions preferably to one
44 of the Bioperl mailing lists. Your participation is much appreciated.
46 bioperl-l@bioperl.org - General discussion
47 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
51 Report bugs to the Bioperl bug tracking system to help us keep track
52 the bugs and their resolution. Bug reports can be submitted via the
55 http://bugzilla.open-bio.org/
59 Steve Chervitz E<lt>sac@bioperl.orgE<gt>
61 See L<the FEEDBACK section | FEEDBACK> for where to send bug reports and comments.
65 Copyright (c) 2001 Steve Chervitz. All Rights Reserved.
69 This software is provided "as is" without warranty of any kind.
75 The rest of the documentation details each of the object methods.
79 # Let the code begin...
81 package Bio
::Search
::DatabaseI
;
85 use base
qw(Bio::Root::RootI);
90 Usage : $name = $db->name();
91 Purpose : Get the name of the database searched.
99 $self->throw_not_implemented;
104 Usage : $date = $db->date();
105 Purpose : Get the creation date of the queried database.
113 $self->throw_not_implemented;
119 Usage : $num_letters = $db->letters();
120 Purpose : Get the number of letters in the queried database.
128 $self->throw_not_implemented;
134 Usage : $num_entries = $db->entries();
135 Purpose : Get the number of entries in the queried database.
143 $self->throw_not_implemented;