|
Hi Obaid,
Please check the UML standard document (1.4.2),
chapter UML Semantics, Collaborations, Figure 18 - Collaborations -
Roles.
It shows that a ClassifierRole is a specialiation
of a Classifier, and has 1 or more "base" Classifiers.
Generating code would involve getting the "base"
class from the ClassifierRole, because that is the one that contains the static
structure. Hence you would need to use the Model.getFacade().getBase()
function.
Regards,
Michiel
----- Original Message -----
Sent: Tuesday, October 03, 2006 11:00
AM
Subject: [argouml-dev] Sequence Code
Generation
Hellow to all,
I am basically trying to generate code for Sequence Diagram. Problem is
that the Classifier Roles(classes in sequence diagram) are not recognized as a
class in ArgoUML. In a class diagram, if there are two classes :Course and
Student, then Both of them are treated as classes. in Code generation, in
GenerateJava class in Language package, the method
"Model.getFacade()".isAClass(obj)" returns true in the case of Course
Class defined in Class Diagram, but returns false when Course Classifier Role
is from Sequence Diagram. and so is the case with all the Facade
functions. they treat Course Classifier Role of Class Diagram as a Class , but
does not consider the Course ClassifierRole of the Sequence Diagram as a
Class. so as a result, i am not able to generate the Sequence
Classes/Classifier Roles.
I have two options,
1. Change the implementation of the Facade Functions, so that they
recognize Classifier Roles Of Sequence Diagram as a class OR 2. Write
Seperate Functions in Facade Classes
Thank You ALL
Obaid Salikeen
Pakistan
No virus found in this incoming message. Checked by AVG Free
Edition. Version: 7.1.407 / Virus Database: 268.12.11/460 - Release Date:
1/10/2006
|
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 2/10/2006
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]