Suppose I have an operation that receives a parameter java Set and returns Set. How can I model that in ArgoUML? It seems I have to create a class “Set” with a Template Parameter, but I’m unable to find out how it works.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A good way of seeing what capabilities are supported in ArgoUML and how they map to the UI is to reverse engineer a simple example that does what you want. Templated classes (TemplateParameters, Bindings, etc) are incompletely implemented in ArgoUML 0.34 (the current release). If you reverse engineer a class using the generic placeholder
E, you’ll end up with not only a Template Parameter namedE, but another class namedEas well, so it’s getting a little confused.Unfortunately, I don’t think the suggestion to use multiplicity (how you say things are multi-valued in UML) will work in this case because a) a
Sethas additional semantics regarding uniqueness, etc and b) you presumably want to show the generalization tojava.util.Set, not just any old random set implementation.You can see the placeholder for this in UI in the Template Parameters field at the bottom of the property panel for a Class. It will allow you to create a Template Parameter, but not do much else with it.
Probably the best you can do for right now is to just type your input and return parameters as plain old
Setand forego the specificity of a strongly typedSet.