home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)msumlgenel.tcl /main/hindenburg/7
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)msumlgenel.tcl /main/hindenburg/7 15 May 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- #require "msumleleme.tcl"
-
- Class MSUMLGenElement : {MSUMLElement} {
- constructor
- method destructor
- method ms2ot
- method promoter
- method generalizationSet
- method addGeneralization
- method removeGeneralization
- method specializationSet
- method addSpecialization
- method removeSpecialization
- attribute _generalizationSet
- attribute _specializationSet
- }
-
- constructor MSUMLGenElement {class this typeName} {
- set this [MSUMLElement::constructor $class $this $typeName]
- $this _generalizationSet [List new]
- $this _specializationSet [List new]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method MSUMLGenElement::destructor {this} {
- foreach ref [[$this _generalizationSet] contents] {
- $ref _subType ""
- }
- foreach ref [[$this _specializationSet] contents] {
- $ref _superType ""
- }
- # Start destructor user section
- # End destructor user section
- $this MSUMLElement::destructor
- }
-
- method MSUMLGenElement::ms2ot {this diag} {
- # !! Implement this function !!
- }
-
- method MSUMLGenElement::promoter {this} {
- $this MSUMLElement::promoter
- $this _generalizationSet [List new]
- $this _specializationSet [List new]
- }
-
- # Do not delete this line -- regeneration end marker
-
- method MSUMLGenElement::generalizationSet {this} {
- return [$this _generalizationSet]
- }
-
- method MSUMLGenElement::addGeneralization {this newGeneralization} {
- [$this _generalizationSet] append $newGeneralization
- $newGeneralization _subType $this
- }
-
- method MSUMLGenElement::removeGeneralization {this oldGeneralization} {
- $oldGeneralization _subType ""
- [$this _generalizationSet] removeValue $oldGeneralization
- }
-
- method MSUMLGenElement::specializationSet {this} {
- return [$this _specializationSet]
- }
-
- method MSUMLGenElement::addSpecialization {this newSpecialization} {
- [$this _specializationSet] append $newSpecialization
- $newSpecialization _superType $this
- }
-
- method MSUMLGenElement::removeSpecialization {this oldSpecialization} {
- $oldSpecialization _superType ""
- [$this _specializationSet] removeValue $oldSpecialization
- }
-
-