t/AlignIO/AlignIO.t: fix number of tests in plan (fixup c523e6bed866)
[bioperl-live.git] / Bio / Map / EntityI.pm
blobd264c0c76bcc0c1c70b0590210fc8c0c7d5d0fea
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://github.com/bioperl/bioperl-live/issues
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