home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
drsitemobj.tcl
< prev
next >
Wrap
Text File
|
1997-08-29
|
2KB
|
81 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)drsitemobj.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)drsitemobj.tcl /main/titanic/4 29 Aug 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 ${DrsDriver::FORMALMODULE}_Phase]
set phase [$this getPhase]
set currPhaseName [[$this getPhase] name]
if {$currPhaseName == $linkedInPhase} {
set linkedInProject [$levelV getPropertyValue ${DrsDriver::FORMALMODULE}_Project]
set currProjectName [[$phase project] name]
if {$currProjectName == $linkedInProject} {
return 1
}
}
return 0
}
# Do not delete this line -- regeneration end marker