You could still assign stereotype to packages.  The only exception is that there is no user interface provided to modify the properties of a dependency relationship (DR) between packages since such relationship does not affect how the code is generated.
 
However, you could change the stereotype using a script.  For example, create a model with few packages directly under the Logical View and add some dependency relationships among those packages.  Then run the following script to see that you can indeed assign a stereotype to DRs.
 
'--- SCRIPT START
Sub Main
 Dim theCats As CategoryCollection
 
 Set theCats = RoseApp.CurrentModel.RootCategory.Categories
 
 Dim theDR As CategoryDependency
 Dim theDRs As CategoryDependencyCollection
 
 For i = 1 To theCats.Count
  Set theDRs = theCats.GetAt(i).GetCategoryDependencies()
  For j = 1 To theDRs.Count
   theStereotype$ = "STEREOTYPE-" & i & "-" & j
   theDRs.GetAt(j).Stereotype = theStereotype$
  Next j
 Next i
  
End Sub
'--- SCRIPT END
 
Note that, the way these DRs stored in the model are different, i.e. the DR between packages is a different element than the DR between classes.  For more information, please see the online help.  Specifically, the DR between packages is called CategoryDependency and the DR between classes is called ClassDependency.
-----Original Message-----
From: Anurag Shah-Edventure Systems [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 7:21 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) Dependency

Hi All
 
I do remember reading abt this same topic a few days back but I couldn't find it. Sorry for repeating it.
My question is why can we not change the stereotype on dependency relation when it is used between packages but we do the same if it is between classes
 
thanks
Anurag Shah.
EdVenture Systems.
Converging Education & Information.
Tel: +91-22-6187024.
Cell: 9820315041.
Email: [EMAIL PROTECTED]
http://www.edventuresystems.com
Do you have the EdVantage??

Reply via email to