File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Presenting a generic interface to access external system in component diagram

 
vu lee
Ranch Hand
Posts: 195
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a component diagram, how do I provide a generic interface to access services provided by an external system. The external system has its own interface which will be adapted to the generic interface.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vu,


how do I provide a generic interface to access services provided by an external system.


Are you asking how to draw this generic interface?

-- Dan
 
vu lee
Ranch Hand
Posts: 195
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dan,
Yes... normally interface is not a component; therefore, it should not be in the component interface. But I think this generic interface will clarify my design. In a component diagram, a component can be drew with an interface.
Suppose a vendorX component provides VendorX interface. If my application depends on the VendorX interface, any future changes in vendorX interface will affect my application. To avoid this highly couple, I create a generic interface to which the VendorX interface will adapt to. How do I present this interface in the component diagram?
 
Dan Drillich
Ranch Hand
Posts: 1183
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vu,

Cade uses in his component diagrams the round symbol to denote an interface.

An interesting fact about component diagrams is described at: http://www.agilemodeling.com/artifacts/componentDiagram.htm

Components may both provide and require interfaces. An interface is the definition of a collection of one or more methods, and zero or more attributes, ideally one that defines a cohesive set of behaviors. A provided interface is modeled using the lollipop notation and a required interface is modeled using the socket notation. A port is a feature of a classifier that specifies a distinct interaction point between the classifier and its environment. Ports are depicted as small squares on the sides of classifiers.


It means (to me at least ) that the essence of components is about providing and requiring interfaces.

One additional thing to keep in mind about UML diagrams is that they are not rigid; the UML specification doesn't really dictate which graphical symbols can be used in each specific diagram type. It means that we can borrow symbols from other diagram types. For example, in Cade's diagrams he uses the package symbol to describe a subsystem.

-- Dan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic