UMMF::UML_1_5::Behavioral_Elements::State_Machines::State - UMMF::UML_1_5::Behavioral_Elements::State_Machines::State documentation


UMMF documentation Contained in the UMMF distribution.

Index


Code Index:

NAME

Top

UMMF::UML_1_5::Behavioral_Elements::State_Machines::State --

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::Behavioral_Elements::State_Machines::StateVertex

ATTRIBUTES

Top

NO ATTRIBUTES

ASSOCIATIONS

Top

inState : THIS 1..* <---> classifierInState : UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState 0..*

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

state : THIS 0..* <---> deferrableEvent : UMMF::UML_1_5::Behavioral_Elements::State_Machines::Event 0..*

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

state_doActivity : THIS 0..1 <---> doActivity : UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure 0..1

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

state_entry : THIS 0..1 <---> entry : UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure 0..1

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

state_exit : THIS 0..1 <---> exit : UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure 0..1

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

state : THIS 0..1 <---> internalTransition : UMMF::UML_1_5::Behavioral_Elements::State_Machines::Transition 0..*

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

top : THIS 1 <---> stateMachine : UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateMachine 0..1

metatype = UMMF::UML_1_5::Foundation::Core::AssociationEnd
type = UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateMachine
multiplicity = 0..1
changeability = changeable
targetScope = instance
ordering =
isNavigable = 1
aggregation = composite
visibility = private
container_type = Set::Object

METHODS

Top

__validate_type

  UMMF::UML_1_5::Behavioral_Elements::State_Machines::State->__validate_type($value);

Returns true if $value is a valid representation of UMMF::UML_1_5::Behavioral_Elements::State_Machines::State.

__typecheck

  UMMF::UML_1_5::Behavioral_Elements::State_Machines::State->__typecheck($value, $msg);

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

isaState

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

isaBehavioral_Elements__State_Machines__State

Returns true if receiver is a UMMF::UML_1_5::Behavioral_Elements::State_Machines::State. Other receivers will return false. This is the fully qualified version of the isaState method.

__model_name

  my $name = $obj_or_package->__model_name;

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

classifierInState

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

Returns the AssociationEnd classifierInState values of type UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState (UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState). 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_classifierInState

  $obj->set_classifierInState(@val);

Sets the AssociationEnd classifierInState value. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState (UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState). Returns $obj.

add_classifierInState

  $obj->add_classifierInState(@val);

Adds AssociationEnd classifierInState values. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState (UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState). Returns $obj.

remove_classifierInState

  $obj->remove_classifierInState(@val);

Removes the AssociationEnd classifierInState values @val. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState (UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState). Returns $obj.

clear_classifierInState

  $obj->clear_classifierInState;

Clears the AssociationEnd classifierInState links to UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState (UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState). Returns $obj.

count_classifierInState

  $obj->count_classifierInState;

Returns the number of elements associated with classifierInState.

deferrableEvent

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

Returns the AssociationEnd deferrableEvent values of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::Event. 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_deferrableEvent

  $obj->set_deferrableEvent(@val);

Sets the AssociationEnd deferrableEvent value. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::Event. Returns $obj.

add_deferrableEvent

  $obj->add_deferrableEvent(@val);

Adds AssociationEnd deferrableEvent values. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::Event. Returns $obj.

remove_deferrableEvent

  $obj->remove_deferrableEvent(@val);

Removes the AssociationEnd deferrableEvent values @val. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::Event. Returns $obj.

clear_deferrableEvent

  $obj->clear_deferrableEvent;

Clears the AssociationEnd deferrableEvent links to UMMF::UML_1_5::Behavioral_Elements::State_Machines::Event. Returns $obj.

count_deferrableEvent

  $obj->count_deferrableEvent;

Returns the number of elements associated with deferrableEvent.

doActivity

  my $val = $obj->doActivity;

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

set_doActivity

  $obj->set_doActivity($val);

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

add_doActivity

  $obj->add_doActivity($val);

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

remove_doActivity

  $obj->remove_doActivity($val);

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

clear_doActivity

  $obj->clear_doActivity;

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

count_doActivity

  $obj->count_doActivity;

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

entry

  my $val = $obj->entry;

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

set_entry

  $obj->set_entry($val);

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

add_entry

  $obj->add_entry($val);

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

remove_entry

  $obj->remove_entry($val);

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

clear_entry

  $obj->clear_entry;

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

count_entry

  $obj->count_entry;

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

exit

  my $val = $obj->exit;

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

set_exit

  $obj->set_exit($val);

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

add_exit

  $obj->add_exit($val);

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

remove_exit

  $obj->remove_exit($val);

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

clear_exit

  $obj->clear_exit;

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

count_exit

  $obj->count_exit;

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

internalTransition

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

Returns the AssociationEnd internalTransition values of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::Transition. 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_internalTransition

  $obj->set_internalTransition(@val);

Sets the AssociationEnd internalTransition value. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::Transition. Returns $obj.

add_internalTransition

  $obj->add_internalTransition(@val);

Adds AssociationEnd internalTransition values. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::Transition. Returns $obj.

remove_internalTransition

  $obj->remove_internalTransition(@val);

Removes the AssociationEnd internalTransition values @val. Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::Transition. Returns $obj.

clear_internalTransition

  $obj->clear_internalTransition;

Clears the AssociationEnd internalTransition links to UMMF::UML_1_5::Behavioral_Elements::State_Machines::Transition. Returns $obj.

count_internalTransition

  $obj->count_internalTransition;

Returns the number of elements associated with internalTransition.

stateMachine

  my $val = $obj->stateMachine;

Returns the AssociationEnd stateMachine value of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateMachine.

set_stateMachine

  $obj->set_stateMachine($val);

Sets the AssociationEnd stateMachine value. $val must of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateMachine. Returns $obj.

add_stateMachine

  $obj->add_stateMachine($val);

Adds the AssociationEnd stateMachine value. $val must of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateMachine. Throws exception if a value already exists. Returns $obj.

remove_stateMachine

  $obj->remove_stateMachine($val);

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

clear_stateMachine

  $obj->clear_stateMachine;

Clears the AssociationEnd stateMachine links to UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateMachine. Returns $obj.

count_stateMachine

  $obj->count_stateMachine;

Returns the number of elements of type UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateMachine associated with stateMachine.

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::State_Machines::State;

#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::Behavioral_Elements::State_Machines::StateVertex



);


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


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

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


sub isaState { 1 }


sub isaBehavioral_Elements__State_Machines__State { 1 }


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

sub __model_name { 'Behavioral_Elements::State_Machines::State' }



sub __isAbstract { 0; }


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

  $__tangram_schema ||=
  {
   'classes' =>
   [
     'UMMF::UML_1_5::Behavioral_Elements::State_Machines::State' =>
     {
       'table' => 'Behavioral_Elements__State_Machines__State',
       'abstract' => 0,
       'slots' => 
       { 
	 # Attributes
	 
	 # Associations
	 	 	       'classifierInState'
       => {
	 'type_impl' => 'set',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState',

                           'table' => 'Behavioral_Elements__ClassifierInState_InState', 

                                                      'item' => 'classifierInState', 

                  'coll' => 'inState',

                                                                               }
      ,
                  	 	       'deferrableEvent'
       => {
	 'type_impl' => 'set',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::State_Machines::Event',

                           'table' => 'Behavioral_Elements__State_Machines__State_DeferrableEvent', 

                                                      'item' => 'deferrableEvent', 

                  'coll' => 'state',

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

                  'null' => '1', 

                                    'col' => 'doActivity', 

                                                                                 'aggreg' => '1', 

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

                  'null' => '1', 

                                    'col' => 'entry', 

                                                                                 'aggreg' => '1', 

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

                  'null' => '1', 

                                    'col' => 'exit', 

                                                                                 'aggreg' => '1', 

                                           }
      ,
                  	 	       'internalTransition'
       => {
	 'type_impl' => 'iset',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::State_Machines::Transition',

                           'table' => 'Behavioral_Elements__State_Machines__State__internalTransition', 

                                                               'coll' => 'state',

                                             'aggreg' => '1', 

                                           }
      ,
                  	 	       'stateMachine'
       => {
	 'type_impl' => 'ref',
         'class' => 'UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateMachine',

                  'null' => '1', 

                                    'col' => 'stateMachine', 

                                                                                                                   }
      ,
                         },
       'bases' => [  'UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateVertex',  ],
       '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 
  #  inState 1..*
  #  <--> 
  #  classifierInState 0..* UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState.
    if ( defined $self->{'classifierInState'} ) {
    my $x = $self->{'classifierInState'};
        $self->{'classifierInState'} = Set::Object->new();
        $self->set_classifierInState(@$x);
  }
  
  # AssociationEnd 
  #  state 0..*
  #  <--> 
  #  deferrableEvent 0..* UMMF::UML_1_5::Behavioral_Elements::State_Machines::Event.
    if ( defined $self->{'deferrableEvent'} ) {
    my $x = $self->{'deferrableEvent'};
        $self->{'deferrableEvent'} = Set::Object->new();
        $self->set_deferrableEvent(@$x);
  }
  
  # AssociationEnd 
  #  state_doActivity 0..1
  #  <--> 
  #  doActivity 0..1 UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure.
    if ( defined $self->{'doActivity'} ) {
    my $x = $self->{'doActivity'};
    $self->{'doActivity'} = undef;
    $self->set_doActivity($x);
  }
  
  # AssociationEnd 
  #  state_entry 0..1
  #  <--> 
  #  entry 0..1 UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure.
    if ( defined $self->{'entry'} ) {
    my $x = $self->{'entry'};
    $self->{'entry'} = undef;
    $self->set_entry($x);
  }
  
  # AssociationEnd 
  #  state_exit 0..1
  #  <--> 
  #  exit 0..1 UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure.
    if ( defined $self->{'exit'} ) {
    my $x = $self->{'exit'};
    $self->{'exit'} = undef;
    $self->set_exit($x);
  }
  
  # AssociationEnd 
  #  state 0..1
  #  <--> 
  #  internalTransition 0..* UMMF::UML_1_5::Behavioral_Elements::State_Machines::Transition.
    if ( defined $self->{'internalTransition'} ) {
    my $x = $self->{'internalTransition'};
        $self->{'internalTransition'} = Set::Object->new();
        $self->set_internalTransition(@$x);
  }
  
  # AssociationEnd 
  #  top 1
  #  <--> 
  #  stateMachine 0..1 UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateMachine.
    if ( defined $self->{'stateMachine'} ) {
    my $x = $self->{'stateMachine'};
    $self->{'stateMachine'} = undef;
    $self->set_stateMachine($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::Behavioral_Elements::State_Machines::StateVertex');
  }

  $self->UMMF::UML_1_5::Behavioral_Elements::State_Machines::State::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::Element::___initialize;
  $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___initialize;
  $self->UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateVertex::___initialize;

  $self;
}
      

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

  # $DB::single = 1;
  $self->UMMF::UML_1_5::Behavioral_Elements::State_Machines::State::___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::Behavioral_Elements::State_Machines::StateVertex::___create();

  $self;
}




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




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


#################################################################
# AssociationEnd inState <---> classifierInState
# type = UMMF::UML_1_5::Behavioral_Elements::Activity_Graphs::ClassifierInState
# multiplicity = 0..*
# ordering = 

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

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

  # confess("Container for classifierInState $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_classifierInState ($@)
{
  my ($self, @val) = @_;
  
  $self->clear_classifierInState;
  $self->add_classifierInState(@val);
}


sub add_classifierInState ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'classifierInState'} ||= 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::Activity_Graphs::ClassifierInState')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::State_Machines::State.classifierInState");

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

    }
  
  $self;
}


sub remove_classifierInState ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'classifierInState'} ||= 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::Activity_Graphs::ClassifierInState')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::State_Machines::State.classifierInState");

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

    # Remove associations with other ends.

        
    $old->remove_inState($self) if $old;
    $val->add_inState($self)    if $val;

  ;

  }
  
  $self;
}


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

        
    $old->remove_inState($self) if $old;
    $val->add_inState($self)    if $val;

  ;

  }
  
  $self;
}


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

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

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




#################################################################
# AssociationEnd state <---> deferrableEvent
# type = UMMF::UML_1_5::Behavioral_Elements::State_Machines::Event
# multiplicity = 0..*
# ordering = 

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

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

  # confess("Container for deferrableEvent $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_deferrableEvent ($@)
{
  my ($self, @val) = @_;
  
  $self->clear_deferrableEvent;
  $self->add_deferrableEvent(@val);
}


sub add_deferrableEvent ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'deferrableEvent'} ||= 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::State_Machines::Event')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::State_Machines::State.deferrableEvent");

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

    }
  
  $self;
}


sub remove_deferrableEvent ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'deferrableEvent'} ||= 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::State_Machines::Event')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::State_Machines::State.deferrableEvent");

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

    # Remove associations with other ends.

        
    $old->remove_state($self) if $old;
    $val->add_state($self)    if $val;

  ;

  }
  
  $self;
}


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

        
    $old->remove_state($self) if $old;
    $val->add_state($self)    if $val;

  ;

  }
  
  $self;
}


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

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

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




#################################################################
# AssociationEnd state_doActivity <---> doActivity
# type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure
# multiplicity = 0..1
# ordering = 

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


sub set_doActivity ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'doActivity'}) 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::State_Machines::State.doActivity") }

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

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

    }
		  
  $self;
}


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

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

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

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

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

  
  }

  $self;
}


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

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

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

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

  
  }
}


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

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

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

    }

  $self;
}


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

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

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd state_entry <---> entry
# type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure
# multiplicity = 0..1
# ordering = 

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


sub set_entry ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'entry'}) 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::State_Machines::State.entry") }

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

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

    }
		  
  $self;
}


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

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

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

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

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

  
  }

  $self;
}


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

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

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

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

  
  }
}


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

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

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

    }

  $self;
}


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

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

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd state_exit <---> exit
# type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Procedure
# multiplicity = 0..1
# ordering = 

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


sub set_exit ($$)
{
  my ($self, $val) = @_;
		  
  no warnings; # Use of uninitialized value in string ne at ...
		  
  my $old;
  if ( ($old = $self->{'exit'}) 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::State_Machines::State.exit") }

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

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

    }
		  
  $self;
}


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

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

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

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

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

  
  }

  $self;
}


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

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

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

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

  
  }
}


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

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

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

    }

  $self;
}


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

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

  defined $x ? 1 : 0;
}




#################################################################
# AssociationEnd state <---> internalTransition
# type = UMMF::UML_1_5::Behavioral_Elements::State_Machines::Transition
# multiplicity = 0..*
# ordering = 

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

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

  # confess("Container for internalTransition $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_internalTransition ($@)
{
  my ($self, @val) = @_;
  
  $self->clear_internalTransition;
  $self->add_internalTransition(@val);
}


sub add_internalTransition ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'internalTransition'} ||= 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::State_Machines::Transition')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::State_Machines::State.internalTransition");

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

    }
  
  $self;
}


sub remove_internalTransition ($@)
{
  my ($self, @val) = @_;
  
    my $x = $self->{'internalTransition'} ||= 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::State_Machines::Transition')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::State_Machines::State.internalTransition");

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

    # Remove associations with other ends.

        
    $old->remove_state($self) if $old;
    $val->add_state($self)    if $val;

  ;

  }
  
  $self;
}


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

        
    $old->remove_state($self) if $old;
    $val->add_state($self)    if $val;

  ;

  }
  
  $self;
}


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

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

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




#################################################################
# AssociationEnd top <---> stateMachine
# type = UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateMachine
# multiplicity = 0..1
# ordering = 

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


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

    if ( defined $val ) { $self->__use('UMMF::UML_1_5::Behavioral_Elements::State_Machines::StateMachine')->__typecheck($val, "UMMF::UML_1_5::Behavioral_Elements::State_Machines::State.stateMachine") }

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

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

    }
		  
  $self;
}


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

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

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

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

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

  
  }

  $self;
}


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

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

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

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

  
  }
}


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

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

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

    }

  $self;
}


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

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

  defined $x ? 1 : 0;
}







# End of Class State


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

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