* sync with trunk
[bioperl-live.git] / Bio / SeqEvolution / EvolutionI.pm
blobef09f2ea55cdc5a9ede9356716e8774a1f43495b
1 # $Id$
3 # BioPerl module for Bio::SeqEvolution::EvolutionI
5 # Cared for by Heikki Lehvaslaiho <heikki at bioperl dot org>
7 # Copyright Heikki Lehvaslaiho
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::SeqEvolution::EvolutionI - the interface for evolving sequences
17 =head1 SYNOPSIS
19 # not an instantiable class
21 =head1 DESCRIPTION
23 This is the interface that all classes that mutate sequence objects in
24 constant fashion must implement. A good example is
25 Bio::SeqEvolution::DNAPoint.
27 =head1 FEEDBACK
29 =head2 Mailing Lists
31 User feedback is an integral part of the evolution of this and other
32 Bioperl modules. Send your comments and suggestions preferably to
33 the Bioperl mailing list. Your participation is much appreciated.
35 bioperl-l@bioperl.org - General discussion
36 http://bioperl.org/MailList.shtml - About the mailing lists
38 =head2 Reporting Bugs
40 Report bugs to the Bioperl bug tracking system to help us keep track
41 of the bugs and their resolution. Bug reports can be submitted via the
42 web:
44 http://bugzilla.bioperl.org/
46 =head1 AUTHOR
48 Heikki Lehvaslaiho E<lt>heikki at bioperl dot orgE<gt>
50 =head1 CONTRIBUTORS
52 Additional contributor's names and emails here
54 =head1 APPENDIX
56 The rest of the documentation details each of the object methods.
57 Internal methods are usually preceded with a _
59 =cut
62 # Let the code begin...
65 package Bio::SeqEvolution::EvolutionI;
66 use strict;
68 use base qw(Bio::Root::RootI);
70 =head2 annotation
72 Title : annotation
73 Usage : $obj->annotation($newval)
74 Function: Get the annotation collection for this annotatable object.
75 Example :
76 Returns : a Bio::AnnotationCollectionI implementing object, or undef
77 Args : on set, new value (a Bio::AnnotationCollectionI
78 implementing object, optional) (an implementation may not
79 support changing the annotation collection)
81 See L<Bio::AnnotationCollectionI>
83 =cut
86 =head2 seq
88 Title : seq
89 Usage : $obj->seq($newval)
90 Function: Set the sequence object for the original sequence
91 Returns : The sequence object
92 Args : newvalue (optional)
94 Setting this will reset mutation and generated mutation counters.
96 =cut
98 sub seq { shift->throw_not_implemented(); }
100 =head2 next_seq
102 Title : next_seq
103 Usage : $obj->next_seq
104 Function: Evolve the reference sequence to desired level
105 Returns : A new sequence object mutated from the reference sequence
106 Args : -
108 =cut
110 sub next_seq{ shift->throw_not_implemented(); }
113 =head2 mutate
115 Title : mutate
116 Usage : $obj->mutate
117 Function: mutate the sequence at the given location according to the model
118 Returns : true
119 Args : integer, start location of the mutation, required argument
121 Called from next_seq().
123 =cut
125 sub mutate { shift->throw_not_implemented(); }