home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 October / PCWorld_1998-10_cd.bin / software / prehled / komix / DATA.Z / drsphaseob.tcl < prev    next >
Text File  |  1997-08-29  |  2KB  |  52 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1997
  4. #
  5. #      File:           @(#)drsphaseob.tcl    /main/titanic/4
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)drsphaseob.tcl    /main/titanic/4   29 Aug 1997 Copyright 1997 Cayenne Software Inc.
  10.  
  11. # Start user added include file section
  12. require reqdriver.tcl
  13. # End user added include file section
  14.  
  15. require "drslevelob.tcl"
  16. require "drssmmodel.tcl"
  17.  
  18. Class DrsPhaseObject : {DrsSMModelObject DrsLevelObject} {
  19.     method destructor
  20.     constructor
  21.     method childLevelVersions
  22.     method getPhase
  23. }
  24.  
  25. method DrsPhaseObject::destructor {this} {
  26.     # Start destructor user section
  27.     # End destructor user section
  28.     $this DrsSMModelObject::destructor
  29.     $this DrsLevelObject::destructor
  30. }
  31.  
  32. constructor DrsPhaseObject {class this phase levelV pLevel pLevelV} {
  33.     set this [DrsSMModelObject::constructor $class $this [$phase phaseVersions]]
  34.     set this [DrsLevelObject::constructor $class $this $phase $levelV $pLevel $pLevelV]
  35.     $this childLevels [$phase systems]
  36.         $this levelVersions [$phase phaseVersions]
  37.     return $this
  38. }
  39.  
  40. method DrsPhaseObject::childLevelVersions {this} {
  41.     set versOfCurrLevel [[$this level] phaseVersions]
  42.     set thisPhaseVers [ReqDriver::searchOnVersion $versOfCurrLevel [$this versionId]]
  43.     return [$thisPhaseVers systemVersions]
  44. }
  45.  
  46. method DrsPhaseObject::getPhase {this} {
  47.     return [$this level]
  48. }
  49.  
  50. # Do not delete this line -- regeneration end marker
  51.  
  52.