tag fourth (and hopefully last) alpha
[bioperl-live.git] / branch-1-6 / Bio / Search / DatabaseI.pm
blob2be9e1fea49697f4dee93dab5f7d989f25945c96
1 #-----------------------------------------------------------------
2 # $Id$
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
15 =head1 NAME
17 Bio::Search::DatabaseI - Interface for a database used in a sequence search
19 =head1 SYNOPSIS
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:
27 $name = $db->name();
29 $date = $db->date();
31 $num_letters = $db->letters();
33 $num_entries = $db->entries();
35 =head1 DESCRIPTION
37 This module defines methods for an object that provides metadata
38 information about a database used for sequence searching.
40 =head1 FEEDBACK
42 =head2 Mailing Lists
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
51 =head2 Support
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.
62 =head2 Reporting Bugs
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
66 web:
68 http://bugzilla.open-bio.org/
70 =head1 AUTHOR
72 Steve Chervitz E<lt>sac@bioperl.orgE<gt>
74 See L<the FEEDBACK section | FEEDBACK> for where to send bug reports and comments.
76 =head1 COPYRIGHT
78 Copyright (c) 2001 Steve Chervitz. All Rights Reserved.
80 =head1 DISCLAIMER
82 This software is provided "as is" without warranty of any kind.
84 =cut
86 =head1 APPENDIX
88 The rest of the documentation details each of the object methods.
90 =cut
92 # Let the code begin...
94 package Bio::Search::DatabaseI;
96 use strict;
98 use base qw(Bio::Root::RootI);
101 =head2 name
103 Usage : $name = $db->name();
104 Purpose : Get the name of the database searched.
105 Returns : String
106 Argument : n/a
108 =cut
110 sub name {
111 my $self = shift;
112 $self->throw_not_implemented;
115 =head2 date
117 Usage : $date = $db->date();
118 Purpose : Get the creation date of the queried database.
119 Returns : String
120 Argument : n/a
122 =cut
124 sub date {
125 my $self = shift;
126 $self->throw_not_implemented;
130 =head2 letters
132 Usage : $num_letters = $db->letters();
133 Purpose : Get the number of letters in the queried database.
134 Returns : Integer
135 Argument : n/a
137 =cut
139 sub letters {
140 my $self = shift;
141 $self->throw_not_implemented;
145 =head2 entries
147 Usage : $num_entries = $db->entries();
148 Purpose : Get the number of entries in the queried database.
149 Returns : Integer
150 Argument : n/a
152 =cut
154 sub entries {
155 my $self = shift;
156 $self->throw_not_implemented;