1 package Bio
::GeneticRelationships
::Descendants
;
7 use Moose
::Util
::TypeConstraints
;
8 use Bio
::GeneticRelationships
::Individual
;
12 Bio::GeneticRelationships::Descendants - Descendants of an individual
16 my $variable = Bio::GeneticRelationships::Descendants->new();
20 This class stores an individual's descendants and their relationships.
31 has
'name' => (isa
=> 'Str',is
=> 'rw', predicate
=> 'has_name', required
=> 1,);
32 has
'offspring' => (isa
=> 'ArrayRef[Bio::GeneticRelationships::Individual]', is
=> 'rw', predicate
=> 'has_offspring');
37 my $offspring_to_add = shift;
39 if ($self->has_offspring()){
40 @offspring_array = @
{$self->get_offspring()};
42 push (@offspring_array, $offspring_to_add);
43 $self->set_offspring([@offspring_array]);
61 Jeremy D. Edwards <jde22@cornell.edu>