see if Bio::DB::Sam package will work for tests
[bioperl-live.git] / Bio / Map / EntityI.pm
blob091f3b5c7a149e35e1d431f3c2e18563b0cf6a31
2 # BioPerl module for Bio::Map::EntityI
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Sendu Bala <bix@sendu.me.uk>
8 # Copyright Sendu Bala
10 # You may distribute this module under the same terms as perl itself
12 # POD documentation - main docs before the code
14 =head1 NAME
16 Bio::Map::EntityI - An Entity Interface
18 =head1 SYNOPSIS
20 # do not use this module directly
22 =head1 DESCRIPTION
24 This interface describes the basic methods required for entities. An Entity is a
25 kind of Bio::Map object that holds instance-specific data but relies on
26 registering itself with a PositionHandler to handle its relationships with
27 other entities. These relationships between objects are based around shared
28 Positions, so Bio::Map::PositionI objects are a special kind of EntityI, along
29 with Bio::Map::MappableI and Bio::Map::MapI objects.
31 =head1 FEEDBACK
33 =head2 Mailing Lists
35 User feedback is an integral part of the evolution of this and other
36 Bioperl modules. Send your comments and suggestions preferably to
37 the Bioperl mailing list. Your participation is much appreciated.
39 bioperl-l@bioperl.org - General discussion
40 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
42 =head2 Support
44 Please direct usage questions or support issues to the mailing list:
46 I<bioperl-l@bioperl.org>
48 rather than to the module maintainer directly. Many experienced and
49 reponsive experts will be able look at the problem and quickly
50 address it. Please include a thorough description of the problem
51 with code and data examples if at all possible.
53 =head2 Reporting Bugs
55 Report bugs to the Bioperl bug tracking system to help us keep track
56 of the bugs and their resolution. Bug reports can be submitted via the
57 web:
59 https://redmine.open-bio.org/projects/bioperl/
61 =head1 AUTHOR - Sendu Bala
63 Email bix@sendu.me.uk
65 =head1 APPENDIX
67 The rest of the documentation details each of the object methods.
68 Internal methods are usually preceded with a _
70 =cut
72 # Let the code begin...
74 package Bio::Map::EntityI;
75 use strict;
77 use base qw(Bio::Root::RootI);
79 =head2 get_position_handler
81 Title : get_position_handler
82 Usage : my $position_handler = $entity->get_position_handler();
83 Function: Gets a PositionHandlerI that $entity is registered with.
84 Returns : Bio::Map::PositionHandlerI object
85 Args : none
87 =cut
89 sub get_position_handler {
90 my $self = shift;
91 $self->throw_not_implemented();
94 =head2 PositionHandlerI-based methods
96 Any methods related to interation with other entities should be implemented
97 as a call to the PositionHandler
99 =cut