Sync'ed RichSeqI with the implementation. RichSeq provides backward
[bioperl-live.git] / Bio / Search / DatabaseI.pm
blob4ccddfc20c3c10b99bee7760735569f9ee31e826
1 #-----------------------------------------------------------------
2 # $Id$
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
13 =head1 NAME
15 Bio::Search::DatabaseI - Interface for a database used in a sequence search
17 =head1 SYNOPSIS
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:
25 $name = $db->name();
27 $date = $db->date();
29 $num_letters = $db->letters();
31 $num_entries = $db->entries();
33 =head1 DESCRIPTION
35 This module defines methods for an object that provides metadata
36 information about a database used for sequence searching.
38 =head1 FEEDBACK
40 =head2 Mailing Lists
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://bio.perl.org/MailList.html - About the mailing lists
49 =head2 Reporting Bugs
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 email
53 or the web:
55 bioperl-bugs@bio.perl.org
56 http://bugzilla.bioperl.org/
58 =head1 AUTHOR
60 Steve Chervitz E<lt>sac@bioperl.orgE<gt>
62 See L<the FEEDBACK section | FEEDBACK> for where to send bug reports and comments.
64 =head1 COPYRIGHT
66 Copyright (c) 2001 Steve Chervitz. All Rights Reserved.
68 =head1 DISCLAIMER
70 This software is provided "as is" without warranty of any kind.
72 =cut
74 =head1 APPENDIX
76 The rest of the documentation details each of the object methods.
78 =cut
80 # Let the code begin...
82 package Bio::Search::DatabaseI;
84 use strict;
85 use Bio::Root::RootI;
86 use vars qw( @ISA );
88 @ISA = qw( Bio::Root::RootI);
91 =head2 name
93 Usage : $name = $db->name();
94 Purpose : Get the name of the database searched.
95 Returns : String
96 Argument : n/a
98 =cut
100 sub name {
101 my $self = shift;
102 $self->throw_not_implemented;
105 =head2 date
107 Usage : $date = $db->date();
108 Purpose : Get the creation date of the queried database.
109 Returns : String
110 Argument : n/a
112 =cut
114 sub date {
115 my $self = shift;
116 $self->throw_not_implemented;
120 =head2 letters
122 Usage : $num_letters = $db->letters();
123 Purpose : Get the number of letters in the queried database.
124 Returns : Integer
125 Argument : n/a
127 =cut
129 sub letters {
130 my $self = shift;
131 $self->throw_not_implemented;
135 =head2 entries
137 Usage : $num_entries = $db->entries();
138 Purpose : Get the number of entries in the queried database.
139 Returns : Integer
140 Argument : n/a
142 =cut
144 sub entries {
145 my $self = shift;
146 $self->throw_not_implemented;