Bio::MAGE::Association

SYNOPSIS

  use Bio::MAGE::Association;
  # creating an empty instance
  my $association = Bio::MAGE::Association->new();
  # populating the instance in the constructor
  my $association = Bio::MAGE::Association->new(self=>$val1,other=>$val2);
  # setting and retrieving object attributes
  my $self = $association->self();
  $association->self($value);
  my $other = $association->other();
  $association->other($value);

DESCRIPTION

This class holds the two association ends for each UML association. self is the end nearest the class of interest, while other is the end furthest away. The ends are of type Bio::MAGE::Association::End.


Bio::MAGE::Association::End

SYNOPSIS

  use Bio::MAGE::Association::End;
  # creating an empty instance
  my $association = Bio::MAGE::Association::End->new();
  # populating the instance in the constructor
  my $association = Bio::MAGE::Association->new(name=>$val1,
                                                is_ref=>$val2,
                                                cardinality=>$val3,
                                                class_name=>$val4,
                                                documentation=>$val5,
                                                rank=>$val6,
                                                ordered=>$val7,
                                               );
  # setting and retrieving object attributes
  my $name = $association->name();
  $association->name($value);
  my $is_ref = $association->is_ref();
  $association->is_ref($value);
  my $cardinality = $association->cardinality();
  $association->cardinality($value);
  my $class_name = $association->class_name();
  $association->class_name($value);
  my $documentation = $association->documentation();
  $association->documentation($value);
  my $rank = $association->rank();
  $association->rank($value);
  my $ordered = $association->ordered();
  $association->ordered($value);

DESCRIPTION

This class stores the information in a single UML association end.