UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus - UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus documentation


UMMF documentation Contained in the UMMF distribution.

Index


Code Index:

NAME

Top

UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus --

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::ModelElement

ATTRIBUTES

Top

NO ATTRIBUTES

ASSOCIATIONS

Top

stimulus_argument : THIS 0..* <---> argument : UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance 0..*

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance
multiplicity = 0..*
changeability = changeable
targetScope = instance
ordering = ordered
isNavigable = 1
aggregation = aggregate
visibility = public
container_type = ARRAY

stimulus : THIS 0..* <---> dispatchAction : UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure 1

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

particpatingStimulus : THIS 1..* <---> interactionInstanceSet : UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet 0..*

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet (UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet)
multiplicity = 0..*
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = none
visibility = private
container_type = Set::Object

conformingStimulus : THIS 0..* <---> playedRole : UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message 0..*

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message
multiplicity = 0..*
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = none
visibility = public
container_type = Set::Object

stimulus_receiver : THIS 0..* <---> receiver : UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance 1

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

stimulus_sender : THIS 0..* <---> sender : UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance 1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance
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::Stimulus->__validate_type($value);

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

__typecheck

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

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

isaStimulus

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

isaBehavioral_Elements__Common_Behavior__Stimulus

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

__model_name

  my $name = $obj_or_package->__model_name;

Returns the UML Model name ('Behavioral_Elements::Common_Behavior::Stimulus') 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.

argument

  my @val = $obj->argument;
  my $ary_val = $obj->argument;

Returns the AssociationEnd argument values of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance. In array context, returns all the objects in the Association. In scalar context, returns an array ref of all the objects in the Association.

index_argument

  my $x = $obj->index_argument($i);
  my @x = $obj->index_argument($i, $count);

In scalar context, returns the value of AssociationEnd argument at index $i. In array context, returns the values between index $i and $i + $count - 1, inclusive.

index_of_argument

  my $index = $obj->index_of_argument($val);

Returns the index of $val in AssociationEnd argument. Return undef if $val is not in argument.

set_argument

  $obj->set_argument(@val);

Sets the AssociationEnd argument value. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance. Returns $obj.

set_index_argument

  $obj->set_index_argument($i, $val);

Sets the value of AssociationEnd argument at index $i. Returns self.

add_argument

  $obj->add_argument(@val);

Adds AssociationEnd argument values. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance. Returns $obj.

add_index_argument

  $obj->add_index_argument($i, @val);

Adds AssociationEnd argument values at index $i. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance. Returns $obj.

remove_argument

  $obj->remove_argument(@val);

Removes the AssociationEnd argument values @val. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance. Returns $obj.

clear_argument

  $obj->clear_argument;

Clears the AssociationEnd argument links to UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance. Returns $obj.

count_argument

  $obj->count_argument;

Returns the number of elements associated with argument.

dispatchAction

  my $val = $obj->dispatchAction;

Returns the AssociationEnd dispatchAction value of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure.

set_dispatchAction

  $obj->set_dispatchAction($val);

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

add_dispatchAction

  $obj->add_dispatchAction($val);

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

remove_dispatchAction

  $obj->remove_dispatchAction($val);

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

clear_dispatchAction

  $obj->clear_dispatchAction;

Clears the AssociationEnd dispatchAction links to UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure. Returns $obj.

count_dispatchAction

  $obj->count_dispatchAction;

Returns the number of elements of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure associated with dispatchAction.

interactionInstanceSet

  my @val = $obj->interactionInstanceSet;
  my $ary_val = $obj->interactionInstanceSet;

Returns the AssociationEnd interactionInstanceSet values of type UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet (UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet). In array context, returns all the objects in the Association. In scalar context, returns an array ref of all the objects in the Association.

set_interactionInstanceSet

  $obj->set_interactionInstanceSet(@val);

Sets the AssociationEnd interactionInstanceSet value. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet (UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet). Returns $obj.

add_interactionInstanceSet

  $obj->add_interactionInstanceSet(@val);

Adds AssociationEnd interactionInstanceSet values. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet (UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet). Returns $obj.

remove_interactionInstanceSet

  $obj->remove_interactionInstanceSet(@val);

Removes the AssociationEnd interactionInstanceSet values @val. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet (UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet). Returns $obj.

clear_interactionInstanceSet

  $obj->clear_interactionInstanceSet;

Clears the AssociationEnd interactionInstanceSet links to UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet (UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet). Returns $obj.

count_interactionInstanceSet

  $obj->count_interactionInstanceSet;

Returns the number of elements associated with interactionInstanceSet.

playedRole

  my @val = $obj->playedRole;
  my $ary_val = $obj->playedRole;

Returns the AssociationEnd playedRole values of type UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message. In array context, returns all the objects in the Association. In scalar context, returns an array ref of all the objects in the Association.

set_playedRole

  $obj->set_playedRole(@val);

Sets the AssociationEnd playedRole value. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message. Returns $obj.

add_playedRole

  $obj->add_playedRole(@val);

Adds AssociationEnd playedRole values. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message. Returns $obj.

remove_playedRole

  $obj->remove_playedRole(@val);

Removes the AssociationEnd playedRole values @val. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message. Returns $obj.

clear_playedRole

  $obj->clear_playedRole;

Clears the AssociationEnd playedRole links to UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message. Returns $obj.

count_playedRole

  $obj->count_playedRole;

Returns the number of elements associated with playedRole.

receiver

  my $val = $obj->receiver;

Returns the AssociationEnd receiver value of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance.

set_receiver

  $obj->set_receiver($val);

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

add_receiver

  $obj->add_receiver($val);

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

remove_receiver

  $obj->remove_receiver($val);

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

clear_receiver

  $obj->clear_receiver;

Clears the AssociationEnd receiver links to UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance. Returns $obj.

count_receiver

  $obj->count_receiver;

Returns the number of elements of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance associated with receiver.

sender

  my $val = $obj->sender;

Returns the AssociationEnd sender value of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance.

set_sender

  $obj->set_sender($val);

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

add_sender

  $obj->add_sender($val);

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

remove_sender

  $obj->remove_sender($val);

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

clear_sender

  $obj->clear_sender;

Clears the AssociationEnd sender links to UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance. Returns $obj.

count_sender

  $obj->count_sender;

Returns the number of elements of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance associated with sender.

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::Stimulus;

#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::ModelElement



);


#################################################################
# 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::Stimulus')  ;
}


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

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


sub isaStimulus { 1 }


sub isaBehavioral_Elements__Common_Behavior__Stimulus { 1 }


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

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



sub __isAbstract { 0; }


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

  $__tangram_schema ||=
  {
   'classes' =>
   [
     'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus' =>
     {
       'table' => 'Behavioral_Elements__Common_Behavior__Stimulus',
       'abstract' => 0,
       'slots' => 
       { 
	 # Attributes
	 
	 # Associations
	 	 	       'argument'
       => {
	 'type_impl' => 'array',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance',

                           'table' => 'Behavioral_Elements__Common_Behavior__Stimulus_Argument', 

                                                      'item' => 'argument', 

                  'coll' => 'stimulus_argument',

                  'slot' => 'argument_i', 

                                                                      }
      ,
                  	 	       'communicationsLink'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Link',

                  'null' => '1', 

                                    'col' => 'communicationsLink', 

                                                                                                                   }
      ,
                  	 	       'dispatchAction'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure',

                                             'col' => 'dispatchAction', 

                                                                                                                   }
      ,
                  	 	       'interactionInstanceSet'
       => {
	 'type_impl' => 'set',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet',

                           'table' => 'Behavioral_Elements__InteractionInstanceSet_ParticpatingStimulus', 

                                                      'item' => 'interactionInstanceSet', 

                  'coll' => 'particpatingStimulus',

                                                                               }
      ,
                  	 	       'playedRole'
       => {
	 'type_impl' => 'set',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message',

                           'table' => 'Behavioral_Elements__PlayedRole_ConformingStimulus', 

                                                      'item' => 'playedRole', 

                  'coll' => 'conformingStimulus',

                                                                               }
      ,
                  	 	       'receiver'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance',

                                             'col' => 'receiver', 

                                                                                                                   }
      ,
                  	 	       'sender'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance',

                                             'col' => 'sender', 

                                                                                                                   }
      ,
                         },
       'bases' => [  'UMMF::UML_1_5::Foundation::Core::ModelElement',  ],
       '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



  # Associations

  # AssociationEnd 
  #  stimulus_argument 0..*
  #  <--> 
  #  argument 0..* UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance.
    if ( defined $self->{'argument'} ) {
    my $x = $self->{'argument'};
        $self->{'argument'} = [ ];
        $self->set_argument(@$x);
  }
  
  # AssociationEnd 
  #  stimulus_communicationsLink 0..*
  #  <--> 
  #  communicationsLink 0..1 UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Link.
    if ( defined $self->{'communicationsLink'} ) {
    my $x = $self->{'communicationsLink'};
    $self->{'communicationsLink'} = undef;
    $self->set_communicationsLink($x);
  }
  
  # AssociationEnd 
  #  stimulus 0..*
  #  <--> 
  #  dispatchAction 1 UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure.
    if ( defined $self->{'dispatchAction'} ) {
    my $x = $self->{'dispatchAction'};
    $self->{'dispatchAction'} = undef;
    $self->set_dispatchAction($x);
  }
  
  # AssociationEnd 
  #  particpatingStimulus 1..*
  #  <--> 
  #  interactionInstanceSet 0..* UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet.
    if ( defined $self->{'interactionInstanceSet'} ) {
    my $x = $self->{'interactionInstanceSet'};
        $self->{'interactionInstanceSet'} = Set::Object->new();
        $self->set_interactionInstanceSet(@$x);
  }
  
  # AssociationEnd 
  #  conformingStimulus 0..*
  #  <--> 
  #  playedRole 0..* UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message.
    if ( defined $self->{'playedRole'} ) {
    my $x = $self->{'playedRole'};
        $self->{'playedRole'} = Set::Object->new();
        $self->set_playedRole(@$x);
  }
  
  # AssociationEnd 
  #  stimulus_receiver 0..*
  #  <--> 
  #  receiver 1 UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance.
    if ( defined $self->{'receiver'} ) {
    my $x = $self->{'receiver'};
    $self->{'receiver'} = undef;
    $self->set_receiver($x);
  }
  
  # AssociationEnd 
  #  stimulus_sender 0..*
  #  <--> 
  #  sender 1 UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance.
    if ( defined $self->{'sender'} ) {
    my $x = $self->{'sender'};
    $self->{'sender'} = undef;
    $self->set_sender($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->UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::Element::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___initialize;

  $self;
}
      

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

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

  $self;
}




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




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


#################################################################
# AssociationEnd stimulus_argument <---> argument
# type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance
# multiplicity = 0..*
# ordering = ordered

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

    my $x = $self->{'argument'} ||= [ ];

  wantarray ? @{$x} : $x;
  
}


sub index_argument ($$@)
{
  my ($self, $i, $count) = @_;

  ;

  my $val = $self->{'argument'} ||= [ ];

  ;

  wantarray ? $val->[$i .. (defined $count ? $i + $count - 1 : $i)]
            : $val->[$i];
}


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

  ;

  my $val = $self->{'argument'} ||= [ ];

  ;

  __ummf_array_index($val, $x);
}


sub set_argument ($@)
{
  my ($self, @val) = @_;
  
  $self->clear_argument;
  $self->add_argument(@val);
}


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

  ;

  my $x = $self->{'argument'} ||= [ ];

  no warnings;
  my $old;
  if ( ($old = $x->[$i]) ne $val) {
    # Recursion lock
        $x->[$i] = $val
    ;

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

  
    ;
  }

  $self;
}


sub add_argument ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'argument'} ||= [ ];
    my $old; # Place holder for other MACRO.
  
  for my $val ( @val ) {
    # Recursion lock
        next if grep($_ eq $val, @$x);
        $self->__use('UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus.argument");

    # Recursion lock
        push(@{$x}, $val);
        
    # Remove and add associations with other ends.
        
    $old->remove_stimulus_argument($self) if $old;
    $val->add_stimulus_argument($self)    if $val;

    }
  
  $self;
}


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

  
    my $x = $self->{'argument'} ||= [ ];
    my $old; # Place holder for other MACRO.
  
  for my $val ( @val ) {
    # Recursion lock
        next if grep($_ eq $val, @$x);
        $self->__use('UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus.argument");

    # Recursion lock
        splice(@{$x}, $i, 0, $val); # Recursion lock
        ++ $i;
    
    # Remove and add associations with other ends.
        
    $old->remove_stimulus_argument($self) if $old;
    $val->add_stimulus_argument($self)    if $val;

    }
  
  
  $self;
}


sub remove_argument ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'argument'} ||= [ ];
  
  for my $old ( @val ) {
    # Recursion lock
        my $i; # index of $old in @$x.
    next unless defined($i = __ummf_array_index($x, $old));
    
    my $val = $old;
      
    $self->__use('UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus.argument");

    # Recursion lock
        splice(@$x, $i, 1);     
    $val = undef;

    # Remove associations with other ends.

        
    $old->remove_stimulus_argument($self) if $old;
    $val->add_stimulus_argument($self)    if $val;

  ;

  }
  
  $self;
}


sub clear_argument ($) 
{
  my ($self) = @_;
  
    my $x = $self->{'argument'} ||= [ ];
  
  my $val; # Place holder for other MACRO.
  
    $self->{'argument'} = [ ];  # Recursion lock
  for my $old ( @$x ) { # Recursion lock
  
    # Remove associations with other ends.

        
    $old->remove_stimulus_argument($self) if $old;
    $val->add_stimulus_argument($self)    if $val;

  ;

  }
  
  $self;
}


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

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

    defined $x ? scalar @$x : 0;
  }




#################################################################
# AssociationEnd stimulus_communicationsLink <---> communicationsLink
# type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Link
# multiplicity = 0..1
# ordering = 

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


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

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Link')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus.communicationsLink") }

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

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

    }
		  
  $self;
}


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

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

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

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

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

  
  }

  $self;
}


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

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

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

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

  
  }
}


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

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

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

    }

  $self;
}


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

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

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd stimulus <---> dispatchAction
# type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure
# multiplicity = 1
# ordering = 

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


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

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus.dispatchAction") }

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

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

    }
		  
  $self;
}


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

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

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

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

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

  
  }

  $self;
}


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

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

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

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

  
  }
}


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

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

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

    }

  $self;
}


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

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

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd particpatingStimulus <---> interactionInstanceSet
# type = UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet
# multiplicity = 0..*
# ordering = 

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

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

  # confess("Container for interactionInstanceSet $x is not a blessed ref: " . Data::Dumper->new([ $self ], [qw($self)])->Maxdepth(2)->Dump()) if $x && ref($x) !~ /::/;
 
  wantarray ? ($x ? $x->members() : ()) : [ $x ? $x->members() : () ];
  
}


sub set_interactionInstanceSet ($@)
{
  my ($self, @val) = @_;
  
  $self->clear_interactionInstanceSet;
  $self->add_interactionInstanceSet(@val);
}


sub add_interactionInstanceSet ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'interactionInstanceSet'} ||= Set::Object->new();
    my $old; # Place holder for other MACRO.
  
  for my $val ( @val ) {
    # Recursion lock
        next if $x->includes($val);
        $self->__use('UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus.interactionInstanceSet");

    # Recursion lock
        $x->insert($val);
    # weaken?
    
    # Remove and add associations with other ends.
        
    $old->remove_particpatingStimulus($self) if $old;
    $val->add_particpatingStimulus($self)    if $val;

    }
  
  $self;
}


sub remove_interactionInstanceSet ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'interactionInstanceSet'} ||= Set::Object->new();
  
  for my $old ( @val ) {
    # Recursion lock
        next unless $x->includes($old);
    
    my $val = $old;
      
    $self->__use('UMMF::UML_1_5::Behavioral_Elements::Collaborations::InteractionInstanceSet')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus.interactionInstanceSet");

    # Recursion lock
        $x->remove($old);
    
    $val = undef;

    # Remove associations with other ends.

        
    $old->remove_particpatingStimulus($self) if $old;
    $val->add_particpatingStimulus($self)    if $val;

  ;

  }
  
  $self;
}


sub clear_interactionInstanceSet ($) 
{
  my ($self) = @_;
  
    my $x = $self->{'interactionInstanceSet'} ||= Set::Object->new();
  
  my $val; # Place holder for other MACRO.
  
    $self->{'interactionInstanceSet'} = Set::Object->new(); # Recursion lock
  for my $old ( $x->members() ) {     # Recursion lock
  
    # Remove associations with other ends.

        
    $old->remove_particpatingStimulus($self) if $old;
    $val->add_particpatingStimulus($self)    if $val;

  ;

  }
  
  $self;
}


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

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

    defined $x ? $x->size : 0;
  }




#################################################################
# AssociationEnd conformingStimulus <---> playedRole
# type = UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message
# multiplicity = 0..*
# ordering = 

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

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

  # confess("Container for playedRole $x is not a blessed ref: " . Data::Dumper->new([ $self ], [qw($self)])->Maxdepth(2)->Dump()) if $x && ref($x) !~ /::/;
 
  wantarray ? ($x ? $x->members() : ()) : [ $x ? $x->members() : () ];
  
}


sub set_playedRole ($@)
{
  my ($self, @val) = @_;
  
  $self->clear_playedRole;
  $self->add_playedRole(@val);
}


sub add_playedRole ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'playedRole'} ||= Set::Object->new();
    my $old; # Place holder for other MACRO.
  
  for my $val ( @val ) {
    # Recursion lock
        next if $x->includes($val);
        $self->__use('UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus.playedRole");

    # Recursion lock
        $x->insert($val);
    # weaken?
    
    # Remove and add associations with other ends.
        
    $old->remove_conformingStimulus($self) if $old;
    $val->add_conformingStimulus($self)    if $val;

    }
  
  $self;
}


sub remove_playedRole ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'playedRole'} ||= Set::Object->new();
  
  for my $old ( @val ) {
    # Recursion lock
        next unless $x->includes($old);
    
    my $val = $old;
      
    $self->__use('UMMF::UML_1_5::Behavioral_Elements::Collaborations::Message')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus.playedRole");

    # Recursion lock
        $x->remove($old);
    
    $val = undef;

    # Remove associations with other ends.

        
    $old->remove_conformingStimulus($self) if $old;
    $val->add_conformingStimulus($self)    if $val;

  ;

  }
  
  $self;
}


sub clear_playedRole ($) 
{
  my ($self) = @_;
  
    my $x = $self->{'playedRole'} ||= Set::Object->new();
  
  my $val; # Place holder for other MACRO.
  
    $self->{'playedRole'} = Set::Object->new(); # Recursion lock
  for my $old ( $x->members() ) {     # Recursion lock
  
    # Remove associations with other ends.

        
    $old->remove_conformingStimulus($self) if $old;
    $val->add_conformingStimulus($self)    if $val;

  ;

  }
  
  $self;
}


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

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

    defined $x ? $x->size : 0;
  }




#################################################################
# AssociationEnd stimulus_receiver <---> receiver
# type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance
# multiplicity = 1
# ordering = 

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


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

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus.receiver") }

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

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

    }
		  
  $self;
}


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

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

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

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

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

  
  }

  $self;
}


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

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

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

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

  
  }
}


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

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

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

    }

  $self;
}


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

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

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd stimulus_sender <---> sender
# type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance
# multiplicity = 1
# ordering = 

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


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

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Instance')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Stimulus.sender") }

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

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

    }
		  
  $self;
}


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

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

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

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

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

  
  }

  $self;
}


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

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

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

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

  
  }
}


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

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

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

    }

  $self;
}


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

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

  defined $x ? 1 : 0;
}







# End of Class Stimulus


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

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: ###