Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Deployment Diagram
Deployment Diagram [message #628034] Sun, 08 November 2009 22:47 Go to next message
Paul Murray is currently offline Paul Murray
Messages: 2
Registered: November 2009
Junior Member
Ok. I am at ANBG and there's servers all over the place. There's IP adresses, there are firewalls, we have environments, a couple of different boxes, some different versions of java, a couple of source code repositories ... etc.

So. It seems that a deployment diagram is the way to go. And eclipse has some free tools for drawing diagrams. No worries.

And I can't get past step 2. (step 1 is downloding the EMF/UML tools and creating a project).

The first thing I need to draw is that we have some ip adresses and some host names. So I created a package named "types", and three types "addr", "hostname" and "ipaddr". Now - these were created as primitive types. Is that right or wrong? I couldn't see any way to explain that these were strings with a particular format, although I did manage to explain that "hostname" and "ipaddr" were subclasess of "addr".

Anyway. I then attempted to make a type "url", with properties addr, port, path, name, querystring and fragment. Then I tried to explain that "host" should be of type "addr". Got nowhere - no combination of clickang and dragging seemed to do the job.

So I backtracked, and triued somethingf else. A "URI" has a "protocol" and a obaque bit. The protocol is an enumeration (http, https, ftp, urn). A "httpaddr" is a uri where the protocol is set to the contant "http" and the "opaquebit" is reimplemented as a host, port, path, etc.

Got nowhere with that.

Then I had a closer look at the "make a package" thing - a package can be a profile, a model, or a package. Maybe I should use the "profile" package to define types that are going to be used in the rest of my model? So in the profile package I define that a "hostname" may be assigned an "ip", and in a regular package I define our "nightjar" constant and "155.187.10.18" constant, and add the "ismappedto" association.

I mean, I'd like to be able to say that Oracle 10.3 is an subtype of Oracle is an subtype of SqlDatabase, that we have a version of it running on 10.4 (aka Accipiter), that the AFD dev table set is deployed to schema "AFD_TABLES" there, and that that we have Tomcat running on 155.187.10.18, that it defines a JINDI name "devdb" that points to that instance of Oracle, and that the dev version of AFD (which is on SVN at "turtle" /afd/branches/newdev, SVN version 4321) is deployed on that appserver and uses that JINDI name.

UML will do all this, but damned if I can work out how to explain that to eclipse. I don't need code generated, I just want to draw pictures of the environment here.
Re: Deployment Diagram [message #628037 is a reply to message #628034] Mon, 09 November 2009 14:39 Go to previous message
james bruck is currently offline james bruck
Messages: 1724
Registered: July 2009
Senior Member
Hi Paul,

If you are trying to simply draw pictures you will need to install
UML2Tools. The UML2 project only deals with the semantic "back-end", not
the diagramming aspects.
I've forwarded your comments along to UML2Tools newsgroup but you can also
search their Wiki for instructions on how to get started.
(for future reference, the UML2 wiki can be found here:
http://wiki.eclipse.org/MDT-UML2 , and for UML2Tools:
http://wiki.eclipse.org/MDT-UML2Tools).

Cheers,
- James.

"Paul Murray" <pmurray@anbg.gov.au> wrote in message
news:hd83ct$rfe$1@build.eclipse.org...
> Ok. I am at ANBG and there's servers all over the place. There's IP
> adresses, there are firewalls, we have environments, a couple of different
> boxes, some different versions of java, a couple of source code
> repositories ... etc.
>
> So. It seems that a deployment diagram is the way to go. And eclipse has
> some free tools for drawing diagrams. No worries.
>
> And I can't get past step 2. (step 1 is downloding the EMF/UML tools and
> creating a project).
>
> The first thing I need to draw is that we have some ip adresses and some
> host names. So I created a package named "types", and three types "addr",
> "hostname" and "ipaddr". Now - these were created as primitive types. Is
> that right or wrong? I couldn't see any way to explain that these were
> strings with a particular format, although I did manage to explain that
> "hostname" and "ipaddr" were subclasess of "addr".
>
> Anyway. I then attempted to make a type "url", with properties addr, port,
> path, name, querystring and fragment. Then I tried to explain that "host"
> should be of type "addr". Got nowhere - no combination of clickang and
> dragging seemed to do the job.
>
> So I backtracked, and triued somethingf else. A "URI" has a "protocol" and
> a obaque bit. The protocol is an enumeration (http, https, ftp, urn). A
> "httpaddr" is a uri where the protocol is set to the contant "http" and
> the "opaquebit" is reimplemented as a host, port, path, etc.
>
> Got nowhere with that.
>
> Then I had a closer look at the "make a package" thing - a package can be
> a profile, a model, or a package. Maybe I should use the "profile" package
> to define types that are going to be used in the rest of my model? So in
> the profile package I define that a "hostname" may be assigned an "ip",
> and in a regular package I define our "nightjar" constant and
> "155.187.10.18" constant, and add the "ismappedto" association.
>
> I mean, I'd like to be able to say that Oracle 10.3 is an subtype of
> Oracle is an subtype of SqlDatabase, that we have a version of it running
> on 10.4 (aka Accipiter), that the AFD dev table set is deployed to schema
> "AFD_TABLES" there, and that that we have Tomcat running on 155.187.10.18,
> that it defines a JINDI name "devdb" that points to that instance of
> Oracle, and that the dev version of AFD (which is on SVN at "turtle"
> /afd/branches/newdev, SVN version 4321) is deployed on that appserver and
> uses that JINDI name.
>
> UML will do all this, but damned if I can work out how to explain that to
> eclipse. I don't need code generated, I just want to draw pictures of the
> environment here.
>
Previous Topic:Deployment Diagram
Next Topic:Searching UML2 Plug-In to extend
Goto Forum:
  


Current Time: Wed Jul 30 03:17:52 EDT 2014

Powered by FUDForum. Page generated in 0.01668 seconds