| UMMF documentation | Contained in the UMMF distribution. |
__validate_type__typecheckisaBehavioralFeatureisaFoundation__Core__BehavioralFeature__model_name __isAbstract__tangram_schema___initialize__initialize__createisQueryset_isQuerycount_isQueryparameterindex_parameterindex_of_parameterset_parameterset_index_parameteradd_parameteradd_index_parameterremove_parameterclear_parametercount_parameterraisedSignalset_raisedSignaladd_raisedSignalremove_raisedSignalclear_raisedSignalcount_raisedSignal
UMMF::UML_1_5::Foundation::Core::BehavioralFeature --
1.5
isQuery : UMMF::UML_1_5::Foundation::Data_Types::Boolean private1changeableinstanceunordered<"false">Set::ObjectbehavioralFeature : THIS 0..1 <---> parameter : UMMF::UML_1_5::Foundation::Core::Parameter 0..*0..*changeableinstanceorderednonepublicARRAYcontext : THIS 0..* <---> raisedSignal : UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal 0..*0..*changeableinstancenonepublicSet::Object__validate_typeUMMF::UML_1_5::Foundation::Core::BehavioralFeature->__validate_type($value);
Returns true if $value is a valid representation of UMMF::UML_1_5::Foundation::Core::BehavioralFeature.
__typecheckUMMF::UML_1_5::Foundation::Core::BehavioralFeature->__typecheck($value, $msg);
Calls confess() with $msg if <UMMF::UML_1_5::Foundation::Core::BehavioralFeature-__validate_type($value)>> is false.
isaBehavioralFeatureReturns true if receiver is a UMMF::UML_1_5::Foundation::Core::BehavioralFeature. Other receivers will return false.
isaFoundation__Core__BehavioralFeatureReturns true if receiver is a UMMF::UML_1_5::Foundation::Core::BehavioralFeature.
Other receivers will return false.
This is the fully qualified version of the isaBehavioralFeature method.
__model_name my $name = $obj_or_package->__model_name;
Returns the UML Model name ('Foundation::Core::BehavioralFeature') for an object or package of
this Classifier.
__isAbstract$package->__isAbstract;
Returns 1.
__tangram_schemamy $tangram_schema $obj_or_package->__tangram_schema
Returns a HASH ref that describes this Classifier for Tangram.
___initializeInitialize all Attributes and AssociationEnds in a instance of this Classifier. Does not initalize slots in its Generalizations.
See also: __initialize.
__initializeInitialize all slots in this Classifier and all its Generalizations.
See also: ___initialize.
__createCalls all <<create>> Methods for this Classifier and all Generalizations.
See also: ___create.
isQuerymy $val = $obj->isQuery;
Returns the UMMF::UML_1_5::Foundation::Data_Types::Boolean value of Attribute isQuery.
set_isQuery$obj->set_isQuery($val);
Sets the value of Attribute isQuery.
$val must be of type UMMF::UML_1_5::Foundation::Data_Types::Boolean or undef.
Returns $obj.
count_isQuery$obj->count_isQuery;
Returns the number of elements (0 or 1) in isQuery.
parametermy @val = $obj->parameter; my $ary_val = $obj->parameter;
Returns the AssociationEnd parameter values of type UMMF::UML_1_5::Foundation::Core::Parameter.
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_parametermy $x = $obj->index_parameter($i); my @x = $obj->index_parameter($i, $count);
In scalar context, returns the value of AssociationEnd parameter at index $i.
In array context, returns the values between index $i and $i + $count - 1, inclusive.
index_of_parametermy $index = $obj->index_of_parameter($val);
Returns the index of $val in AssociationEnd parameter.
Return undef if $val is not in parameter.
set_parameter$obj->set_parameter(@val);
Sets the AssociationEnd parameter value.
Elements of @val must of type UMMF::UML_1_5::Foundation::Core::Parameter.
Returns $obj.
set_index_parameter$obj->set_index_parameter($i, $val);
Sets the value of AssociationEnd parameter at index $i.
Returns self.
add_parameter$obj->add_parameter(@val);
Adds AssociationEnd parameter values.
Elements of @val must of type UMMF::UML_1_5::Foundation::Core::Parameter.
Returns $obj.
add_index_parameter$obj->add_index_parameter($i, @val);
Adds AssociationEnd parameter values at index $i.
Elements of @val must of type UMMF::UML_1_5::Foundation::Core::Parameter.
Returns $obj.
remove_parameter$obj->remove_parameter(@val);
Removes the AssociationEnd parameter values @val.
Elements of @val must of type UMMF::UML_1_5::Foundation::Core::Parameter.
Returns $obj.
clear_parameter$obj->clear_parameter;
Clears the AssociationEnd parameter links to UMMF::UML_1_5::Foundation::Core::Parameter.
Returns $obj.
count_parameter$obj->count_parameter;
Returns the number of elements associated with parameter.
raisedSignalmy @val = $obj->raisedSignal; my $ary_val = $obj->raisedSignal;
Returns the AssociationEnd raisedSignal values of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal.
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_raisedSignal$obj->set_raisedSignal(@val);
Sets the AssociationEnd raisedSignal value.
Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal.
Returns $obj.
add_raisedSignal$obj->add_raisedSignal(@val);
Adds AssociationEnd raisedSignal values.
Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal.
Returns $obj.
remove_raisedSignal$obj->remove_raisedSignal(@val);
Removes the AssociationEnd raisedSignal values @val.
Elements of @val must of type UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal.
Returns $obj.
clear_raisedSignal$obj->clear_raisedSignal;
Clears the AssociationEnd raisedSignal links to UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal.
Returns $obj.
count_raisedSignal$obj->count_raisedSignal;
Returns the number of elements associated with raisedSignal.
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::Foundation::Core::BehavioralFeature; #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::Feature ); ################################################################# # 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::Foundation::Core::BehavioralFeature') ; }
sub __typecheck { my ($self, $x, $msg) = @_; confess("typecheck: $msg: type '" . 'UMMF::UML_1_5::Foundation::Core::BehavioralFeature' . ": value '$x'") unless __validate_type($self, $x); }
sub isaBehavioralFeature { 1 }
sub isaFoundation__Core__BehavioralFeature { 1 } ################################################################# # Introspection #
sub __model_name { 'Foundation::Core::BehavioralFeature' }
sub __isAbstract { 1; } my $__tangram_schema;
sub __tangram_schema { my ($self) = @_; $__tangram_schema ||= { 'classes' => [ 'UMMF::UML_1_5::Foundation::Core::BehavioralFeature' => { 'table' => 'Foundation__Core__BehavioralFeature', 'abstract' => 1, 'slots' => { # Attributes 'isQuery' => { 'type_impl' => 'string', 'col' => 'isQuery', } , # Associations 'parameter' => { 'type_impl' => 'iarray', 'class' => 'UMMF::UML_1_5::Foundation::Core::Parameter', 'table' => 'Foundation__Core__BehavioralFeature__parameter', 'coll' => 'behavioralFeature', 'slot' => 'behavioralFeature_i', } , 'raisedSignal' => { 'type_impl' => 'set', 'class' => 'UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal', 'table' => 'RaisedSignal_Context', 'item' => 'raisedSignal', 'coll' => 'context', } , }, 'bases' => [ 'UMMF::UML_1_5::Foundation::Core::Feature', ], 'sql' => { }, }, ], 'sql' => { # Note Tangram::Ref::get_exporter() has # "UPDATE $table SET $self->{col} = $refid WHERE id = $id", # The id_col is hard-coded, # Thus id_col will not work. #'id_col' => '__sid', #'class_col' => '__stype', }, # 'set_id' => sub { } # 'get_id' => sub { } }; } ################################################################# # Class Attributes # ################################################################# # Class Associations # ################################################################# # Initialization #
sub ___initialize { my ($self) = @_; # Attributes # Attribute isQuery if ( exists $self->{'isQuery'} ) { my $x = $self->{'isQuery'}; $self->{'isQuery'} = undef; $self->set_isQuery($x); } else { $self->{'isQuery'} = "false"; } # Associations # AssociationEnd # behavioralFeature 0..1 # <--> # parameter 0..* UMMF::UML_1_5::Foundation::Core::Parameter. if ( defined $self->{'parameter'} ) { my $x = $self->{'parameter'}; $self->{'parameter'} = [ ]; $self->set_parameter(@$x); } # AssociationEnd # context 0..* # <--> # raisedSignal 0..* UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal. if ( defined $self->{'raisedSignal'} ) { my $x = $self->{'raisedSignal'}; $self->{'raisedSignal'} = Set::Object->new(); $self->set_raisedSignal(@$x); } $self; } my $__initialize_use;
sub __initialize { my ($self) = @_; # $DB::single = 1; unless ( ! $__initialize_use ) { $__initialize_use = 1; $self->__use('UMMF::UML_1_5::Foundation::Core::Element'); $self->__use('UMMF::UML_1_5::Foundation::Core::ModelElement'); $self->__use('UMMF::UML_1_5::Foundation::Core::Feature'); } $self->UMMF::UML_1_5::Foundation::Core::BehavioralFeature::___initialize; $self->UMMF::UML_1_5::Foundation::Core::Element::___initialize; $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___initialize; $self->UMMF::UML_1_5::Foundation::Core::Feature::___initialize; $self; }
sub __create { my ($self, @args) = @_; # $DB::single = 1; $self->UMMF::UML_1_5::Foundation::Core::BehavioralFeature::___create(@args); $self->UMMF::UML_1_5::Foundation::Core::Element::___create(); $self->UMMF::UML_1_5::Foundation::Core::ModelElement::___create(); $self->UMMF::UML_1_5::Foundation::Core::Feature::___create(); $self; } ################################################################# # Attributes #
################################################################# # Attribute isQuery # type = UMMF::UML_1_5::Foundation::Data_Types::Boolean # multiplicity = 1 # ordering = unordered # ownerScope = instance # initialValue = "false"
sub isQuery ($) { my ($self) = @_; ; my $val = $self->{'isQuery'}; ; $val; }
sub set_isQuery ($$) { my ($self, $val) = @_; ; if ( defined $val ) { ; } $self->{'isQuery'} = $val ; ; $self; }
sub count_isQuery ($) { my ($self) = @_; ; my $val = $self->{'isQuery'}; ; defined $val ? 1 : 0; } ################################################################# # Association #
################################################################# # AssociationEnd behavioralFeature <---> parameter # type = UMMF::UML_1_5::Foundation::Core::Parameter # multiplicity = 0..* # ordering = ordered
sub parameter ($) { my ($self) = @_; my $x = $self->{'parameter'} ||= [ ]; wantarray ? @{$x} : $x; }
sub index_parameter ($$@) { my ($self, $i, $count) = @_; ; my $val = $self->{'parameter'} ||= [ ]; ; wantarray ? $val->[$i .. (defined $count ? $i + $count - 1 : $i)] : $val->[$i]; }
sub index_of_parameter ($$) { my ($self, $x) = @_; ; my $val = $self->{'parameter'} ||= [ ]; ; __ummf_array_index($val, $x); }
sub set_parameter ($@) { my ($self, @val) = @_; $self->clear_parameter; $self->add_parameter(@val); }
sub set_index_parameter ($$$) { my ($self, $i, $val) = @_; ; my $x = $self->{'parameter'} ||= [ ]; no warnings; my $old; if ( ($old = $x->[$i]) ne $val) { # Recursion lock $x->[$i] = $val ; # Remove and add associations with other ends. $old->remove_behavioralFeature($self) if $old; $val->add_behavioralFeature($self) if $val; ; } $self; }
sub add_parameter ($@) { my ($self, @val) = @_; my $x = $self->{'parameter'} ||= [ ]; 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::Foundation::Core::Parameter')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::BehavioralFeature.parameter"); # Recursion lock push(@{$x}, $val); # Remove and add associations with other ends. $old->remove_behavioralFeature($self) if $old; $val->add_behavioralFeature($self) if $val; } $self; }
sub add_index_parameter ($$@) { my ($self, $i, @val) = @_; my $x = $self->{'parameter'} ||= [ ]; 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::Foundation::Core::Parameter')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::BehavioralFeature.parameter"); # Recursion lock splice(@{$x}, $i, 0, $val); # Recursion lock ++ $i; # Remove and add associations with other ends. $old->remove_behavioralFeature($self) if $old; $val->add_behavioralFeature($self) if $val; } $self; }
sub remove_parameter ($@) { my ($self, @val) = @_; my $x = $self->{'parameter'} ||= [ ]; 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::Foundation::Core::Parameter')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::BehavioralFeature.parameter"); # Recursion lock splice(@$x, $i, 1); $val = undef; # Remove associations with other ends. $old->remove_behavioralFeature($self) if $old; $val->add_behavioralFeature($self) if $val; ; } $self; }
sub clear_parameter ($) { my ($self) = @_; my $x = $self->{'parameter'} ||= [ ]; my $val; # Place holder for other MACRO. $self->{'parameter'} = [ ]; # Recursion lock for my $old ( @$x ) { # Recursion lock # Remove associations with other ends. $old->remove_behavioralFeature($self) if $old; $val->add_behavioralFeature($self) if $val; ; } $self; }
sub count_parameter ($) { my ($self) = @_; my $x = $self->{'parameter'}; defined $x ? scalar @$x : 0; }
################################################################# # AssociationEnd context <---> raisedSignal # type = UMMF::UML_1_5::Behavioral_Elements::Common_Behavior::Signal # multiplicity = 0..* # ordering =
sub raisedSignal ($) { my ($self) = @_; my $x = $self->{'raisedSignal'}; # confess("Container for raisedSignal $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_raisedSignal ($@) { my ($self, @val) = @_; $self->clear_raisedSignal; $self->add_raisedSignal(@val); }
sub add_raisedSignal ($@) { my ($self, @val) = @_; my $x = $self->{'raisedSignal'} ||= 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::Common_Behavior::Signal')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::BehavioralFeature.raisedSignal"); # Recursion lock $x->insert($val); # weaken? # Remove and add associations with other ends. $old->remove_context($self) if $old; $val->add_context($self) if $val; } $self; }
sub remove_raisedSignal ($@) { my ($self, @val) = @_; my $x = $self->{'raisedSignal'} ||= 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::Common_Behavior::Signal')->__typecheck($val, "UMMF::UML_1_5::Foundation::Core::BehavioralFeature.raisedSignal"); # Recursion lock $x->remove($old); $val = undef; # Remove associations with other ends. $old->remove_context($self) if $old; $val->add_context($self) if $val; ; } $self; }
sub clear_raisedSignal ($) { my ($self) = @_; my $x = $self->{'raisedSignal'} ||= Set::Object->new(); my $val; # Place holder for other MACRO. $self->{'raisedSignal'} = Set::Object->new(); # Recursion lock for my $old ( $x->members() ) { # Recursion lock # Remove associations with other ends. $old->remove_context($self) if $old; $val->add_context($self) if $val; ; } $self; }
sub count_raisedSignal ($) { my ($self) = @_; my $x = $self->{'raisedSignal'}; defined $x ? $x->size : 0; } # End of Class BehavioralFeature
############################################################################ 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: ###