This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Constraints Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Constraints" Watch "Constraints" New topic
Author

Constraints

Genefer Bruns
Greenhorn

Joined: Oct 17, 2006
Posts: 25
Hello to all,

I have a problem with UML component:
I need to define two types of inheritance for UML component as following:
Let two composites component (component with sub components): A and B
The first problem: component B inherited from component A if B has au minimum the same structure (same sub components) as A and we can add some sub components to B if we need.
The second problem: Component B inherited from A if B has the same required and provided interfaces of A.
So, for do that I need to define tow stereotypes in UML S1 and S2 for each case but my problem is how can I define OCL constraints to do that?
Thanks for all.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Constraints
 
Similar Threads
Passed part II + III with 98%
UML 2.0 component question
UML tool
UML 2.0 component diagram
Changing contents of GridBagLayout at runtime