# -*- perl -*-
# DO NOT EDIT - This file is generated by UML2CODE.
# From template: $Id: PerlTemplate.txt,v 1.12 2003/05/11 06:16:02 stephens Exp $

package UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState;

use 5.6.1;
use strict;
use warnings;

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

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

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



use Carp qw(croak confess);

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

use base qw(
  UML::MetaModel::Behavioral_Elements::State_Machines::SubmachineState


);

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

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





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


=head2 __validate_type

  UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState->__validate_type($value);

Returns true if $value is a valid value of UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState.

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

  no warnings;

  UNIVERSAL::isa($x, 'UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState')  ;
}


=head2 __typecheck

  UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState->__typecheck($value, $msg);

Calls C<confess()> with C<$msg> if C<UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState-E<GT>__validate_type($value)> is false.

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

  confess("typecheck: $msg: type 'UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState': value '$x'")
    unless __validate_type($self, $x);
}


=head2 isaSubactivityState

Returns true if receiver is a C<UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState>.
Other receivers will return false.

=cut
sub isaSubactivityState { 1 }


=head2 isaBehavioral_Elements__Activity_Graphs__SubactivityState

Returns true if receiver is a C<UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState>.
Other receivers will return false.
This is the fully qualified version of the C<isaSubactivityState> method.

=cut
sub isaBehavioral_Elements__Activity_Graphs__SubactivityState { 1 }


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

=head2 __model_name 

  my $name = $obj_or_package->__model_name;

Returns the UML Model name (C<'Behavioral_Elements::Activity_Graphs::SubactivityState'>) for an object or package of
this Classifier.

=cut
sub __model_name { 'Behavioral_Elements::Activity_Graphs::SubactivityState' }




  


  


  




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


          

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

 
=head2 __intialize

Initialize all slots in this Classifier.
Does not initlaize slots in Generalizations.

See also: C<_initialize>.

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

  # Attributes

    # Attribute isDynanmic
  if ( exists $self->{'isDynanmic'} ) {
    my $x = $self->{'isDynanmic'};
    $self->{'isDynanmic'} = undef;
    $self->set_isDynanmic($x);
  } else {
      }
  
    # Attribute dyanmicArguments
  if ( exists $self->{'dyanmicArguments'} ) {
    my $x = $self->{'dyanmicArguments'};
    $self->{'dyanmicArguments'} = undef;
    $self->set_dyanmicArguments($x);
  } else {
      }
  
    # Attribute dynamicMultiplicity
  if ( exists $self->{'dynamicMultiplicity'} ) {
    my $x = $self->{'dynamicMultiplicity'};
    $self->{'dynamicMultiplicity'} = undef;
    $self->set_dynamicMultiplicity($x);
  } else {
      }
  


  # Associations


  $self;
}


my $__initialize_use;

=head2 _intialize

Initialize all slots in this Classifier and all Generalizations.

See also: C<__initialize>.

=cut
sub _initialize
{
  my ($self) = @_;

  # $DB::single = 1;

  unless ( ! $__initialize_use ) {
    $__initialize_use = 1;
    $self->__use('UML::MetaModel::Foundation::Core::Element');
    $self->__use('UML::MetaModel::Foundation::Core::ModelElement');
    $self->__use('UML::MetaModel::Behavioral_Elements::State_Machines::StateVertex');
    $self->__use('UML::MetaModel::Behavioral_Elements::State_Machines::State');
    $self->__use('UML::MetaModel::Behavioral_Elements::State_Machines::CompositeState');
    $self->__use('UML::MetaModel::Behavioral_Elements::State_Machines::SubmachineState');
  }

  $self->UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState::__initialize;
  $self->UML::MetaModel::Foundation::Core::Element::__initialize;
  $self->UML::MetaModel::Foundation::Core::ModelElement::__initialize;
  $self->UML::MetaModel::Behavioral_Elements::State_Machines::StateVertex::__initialize;
  $self->UML::MetaModel::Behavioral_Elements::State_Machines::State::__initialize;
  $self->UML::MetaModel::Behavioral_Elements::State_Machines::CompositeState::__initialize;
  $self->UML::MetaModel::Behavioral_Elements::State_Machines::SubmachineState::__initialize;

  $self;
}
      

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



#################################################################
# Attribute isDynanmic
# type = UML::MetaModel::Foundation::Data_Types::Boolean
# multiplicity = 1

=head2 isDynanmic

  my $val = $obj->isDynanmic;

Returns the value of Attribute isDynanmic.

=cut
sub isDynanmic ($)
{
  my ($self) = @_;

  $self->{'isDynanmic'};
}


=head2 set_isDynanmic

  $obj->set_isDynanmic($val);

Sets the value of Attribute isDynanmic.
C<$val> must be of type C<UML::MetaModel::Foundation::Data_Types::Boolean>.
Returns C<$obj>.

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

  $self->__use('UML::MetaModel::Foundation::Data_Types::Boolean')->__typecheck($val, "UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState.isDynanmic");

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

  $self
}

#################################################################
# Attribute dyanmicArguments
# type = UML::MetaModel::Foundation::Data_Types::ArgListExpression
# multiplicity = 1

=head2 dyanmicArguments

  my $val = $obj->dyanmicArguments;

Returns the value of Attribute dyanmicArguments.

=cut
sub dyanmicArguments ($)
{
  my ($self) = @_;

  $self->{'dyanmicArguments'};
}


=head2 set_dyanmicArguments

  $obj->set_dyanmicArguments($val);

Sets the value of Attribute dyanmicArguments.
C<$val> must be of type C<UML::MetaModel::Foundation::Data_Types::ArgListExpression>.
Returns C<$obj>.

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

  $self->__use('UML::MetaModel::Foundation::Data_Types::ArgListExpression')->__typecheck($val, "UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState.dyanmicArguments");

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

  $self
}

#################################################################
# Attribute dynamicMultiplicity
# type = UML::MetaModel::Foundation::Data_Types::Multiplicity
# multiplicity = 1

=head2 dynamicMultiplicity

  my $val = $obj->dynamicMultiplicity;

Returns the value of Attribute dynamicMultiplicity.

=cut
sub dynamicMultiplicity ($)
{
  my ($self) = @_;

  $self->{'dynamicMultiplicity'};
}


=head2 set_dynamicMultiplicity

  $obj->set_dynamicMultiplicity($val);

Sets the value of Attribute dynamicMultiplicity.
C<$val> must be of type C<UML::MetaModel::Foundation::Data_Types::Multiplicity>.
Returns C<$obj>.

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

  $self->__use('UML::MetaModel::Foundation::Data_Types::Multiplicity')->__typecheck($val, "UML::MetaModel::Behavioral_Elements::Activity_Graphs::SubactivityState.dynamicMultiplicity");

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

  $self
}


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




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

1; # is true!

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

### Keep these comments at end of file: ks.perl@kurtstephens.com 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: ###

