ensembl-pipeline Node
Included librariesPackage variablesGeneral documentationMethods
Toolbar
WebCvsRaw content
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Root
Inherit
Bio::EnsEMBL::Root
Synopsis
No synopsis!
Description
No description!
Methods
add_child
No description
Code
add_parent
No description
Code
anal
No description
Code
children
No description
Code
new
No description
Code
parents
No description
Code
Methods description
None available.
Methods code
add_childdescriptionprevnextTop
sub add_child {
  my ($self, $child) = @_;

  $self->throw("No child argument to add_child call\n") if (!defined($child));

  foreach my $c (@{$self->{_children}}) {
    #if ($c->anal->logic_name eq $child->anal->logic_name) {
if ($c == $child) { print "Already added child\n"; return; } } push @{$self->{_children}}, $child;
}
add_parentdescriptionprevnextTop
sub add_parent {
  my ($self, $parent) = @_;

  $self->throw("No parent argument to add_parent call\n") if (!defined($parent));

  foreach my $p (@{$self->{_parents}}) {
    #if ($p->anal->logic_name eq $parent->anal->logic_name) {
if ($p == $parent) { print "Already added parent\n"; return; } } push @{$self->{_parents}}, $parent;
}
analdescriptionprevnextTop
sub anal {
  my ($self,$anal) = @_;
  if ($anal) {
    $self->{_anal} = $anal;
  }
  return $self->{_anal};
}
childrendescriptionprevnextTop
sub children {
  my ($self) = shift;

  return $self->{_children};
}

1;
}
newdescriptionprevnextTop
sub new {
  my ($class, @args) = @_;
  my $self = bless {}, $class;

  my ($anal) = $self->_rearrange([qw(ANAL)], @args);

  $self->throw("No anal") unless defined $anal;
  $self->anal($anal);

  $self->{_parents} = [];
  $self->{_children} = [];
  return $self;
}
parentsdescriptionprevnextTop
sub parents {
  my ($self) = shift;

  return $self->{_parents};
}
General documentation
No general documentation available.