UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception - UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception documentation


UMMF documentation Contained in the UMMF distribution.

Index


Code Index:

NAME

Top

UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception --

VERSION

Top

1.5

SYNOPSIS

Top

DESCRIPTION

Top

USAGE

Top

EXPORT

Top

METATYPE

Top

UMMF::UML_1_5::Foundation::Core::Class

SUPERCLASSES

Top

UMMF::UML_1_5::Foundation::Core::BehavioralFeature

ATTRIBUTES

Top

specification : UMMF::UML_1_5::Foundation::Data_Types::String

metatype = UMMF::UML_1_5::Foundation::Core::Attribute
type = UMMF::UML_1_5::Foundation::Data_Types::String
visibility = private
multiplicity = 1
changeability = changeable
targetScope = instance
ordering = unordered
initialValue = UNSPECIFIED
container_type = Set::Object

isRoot : UMMF::UML_1_5::Foundation::Data_Types::Boolean

metatype = UMMF::UML_1_5::Foundation::Core::Attribute
type = UMMF::UML_1_5::Foundation::Data_Types::Boolean
visibility = private
multiplicity = 1
changeability = changeable
targetScope = instance
ordering = unordered
initialValue = <"false">
container_type = Set::Object

isLeaf : UMMF::UML_1_5::Foundation::Data_Types::Boolean

metatype = UMMF::UML_1_5::Foundation::Core::Attribute
type = UMMF::UML_1_5::Foundation::Data_Types::Boolean
visibility = private
multiplicity = 1
changeability = changeable
targetScope = instance
ordering = unordered
initialValue = <"false">
container_type = Set::Object

isAbstract : UMMF::UML_1_5::Foundation::Data_Types::Boolean

metatype = UMMF::UML_1_5::Foundation::Core::Attribute
type = UMMF::UML_1_5::Foundation::Data_Types::Boolean
visibility = private
multiplicity = 1
changeability = changeable
targetScope = instance
ordering = unordered
initialValue = <"false">
container_type = Set::Object

ASSOCIATIONS

Top

reception : THIS 0..* <---> signal : UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal 1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal
multiplicity = 1
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = none
visibility = public
container_type = Set::Object

METHODS

Top

__validate_type

  UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception->__validate_type($value);

Returns true if $value is a valid representation of UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception.

__typecheck

  UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception->__typecheck($value, $msg);

Calls confess() with $msg if <UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception-__validate_type($value)>> is false.

isaReception

Returns true if receiver is a UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception. Other receivers will return false.

isaBehavioral_Elements__Common_Behavior__Reception

Returns true if receiver is a UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception. Other receivers will return false. This is the fully qualified version of the isaReception method.

__model_name

  my $name = $obj_or_package->__model_name;

Returns the UML Model name ('Behavioral_Elements::Common_Behavior::Reception') for an object or package of this Classifier.

__isAbstract

  $package->__isAbstract;

Returns 0.

__tangram_schema

  my $tangram_schema $obj_or_package->__tangram_schema

Returns a HASH ref that describes this Classifier for Tangram.

See UMMF::Export::Perl::Tangram

___initialize

Initialize all Attributes and AssociationEnds in a instance of this Classifier. Does not initalize slots in its Generalizations.

See also: __initialize.

__initialize

Initialize all slots in this Classifier and all its Generalizations.

See also: ___initialize.

__create

Calls all <<create>> Methods for this Classifier and all Generalizations.

See also: ___create.

specification

  my $val = $obj->specification;

Returns the UMMF::UML_1_5::Foundation::Data_Types::String value of Attribute specification.

set_specification

  $obj->set_specification($val);

Sets the value of Attribute specification. $val must be of type UMMF::UML_1_5::Foundation::Data_Types::String or undef. Returns $obj.

count_specification

  $obj->count_specification;

Returns the number of elements (0 or 1) in specification.

isRoot

  my $val = $obj->isRoot;

Returns the UMMF::UML_1_5::Foundation::Data_Types::Boolean value of Attribute isRoot.

set_isRoot

  $obj->set_isRoot($val);

Sets the value of Attribute isRoot. $val must be of type UMMF::UML_1_5::Foundation::Data_Types::Boolean or undef. Returns $obj.

count_isRoot

  $obj->count_isRoot;

Returns the number of elements (0 or 1) in isRoot.

isLeaf

  my $val = $obj->isLeaf;

Returns the UMMF::UML_1_5::Foundation::Data_Types::Boolean value of Attribute isLeaf.

set_isLeaf

  $obj->set_isLeaf($val);

Sets the value of Attribute isLeaf. $val must be of type UMMF::UML_1_5::Foundation::Data_Types::Boolean or undef. Returns $obj.

count_isLeaf

  $obj->count_isLeaf;

Returns the number of elements (0 or 1) in isLeaf.

isAbstract

  my $val = $obj->isAbstract;

Returns the UMMF::UML_1_5::Foundation::Data_Types::Boolean value of Attribute isAbstract.

set_isAbstract

  $obj->set_isAbstract($val);

Sets the value of Attribute isAbstract. $val must be of type UMMF::UML_1_5::Foundation::Data_Types::Boolean or undef. Returns $obj.

count_isAbstract

  $obj->count_isAbstract;

Returns the number of elements (0 or 1) in isAbstract.

signal

  my $val = $obj->signal;

Returns the AssociationEnd signal value of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal.

set_signal

  $obj->set_signal($val);

Sets the AssociationEnd signal value. $val must of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal. Returns $obj.

add_signal

  $obj->add_signal($val);

Adds the AssociationEnd signal value. $val must of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal. Throws exception if a value already exists. Returns $obj.

remove_signal

  $obj->remove_signal($val);

Removes the AssociationEnd signal value $val. Returns $obj.

clear_signal

  $obj->clear_signal;

Clears the AssociationEnd signal links to UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal. Returns $obj.

count_signal

  $obj->count_signal;

Returns the number of elements of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal associated with signal.

END OF DOCUMENT


UMMF documentation Contained in the UMMF distribution.
# -*- perl -*-
# DO NOT EDIT - This file is generated by UMMF; http://ummf.sourceforge.net 
# From template: $Id: Perl.txt,v 1.77 2006/05/14 01:40:03 kstephens Exp $

package UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception;

#use 5.6.1;
use strict;
use warnings;

#################################################################
# Version
#

our $VERSION = do { my @r = (q{1.5} =~ /\d+/g); sprintf "%d." . "%03d" x $#r, @r };


#################################################################
# Documentation
#



#################################################################
# Dependencies
#





use Carp qw(croak confess);
use Set::Object 1.05;
use Class::Multimethods 1.70;
use Data::Dumper;
use Scalar::Util qw(weaken);
use UMMF::UML_1_5::__ObjectBase qw(:__ummf_array);


#################################################################
# Generalizations
#

use base qw(
  UMMF::UML_1_5::Foundation::Core::BehavioralFeature



);


#################################################################
# Exports
#

our @EXPORT_OK = qw(
);
our %EXPORT_TAGS = ( 'all' => \@EXPORT_OK );





#################################################################
# Validation
#


sub __validate_type($$)
{
  my ($self, $x) = @_;

  no warnings;

  UNIVERSAL::isa($x, 'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception')  ;
}


sub __typecheck
{
  my ($self, $x, $msg) = @_;

  confess("typecheck: $msg: type '" . 'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception' . ": value '$x'")
    unless __validate_type($self, $x);
}


sub isaReception { 1 }


sub isaBehavioral_Elements__Common_Behavior__Reception { 1 }


#################################################################
# Introspection
#

sub __model_name { 'Behavioral_Elements::Common_Behavior::Reception' }



sub __isAbstract { 0; }


my $__tangram_schema;
sub __tangram_schema
{
  my ($self) = @_;

  $__tangram_schema ||=
  {
   'classes' =>
   [
     'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception' =>
     {
       'table' => 'Behavioral_Elements__Common_Behavior__Reception',
       'abstract' => 0,
       'slots' => 
       { 
	 # Attributes
	 	       'specification'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Foundation::Data_Types::String',

                                             'col' => 'specification', 

                                                                                                                   }
      ,
         	       'isRoot'
       => {
	 'type_impl' => 'string',
                                             'col' => 'isRoot', 

                                                                                                                   }
      ,
         	       'isLeaf'
       => {
	 'type_impl' => 'string',
                                             'col' => 'isLeaf', 

                                                                                                                   }
      ,
         	       'isAbstract'
       => {
	 'type_impl' => 'string',
                                             'col' => 'isAbstract', 

                                                                                                                   }
      ,
         
	 # Associations
	 	 	       'signal'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal',

                                             'col' => 'signal', 

                                                                                                                   }
      ,
                         },
       'bases' => [  'UMMF::UML_1_5::Foundation::Core::BehavioralFeature',  ],
       'sql' => {

       },
     },
   ],

   'sql' =>
   {
    # Note Tangram::Ref::get_exporter() has
    # "UPDATE $table SET $self->{col} = $refid WHERE id = $id",
    # The id_col is hard-coded, 
    # Thus id_col will not work.
    #'id_col' => '__sid',
    #'class_col' => '__stype',
   },
     # 'set_id' => sub { }
     # 'get_id' => sub { }

      
  };
}


#################################################################
# Class Attributes
#


            

#################################################################
# Class Associations
#


    

#################################################################
# Initialization
#


sub ___initialize
{
  my ($self) = @_;

  # Attributes

    # Attribute specification
  if ( exists $self->{'specification'} ) {
    my $x = $self->{'specification'};
    $self->{'specification'} = undef;
        $self->set_specification($x);
      } else {
      }
  
    # Attribute isRoot
  if ( exists $self->{'isRoot'} ) {
    my $x = $self->{'isRoot'};
    $self->{'isRoot'} = undef;
        $self->set_isRoot($x);
      } else {
        $self->{'isRoot'} = "false";
      }
  
    # Attribute isLeaf
  if ( exists $self->{'isLeaf'} ) {
    my $x = $self->{'isLeaf'};
    $self->{'isLeaf'} = undef;
        $self->set_isLeaf($x);
      } else {
        $self->{'isLeaf'} = "false";
      }
  
    # Attribute isAbstract
  if ( exists $self->{'isAbstract'} ) {
    my $x = $self->{'isAbstract'};
    $self->{'isAbstract'} = undef;
        $self->set_isAbstract($x);
      } else {
        $self->{'isAbstract'} = "false";
      }
  


  # Associations

  # AssociationEnd 
  #  reception 0..*
  #  <--> 
  #  signal 1 UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal.
    if ( defined $self->{'signal'} ) {
    my $x = $self->{'signal'};
    $self->{'signal'} = undef;
    $self->set_signal($x);
  }
  

  $self;
}


my $__initialize_use;

sub __initialize
{
  my ($self) = @_;

  # $DB::single = 1;

  unless ( ! $__initialize_use ) {
    $__initialize_use = 1;
    $self->__use('UMMF::UML_1_5::Foundation::Core::Element');
    $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement');
    $self->__use('UMMF::UML_1_5::Foundation::Core::Feature');
    $self->__use('UMMF::UML_1_5::Foundation::Core::BehavioralFeature');
  }

  $self->UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::Element::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::Feature::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::BehavioralFeature::___initialize;

  $self;
}
      

sub __create
{
  my ($self, @args) = @_;

  # $DB::single = 1;
  $self->UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception::___create(@args);
  $self->UMMF::UML_1_5::Foundation::Core::Element::___create();
  $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___create();
  $self->UMMF::UML_1_5::Foundation::Core::Feature::___create();
  $self->UMMF::UML_1_5::Foundation::Core::BehavioralFeature::___create();

  $self;
}




#################################################################
# Attributes
#



#################################################################
# Attribute specification
# type = UMMF::UML_1_5::Foundation::Data_Types::String
# multiplicity = 1
# ordering = unordered
# ownerScope = instance
# initialValue = 

sub specification ($)
{
  my ($self) = @_;

  ;

  my $val = $self->{'specification'};

  ;

  $val;
}


sub set_specification ($$)
{
  my ($self, $val) = @_;

  ;

  if ( defined $val ) {
    ;
  }

    $self->{'specification'} = $val
  ;

  ;

  $self;
}


sub count_specification ($)
{
  my ($self) = @_;

  ;

  my $val = $self->{'specification'};

  ;

  defined $val ? 1 : 0;
}



#################################################################
# Attribute isRoot
# type = UMMF::UML_1_5::Foundation::Data_Types::Boolean
# multiplicity = 1
# ordering = unordered
# ownerScope = instance
# initialValue = "false"

sub isRoot ($)
{
  my ($self) = @_;

  ;

  my $val = $self->{'isRoot'};

  ;

  $val;
}


sub set_isRoot ($$)
{
  my ($self, $val) = @_;

  ;

  if ( defined $val ) {
    ;
  }

    $self->{'isRoot'} = $val
  ;

  ;

  $self;
}


sub count_isRoot ($)
{
  my ($self) = @_;

  ;

  my $val = $self->{'isRoot'};

  ;

  defined $val ? 1 : 0;
}



#################################################################
# Attribute isLeaf
# type = UMMF::UML_1_5::Foundation::Data_Types::Boolean
# multiplicity = 1
# ordering = unordered
# ownerScope = instance
# initialValue = "false"

sub isLeaf ($)
{
  my ($self) = @_;

  ;

  my $val = $self->{'isLeaf'};

  ;

  $val;
}


sub set_isLeaf ($$)
{
  my ($self, $val) = @_;

  ;

  if ( defined $val ) {
    ;
  }

    $self->{'isLeaf'} = $val
  ;

  ;

  $self;
}


sub count_isLeaf ($)
{
  my ($self) = @_;

  ;

  my $val = $self->{'isLeaf'};

  ;

  defined $val ? 1 : 0;
}



#################################################################
# Attribute isAbstract
# type = UMMF::UML_1_5::Foundation::Data_Types::Boolean
# multiplicity = 1
# ordering = unordered
# ownerScope = instance
# initialValue = "false"

sub isAbstract ($)
{
  my ($self) = @_;

  ;

  my $val = $self->{'isAbstract'};

  ;

  $val;
}


sub set_isAbstract ($$)
{
  my ($self, $val) = @_;

  ;

  if ( defined $val ) {
    ;
  }

    $self->{'isAbstract'} = $val
  ;

  ;

  $self;
}


sub count_isAbstract ($)
{
  my ($self) = @_;

  ;

  my $val = $self->{'isAbstract'};

  ;

  defined $val ? 1 : 0;
}




#################################################################
# Association
#


#################################################################
# AssociationEnd reception <---> signal
# type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal
# multiplicity = 1
# ordering = 

sub signal ($)
{
  my ($self) = @_;
		  
  $self->{'signal'};
}


sub set_signal ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'signal'}) ne $val ) { # Recursion lock

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception.signal") }

    # Recursion lock
        $self->{'signal'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_reception($self) if $old;
    $val->add_reception($self)    if $val;

    }
		  
  $self;
}


sub add_signal ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'signal'}) ne $val ) { # Recursion lock
    $self->__use('UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception.signal");
      
    # confess("UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Reception::signal: too many")
    # if defined $self->{'signal'};

    # Recursion lock
        $self->{'signal'} = $val
    ;

    # Remove and add associations with other ends.
        
    $old->remove_reception($self) if $old;
    $val->add_reception($self)    if $val;

  
  }

  $self;
}


sub remove_signal ($$)
{
  my ($self, $val) = @_;

  no warnings; # Use of uninitialized value in string ne at ...

  my $old;
  if ( ($old = $self->{'signal'}) eq $val ) { # Recursion lock
    $val = $self->{'signal'} = undef;         # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_reception($self) if $old;
    $val->add_reception($self)    if $val;

  
  }
}


sub clear_signal ($@)
{
  my ($self) = @_;

  my $old;
  if ( defined ($old = $self->{'signal'}) ) { # Recursion lock
    my $val = $self->{'signal'} = undef;      # Recursion lock

    # Remove and add associations with other ends.
        
    $old->remove_reception($self) if $old;
    $val->add_reception($self)    if $val;

    }

  $self;
}


sub count_signal ($)
{
  my ($self) = @_;

  my $x = $self->{'signal'};

  defined $x ? 1 : 0;
}







# End of Class Reception


############################################################################

1; # is true!

############################################################################

### Keep these comments at end of file: kstephens@users.sourceforge.net 2003/04/06 ###
### Local Variables: ###
### mode:perl ###
### perl-indent-level:2 ###
### perl-continued-statement-offset:0 ###
### perl-brace-offset:0 ###
### perl-label-offset:0 ###
### End: ###