home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)cadmethod.tcl 1.6
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)cadmethod.tcl 1.6 20 Mar 1996 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- require "cadparamet.tcl"
- # End user added include file section
-
- require "cadfeature.tcl"
-
- Class CADMethod : {CADFeature} {
- constructor
- method destructor
- method createParameters
- method createParameter
- method getNameItemType
- method parameterSet
- method addParameter
- method removeParameter
- attribute _parameterSet
- }
-
- constructor CADMethod {class this theClass row} {
- set this [CADFeature::constructor $class $this $theClass $row]
- $this _parameterSet [List new]
- # Start constructor user section
- $this createParameters
- # End constructor user section
- return $this
- }
-
- method CADMethod::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this CADFeature::destructor
- }
-
- method CADMethod::createParameters {this} {
- [[$this row] cachedCellSet] foreach cell {
- $this createParameter $cell
- }
- }
-
- method CADMethod::createParameter {this cell} {
- return [CADParameter new $cell $this]
- }
-
- method CADMethod::getNameItemType {this} {
- return $IT_PROCESS
- }
-
- # Do not delete this line -- regeneration end marker
-
- method CADMethod::parameterSet {this} {
- return [$this _parameterSet]
- }
-
- method CADMethod::addParameter {this newParameter} {
- [$this _parameterSet] append $newParameter
- $newParameter _method $this
- }
-
- method CADMethod::removeParameter {this oldParameter} {
- $oldParameter _method ""
- [$this _parameterSet] removeValue $oldParameter
- }
-
-