home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: %W 6 Feb 1997
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)drsitemobj.tcl /main/hindenburg/7 3 Mar 1997 29 Jan 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "drsgrouped.tcl"
-
- #Class DrsItemObject : {DrsGroupedObject} {
- # method destructor
- # constructor
- # method getLevelV
- # method getPhase
- # method getPropertyObject
- # method getTimeStampObject
- # method isAvailable
- # attribute item
- #}
-
- method DrsItemObject::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this DrsGroupedObject::destructor
- }
-
- constructor DrsItemObject {class this workItem system systemV} {
- set this [DrsGroupedObject::constructor $class $this $workItem "" $system $systemV]
- $this levelVersions $workItem
- $this item [$workItem item]
- return $this
-
- }
-
- method DrsItemObject::getLevelV {this} {
- return [$this getPropertyObject]
- }
-
- method DrsItemObject::getPhase {this} {
- set workItem [$this level]
- set systemV [$workItem owner]
- set system [$systemV system]
- return [$system phase]
-
- }
-
- method DrsItemObject::getPropertyObject {this} {
- return [[$this level] properties]
- }
-
- method DrsItemObject::getTimeStampObject {this} {
- return [$this level]
- }
-
- method DrsItemObject::isAvailable {this parentList} {
- if {[lsearch $parentList [$this parentLevelId]] == -1} {
- return 0
- }
- set levelV [$this getLevelV]
- set linkedInPhase [$levelV getPropertyValue ${FORMALMODULE}_Phase]
- set phase [$this getPhase]
- set currPhaseName [[$this getPhase] name]
- if {$currPhaseName == $linkedInPhase} {
- set linkedInProject [$levelV getPropertyValue ${FORMALMODULE}_Project]
- set currProjectName [[$phase project] name]
- if {$currProjectName == $linkedInProject} {
- return 1
- }
- }
- return 0
- }
-
- # Do not delete this line -- regeneration end marker
-
-