home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)cadnassocn.tcl 1.7
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)cadnassocn.tcl 1.7 31 Jan 1996 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- # End user added include file section
-
-
- Class CADNAssocNode : {SMNode} {
- constructor
- method destructor
- method load
- method getNameLabel
- method getNameItem
- method getNameWorkItem
- method name
- method addNAssocConn
- method removeNAssocConn
- attribute loaded
- attribute nAssocConnSet
- }
-
- constructor CADNAssocNode {class this inModel} {
- set this [SMNode::constructor $class $this $inModel]
- $this loaded 0
- $this nAssocConnSet [List new]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method CADNAssocNode::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- method CADNAssocNode::load {this} {
- if {[$this loaded] == 1} {
- return
- }
- $this loaded 1
-
- set connectors [$this getConnectors $OMT_CAD_NaryAssocConn \
- $OMT_CAD_CB_Class]
- foreach conn $connectors {
- $this addNAssocConn $conn
- $conn load
- }
- }
-
- method CADNAssocNode::getNameLabel {this} {
- return [$this getLabel]
- }
-
- method CADNAssocNode::getNameItem {this} {
- return [$this getItem]
- }
-
- method CADNAssocNode::getNameWorkItem {this} {
- return [$this getWorkItem]
- }
-
- method CADNAssocNode::name {this} {
- set nameItem [$this getNameItem]
- if {[$nameItem isNil]} {
- return ""
- }
- return [$nameItem name]
- }
-
- # Do not delete this line -- regeneration end marker
-
- method CADNAssocNode::addNAssocConn {this newNAssocConn} {
- [$this nAssocConnSet] append $newNAssocConn
-
- }
-
- method CADNAssocNode::removeNAssocConn {this oldNAssocConn} {
- [$this nAssocConnSet] removeValue $oldNAssocConn
- }
-
-