* sync with trunk
[bioperl-live.git] / Bio / Factory / MapFactoryI.pm
blob4b4148542e98e73da2419aa3c431527f6e997bb6
1 # $Id$
3 # BioPerl module for Bio::Factory::MapFactoryI
5 # Cared for by Jason Stajich <jason@bioperl.org>
7 # Copyright Jason Stajich
9 # You may distribute this module under the same terms as perl itself
11 # POD documentation - main docs before the code
13 =head1 NAME
15 Bio::Factory::MapFactoryI - A Factory for getting markers
17 =head1 SYNOPSIS
19 # get a Map Factory somehow likely from Bio::MapIO system
21 while( my $map = $mapin->next_map ) {
22 print "map name is ", $map->name, " length is ",
23 $map->length, " ", $map->units, "\n";
24 $mapout->write_map($map);
27 =head1 DESCRIPTION
29 This interface describes the necessary minimum methods for getting
30 Maps from a data stream. It also supports writing Map data back to a
31 stream.
33 =head1 FEEDBACK
35 =head2 Mailing Lists
37 User feedback is an integral part of the evolution of this and other
38 Bioperl modules. Send your comments and suggestions preferably to
39 the Bioperl mailing list. Your participation is much appreciated.
41 bioperl-l@bioperl.org - General discussion
42 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
44 =head2 Reporting Bugs
46 Report bugs to the Bioperl bug tracking system to help us keep track
47 of the bugs and their resolution. Bug reports can be submitted via the
48 web:
50 http://bugzilla.open-bio.org/
52 =head1 AUTHOR - Jason Stajich
54 Email jason@bioperl.org
56 =head1 APPENDIX
58 The rest of the documentation details each of the object methods.
59 Internal methods are usually preceded with a _
61 =cut
64 # Let the code begin...
67 package Bio::Factory::MapFactoryI;
68 use strict;
70 use base qw(Bio::Root::RootI);
72 =head2 next_map
74 Title : next_map
75 Usage : my $map = $factory->next_map;
76 Function: Get a map from the factory
77 Returns : L<Bio::Map::MapI>
78 Args : none
80 =cut
82 sub next_map{
83 my ($self,@args) = @_;
84 $self->throw_not_implemented();
87 =head2 write_map
89 Title : write_map
90 Usage : $factory->write_map($map);
91 Function: Write a map out through the factory
92 Returns : none
93 Args : L<Bio::Map::MapI>
95 =cut
97 sub write_map{
98 my ($self,@args) = @_;
99 $self->throw_not_implemented();