UML code synchronization unwanted
I have an existing application that I would like to reverse engineer into a UML (or Java) diagram. I want to then "disconnect" the model from the source code, so that I can try different designs in the model. Is there a way to turn off the code synchronization?
I've tried copying the files to a new workspace but that has technical and procedural problems (in my workplace).
Thanks
If you drag your source code onto a Java diagram and then select all your diagram elements and then choose from the main menu 'Model | Transform | New Diagram' and then select 'Java to UML' in the Transformation dialog. Your java classes will be converted to UML classes. You can then use the UML Classes to try the different designs without affecting your Java Classes.
Thanks,
Lisa
Similar Messages
-
Hi,
I'm developing an application of ~50+ classes in UML on JSE8 and use java code generation.
The question is about aggregations.
Navigable aggregations translate in java code to a class attribute, and to the corresponding getter/setters-methods.
A non-navigable aggregation is not translated to java code at all.
( I would expect it should translate to an attribute, but without getter/setters.
My understanding is, "navigable" means "navigable from outside the class". Correct?)
So how can I model an aggregation, which translates to an attribute in java, without generating the getters/setters?
And where can I find a comprehensive list of how elements in class diagrams are translated to java code?
Where is the JSE8-UML-manual, which includes all these details about UML code generation?
Thanks a lot for any useful hint!Hi,
actually, the code generator is correct.
A non-navigable association should not generate an attribute.
Consider the example:
class Order -> class Date
You have navigation from class order to class date, but not otherwise.
This means that, given a Order object, you can find it's associated Date.
However, the inverse is not true: given a Date object you have no means of "navigating" or finding out which Order objects would have that date. This is what navigation means.
This should be translated into something like this
class Order{
Date theDate;
class Date{
int day, whatever;
//no ref to order-non navigable
If navigation from both classes were possible, a much more complicated code would be needed. It would be something along these lines, considering a 1-1 association (a *-1 association would require multiple order references to be stored at Date, with yet more complications):
class Order{
Date theDate;
void setDate(Date d)
theDate=d;
d.setOrder(this);
class Date{
int day,whatever;
Order theOrder; //navigation to order
void setOrder(Order o)
theOrder=o;
Care should be taken to ensure proper consistency between references (ie: the order in date should never be changed without making a corresponding change to the new order object).
All this serves to show, you should use navigation sparringly (as needed) , otherwise you're just complicating your code more than you should.
Greets
Jorge -
I have a problem with the UML support that I need help with. I have an existing Netbeans project and created a UML project reversed from existing Java sources (or something like that).
I have a source tree like this:
com.test.packagea
ObjectA.java
com.test.packageb
ObjectB.java
ObjectC.javaObjectB is dependent on ObjectC through a method call.
The UML model shows this structure and life is good. I update my source tree from version control (Star Team) and another developer has moved ObjectC into packagea. My tree now has two ObjectC items, one in each package like this:
com.test.packagea
ObjectA.java
ObjectC.java
com.test.packageb
ObjectB.java
ObjectC.javaWhat I really would like is a way to reconcile this situation. Maybe a notification that source code for ObjectC in packagebis no longer available and then scan any newly created models (ObjectC in packagea) to see if that is the correct model. There may be a way to do this, but I have not found it.
Thank you,
DavidI have reset the project to look like this:
com.test.packagea
ObjectA.java
com.test.packageb
ObjectB.java
ObjectC.javaI now move ObjectC.java to packagea. The java project updates properly with no problem. I then right click on the com package and choose Tools-->Synchronize model from source and end up with the following project:
com.test.packagea
ObjectA.java
ObjectC.java
com.test.packageb
ObjectB.java
ObjectB.java
ObjectC.java
ObjectC.java (This looks to be an instance element?)I would report this but there isn't a bug/rfe report option on the Early Access home page.
Thank you,
David -
UML & Code Generation (RAD)
Hey everyone,
I'm evaluating Java IDE's right now and I'm working with a group that uses a tool called Popkin to do their design in UML. I'm trying to find a Java IDE that can import (via XMI) those diagrams to do the code generation.
Rational and TogetherSoft have integrated environments that couple the code and design (As you code, the UML is updated and as you create UML, the code is updated, etc.)
I'm wondering though, if you use something like JBuilder, how can you import the UML from another tool? Has anyone messed with Popkin before or tried to integrate something like this?
Thanks,
Willbump
i don't care about this topic any longer, but need to give out a duke dollar, first one to respond wins! -
Hi I am trying to generate code from some UML diagrams in Netbeans 6. I selected the objects I want to generate code from, then right-clicked on the objects selected, from the menu I need to choose generate code option. But there is no generate code option available.
Can anyone help me with this.
thanks.
Richard.Please post NetBeans questions and requests at the NetBeans website mailing list.
These forums support the Java language, not NetBeans and other IDEs. -
can you develop forms from uml tools like rational for example? -- and can that code be managed ?
am attending this online seminar
http://ad.doubleclick.net/clk;5756991;8195099;i?http://www.rational.com/events/forms/webinar-reg.jsp?EVENTID=2774
but not sure if they cover oracle forms.. anyone?
thank,s
joeThe only modeling tool that generates Oracle Forms is Oracle Designer.
http://otn.oracle.com/products/designer/content.html
Oracle has UML support and code generation from UML to Java in the Oracle9i JDeveloper tool.
http://otn.oracle.com/products/jdev/content.html -
Preventing Netbean's UML code generation problem
When I generate code from my UML diagram in netbeans, how do I prevent it from making a local version of java api classes and interfaces?
Example: I have classes that extend JFrame. When I generate the code, it puts and an empty JFrame class in my source package.This is a Java forum and not a Netbeans one.
-
DELV process code triggers unwanted inbound idoc!
Hi,
I am creating a delvry03 idoc with message type shpord.The process code is DELV.I am sending the idoc from LS to KU.I maintained the outbound parameters in both receiving and sender systems.The outbound is creating perfect.However, there is an unwanted inbound idoc that is being created.All the inbound idocs getting created in this way is in error.I am not able to understand why the inbound idoc is getting created.
I see DELV as both outbound and inbound process codes, but then i am not able to understnad why shpord message type is getting processed.I have not done the distribution model as the receiving system is customer.
Could someone help me out in this weird scenario.ThanksDuplicate in ABAP General deleted. Post in ONE forum only, please.
matt -
Code synchronization across the cluster
Do the App Servers take care of synchronizing webapp java code across multiple nodes of a cluster.
or does synchronizing work only on a single JVM
Thanks,
Sunil.When you talk of synchronization do you mean more than one thread accessing mutable object state or synchronizing serialized session data per node such as data stored in the HTTP session?
For the thread synchronization which is what I think you mean, a thread on machine A running on JVM 1 cannot access an object running on machine B under JVM 2 so there is no need to worry about synchronization.
In the second instance, there is nothing concrete in the Java EE spec therefore it is up to the vendor, but typically this is handled. -
Database Source Code Synchronization with PVCS
Hello All,
I would really appreciate your ideas/suggestions on developing, implementing the following requirement.
I am in the process of developing a mechanism to validate the database procedure source code in the application PVCS library, that matches the source code used for QA and PRD environments. The objective is to assure that production version of stored procedure code is the correct / matching version with PVCS, QA and PRD.
Database: Oracle 9i
Source Control System: PVCS
Database Objects: Stored Procedures
Other Questions:
- Do you know any PVCS API's to read the files?
Thanks, MadhaviHello All,
I would really appreciate your ideas/suggestions on
developing, implementing the following requirement.
I am in the process of developing a mechanism to
validate the database procedure source code in the
application PVCS library, that matches the source code
used for QA and PRD environments. The objective is to
assure that production version of stored procedure
code is the correct / matching version with PVCS, QA
and PRD.This is going to take a lot of work and I am not even sure that is is deterministic. And it is easily handled by the correct process control as well.
The following process control steps allow this.
- Developement ONLY delivers scripts for database changes. Thus table changes, data changes, new procs, old procs, what ever are delivered as scripts and are checked into version control.
- QA does NOT use anything that is not in the version control system. No disks, memory sticks, emails, etc (and in particular QA does NOT use developement database servers for testing.)
- QA are the ONLY ones allowed to install anything to production. This includes all the DBAs and it includes "emergency" fixes (which usually greatly diminsh if the above is followed and QA is actually testing stuff.)
The last step can be enforced either by simply disallowing change access to production machines except for QA and non-developement (MUST be non-developement) admin.
But if you insist, people have been interfacing programmitically with Oracle and PVCS for years. You can search the net for thousands of these. I suspect that you will find that Perl is used a lot in this (but that could be my own bias.) -
I've written this piece of code
for (int i=0; i<array.length-2; i++) //assigning random numbers to the array
array[i] = ( (int)(Math.random() * lastNumber + 1));
}And I do not want it to generate the number 0 but it does. Can somebody please tell me where I went wrong? I thought even if Math.random produces a 0 and * it with lastNumber, it would still + 1 in the end but I still keep getting the number 0 generated especially in my second last and last array space.
lastNumber is defined by the user.
Thanks in advance to all who extend their assistance.I would also do this:
((Math.random() * lastNumber) + 1)); to make sure it does what you expect. I don't know whether this matters here or not and I don't care to look it up. It's bad practice to rely on the order of operations when the result isn't obvious. -
Synchronization unwanted photos
Hi,
Since a week my iPhone 4 keeps restoring (in Dutch: "Terugzetten") my photos after I finsihed syncing my phone.
Even when the pictures are not on my computer, the pictures are restored. I used the reset function, and contacted support, but both did not help.
Is there anyone who can help me?A random photo of your grandkids appears when receiving a call from anyone?
The same photo appears when receiving a call from anyone?
A photo of your grandkids appears when receiving a call from one of your grandkids?
I'm not sure how a photo is appearing when a particular contact calls if a photo is not assigned to the contact in your iPhone's address book.
Have you synced your iPhone direct with the Address Book on your Mac via the iTunes sync process? -
Sun Java Studio Enterprise 8 - question on UML support
Hello Everybody,
I was looking at the features of "Sun Java Studio Enterprise 8" and in the UML support feature they said that this IDE provides source code synchronization with the model.It does this without using markers or tagging in the source code.It says, using them will reduce the productivity.
I just want to know the reason for this.How can they reduce the productivity? It says as if some IDEs use that procedure. Are there any IDEs which follow that procedure?
Thank you.Hello Everybody,
I was looking at the features of "Sun Java Studio Enterprise 8" and in the UML support feature they said that this IDE provides source code synchronization with the model.It does this without using markers or tagging in the source code.It says, using them will reduce the productivity.
I just want to know the reason for this.How can they reduce the productivity? It says as if some IDEs use that procedure. Are there any IDEs which follow that procedure?
Thank you. -
Hello Everybody!
I have to do some research about: what is the best way to set up my project, I am new to Azure.
Situation:
I need to develop a service(s) and client app(s) that are able to synchronize data with each other: files and database changes. the client app(s) must have the capability to work online / offline, offline: when there is no internet connection
the data has to be stored local on the client device(s) and sync it later when there is active internet connection.
Client Devices:
Windows 8.1 (Windows 8.1 PC/Desktop)
Windows 8.1 RT (Windows 8.1 Surface tablet)
Windows Phone 8.1 (Windows 8.1 Smart-phone)
We prefer to create the clients as a C# Store App Application.
Service:
This might become , if technically possible and preferable, a Azure service who main task it is to manage the communication between the server and the clients
Last days I spend my time doing research about how to get this done right.
I found several interesting techniques, some of got all the features I needed, and some just a few, but most of them aren't supported on one or more devices.
Microsoft Synchronization Framework
Sync Toolkit WinRT / Phone
Live SDK
Microsoft Synchronization Framework - got all the features I need but is not supported on Win RT and Phone
Sync Toolkit WinRT / Phone - Only Database Sync, is got bad documentation and unknown if supported on Desktop
Live SDK - Libraries to integrate with OneDrive, Only File Sync
Questions:
Does Azure support all the devices?
Is Azure supported in C# Windows 8.1 Store Apps?
Is Azure suited to host a service I described?
Thanks in advanced!Hi JelteV,
Thanks for posting!
Base on my experience, if you wan to synchronize data with each clients. I suggest you could refer to this solution:
1.Create a Sql Azure Database or storage account for storing your data
2.Create a WCF service (web role or work role ) for communication between Client and Database
3.Set Up Table Structure (Important). I suggest you could add the deviceID and userID to distinguish the different data source. And add fields such as 'status', 'create time', 'latest update time' and so on.
For example, you client insert a record into local database and set the 'status' as ‘stay update’ or '1'. When your client connect the database and synchronize the data to server, you could set the 'status' as 'updating' or '2' . After
synchronization data, you could change the status as 'updated' or '3'.
According to this idea, the client CRUD -> change the local state code
-> Sync data -> change the local state code ->
synchronization is complete -> change the local state code .If the mobile device need operate the data on the service , it also need to change the server status code to be updated, to be deleted (deleted should
be treated differently), the next time the client login server automatically checks the "state" as "pending action" and then synchronize the server to the client. So whether it is operating on a local table, or on the side of the direct
operation of the service, you can ensure that the data is synchronized two tables.
>>Does Azure support all the devices?
>>Is Azure supported in C# Windows 8.1 Store Apps?
>>Is Azure suited to host a service I described?
From your question, I think you could create a WCF service host on azure, and call WCF service form different devices. And this method is supported the different device and win8.1 store app.
Also, please see this thread:
http://stackoverflow.com/questions/14595738/net-data-synchronization-between-multiple-clients-and-a-central-server
Hope this helps.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Which firewire interface for Final Cut Pro on MacPro?
I currently own a Presonus Firepod, and it seems to work pretty well, but may sell this when I upgrade from a MacMini to a MacPro. I use my Mac for Logic Pro currently.
I anticipate running Final Cut Pro in the near future, so I'm wondering about the ability to read/generate SMPTE time code that the MOTU traveller supplies?
There will be no external mixer, so this interface will connect directly to speakers & headphones. (would be nice to be able to mute speakers and control headphone mix using just the firewire interface).
I don't anticipate needing more than 2 Mic inputs - and my current mike is a Rode NT1. (As the NT1 is not a top-of-the-line mic, unsure if I should place a lot of emphasis on worrying about the pre-ams?)
I would like decent mic preamps, and ability to graphically monitor input and output levels (is this graphic monitoring necessary, or is just the single overload indicator sufficient?).
Which interfaces in $600-$1500 range would work best with Final Cut Pro - and Logic Pro?I saw the Traveller ads in Videography mentioning
time code, so I presumed it had an advantage over
other interfaces.
I found this in some ad copy:
"""The Travler provides on-board SMPTE time code synchronization features that allow you to slave your Traveler system to SMPTE time code without a synchronizer. The Traveler provides a DSP-driven phase-lock engine with sophisticated filtering that provides fast lockup times and sub-frame accuracy. The included MOTU SMPTE Console software provides a complete set of tools to generate SMPTE for striping, regenerating or slaving other devices to the computer."""
So it likely uses an audio port for timecode I/O. However, unless you have external equipment that you want to slave to Logic Pro, (or have Logic slave to) e.g. a timecode DAT, then this really is not necessary. FCP would not see the Travaller as a "controllable" device.
For Final Cut Pro use, I'd probably shoot in HDV.
When shooting a green screen near my computer (or
maybe even on-site), I wondered if there would be an
advantage to recording the audio thru an interface
like the traveller.
The advantage is that you could capture additional mics and audio tracks with your mac while the cameras shoot. Just slate your takes and sync up later.
Do I actually need an interface that provides time
code, or is that only needed for movie work?
I have SMPTE I/O on my Unitor8, directly accessable in Logic Pro. In 8 years I've probably used it twice to capture audio from some modular digital multitracks. So, unless you have some specific need.....
Maybe it is simpler just to connect to the mic
directly to the camera's input?
Indeed. You should always have camera audio available. Anything else is supplemental. Alternatively, you could use the Travaller or RME, etc. as a "live to camera" mixer in a studio situation. Plug your mics into the interface, create a submix and send it to the camera while simultaneously capturing each mic to an individual track in Logic Pro. There are many possibilities.
G5 QuadPPC2.5, Ram:12.5g, Magma PCIe-PCI expansion Mac OS X (10.4.8) 2X Hammerfall DSP Digiface+Multiface, Digi 002r, 4X UAD-1
Maybe you are looking for
-
Want to delete the source file from the ext Hard drive using iphoto11
I am testing using the external hard drive and turn off "copy items to the iphoto library", I put the iphoto library remain in the osx system disk. In case I forget to turn on the HD, iphoto still work. But the problem that I have is that I have no w
-
How to pass multiple values to a single parameter in BW report URL
Hi Experts, I am new to EP and learning .... i am stuck at one point where we need to pass multiple parameters to a BW report URL, this is the URL that we launch from BSP.... Suppose i have to pass different multiple values to a single parameter, how
-
Airport extreme blocking port 25 from my macbook pro
My airport extreme is not supporting port 25 from my macbook pro, only product in my residence that port 25 is not supported. (iPads, iPods, macbook air)
-
Why should useful life be given in case of PRC depr type?
Hi Experts, I have no answer for that quation that if i have a depreciation type which is straight line but under calculation tab the type is PRC, then in asset master data why do i have to give a useful life for this asset. I cannot add a new asset
-
Replacing internal drive on a 2 ghz intel core duo
I am thinking of replacing my internal drive (80GByte) with a bigger one. Is it possible to replace it on ones own? I couldnt find any docs about this. Found only docs about the macbook drive replacement. And: Is there any limit concerning the drive