Dijagram klasa: UML to JAVA

Slides:



Advertisements
Similar presentations
Information Systems Technology Ross Malaga B Copyright © 2005 Prentice Hall, Inc. B-1 WORKING WITH DATABASES.
Advertisements

How to Import an Excel File Using the SAS Import Wizard SAS 9 for Windows.
Select Get External Data from the Data menu on the toolbar. Then click Import Data on the menu. Browse to the correct folder and select the required file.
The PLASTIC Model to HUTN transformation tool UDA.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Model Creation and Testing using Eclipse plug-ins.
Site Production Installation. Navigate to location of the install package Important – Launch the e-ISuite Installer using your agency’s install protocol.
Using MS Project To draw a Network diagram. Add tasks Add the 8 tasks listed for making a cup of tea. Add the duration of each –Note: MS Project doesn’t.
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Site Training Installation. Navigate to location of the install package Important – Launch the e-ISuite Installer using your agency’s install protocol.
Reverse Engineering In Rational Rose. Steps to take… Set up new Java project Click on class path.
Create a New Application and Project Open the Create Application dialog. Enter the application name of your choice and the directory. Select No Template.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
1 ISA Server 2004 Installation & Configuration Overview By Nicholas Quinn.
The PLASTIC Model to WSDL transformation tool UDA.
 The BPEL Module project is a group of source files which includes BPEL files, WSDL files, and XML schema files. Within a BPEL Module project, you can.
Creating a Project with C++ Builder
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Active-HDL Interfaces Building VHPI Applications C Compilation Course 9.
Project Deployment IT [211 CAP] How to convert your project to a full application.
This is the first screen you will encounter. Select Blank Database.
1 After completing this lesson, you will be able to: Create and run a query. Specify criteria in a query. Create a calculated field. Create a multiple-table.
Using COMET with Visio Visio UML Modeling. Creating a Drawing After opening Visio, you will see a list of templates available.
® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed.
CODE - GENERATION IT1006 OOAD LAB. Generating/Updating code from whole project  Round-trip engineering is the ability to generate model from source code.
Exporting. Export Step 1 – In Outlook select Contacts.
® IBM Software Group © 2007 IBM Corporation Module 3: Creating UML Diagrams Essentials of Modeling with IBM Rational Software Architect, V7.5.
Create Windows Setup and Deployment Projects Windows Development Fundamentals LESSON 5.2.
Creating a Zip File with a Password. 1.Right Click on the File or Folder you want to Zip. 2.Choose “Add to Zip”
Import existing part with drawing
Java IDE Dwight Deugo Nesa Matic
Author: Loh Jianxiong Christopher Contributions: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang, Tong Chun Kit, Tania Chattopadhyay.
Labs: Create, deploy and test a simple web service
Introducing IBM Rational Software Architect
Business rules.
Getting Eclipse for C/C++ Development
4. Code Transformation SWE SOFTWARE PROCESS MODELING - AMAN QUADRI.
Voice selection on notes
DRAWING LINES To draw lines click View in the Main Menu Toolbar -> Toolbars and check the Editor option. The Editor toolbar will appear amongst the toobars.
ATS Application Programming: Java Programming
IBM Rational Rhapsody Advanced Systems Training v7.5
Writing simple Java Web Services using Eclipse
HW7(100pts+10bonus) The homework Due on May 11, 23:59:59
Document Generation QRG
8. Model Fusion SWE SOFTWARE PROCESS MODELING - AMAN QUADRI.
MFC Dialog Application
Exchange Configuration on Outlook Express
Quick Start Guide for Visual Studio 2010
How to Import an Excel File
UML Diagramming with JUDE
面向对象分析与设计 Use of starUML By Wang Meihong.
Using JDeveloper.
Software Design Lecture : 14.
Lab 1 Introduction to C++.
Blackboard Tutorial (Student)
How to Create a Microsoft Access 2007 Database
Double click Microsoft Visual Studio 2010 on the Computer Desktop
Using Eclipse.
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Rational Publishing Engine RQM Multi Level Report Tutorial
Getting Eclipse for C/C++ Development
Grauer and Barber Series Microsoft Access Chapter Two
More to Learn Creating a shortcut
Select Import Text File from the Data, Get External Data menu on the toolbar. Browse to the correct folder and select the required file.
Working with Libraries
Configuring Classification Management
Tutorial 8 Sharing, Integrating, and Analyzing Data
Database 2.
Data Base.
Presentation transcript:

Dijagram klasa: UML to JAVA Prof. dr Angelina Njeguš Associate Professor

Korak 1: Kreiraj UML projekat File > New > Project Check Show all wizards Expand Modelling folder, select UML Project, and click Next Choose a name for your project and click Next. Project name: Bank

Korak 2: Kreiraj paket Select General > Blank Package Choose a name for your package  and click Finish. File name: BankAccount What is package? A package is a general purpose mechanism for organising elements into groups. Packages may be nested within other packages.

Korak 3: Nacrtaj dijagram klasa In the Project Explorer View, right click on the package BankAccount and select Add Diagram > Class diagram In the Palette view, click on Class, and name it Account Right click on Account, and select Add UML > Attribute Name the attribute: -balance : double, and click Enter.

Dodavanje operacija Right click on class Account, and select Operation Name the operation: deposit(amount:double):double, and click Enter Add another operation: withdrawal(amount:double):double

Dodavanje novih klasa Add new class: CheckingAccount Attribute: insufficientFundsFee:double Operation: withdrawal(amount:double) Add new class SavingsAccount Attribute: annualInterestRate:integer Operations: depositMonthlyInterest(), and withdrawal(amount:double)

Dodavanje relacija In the Pallete View, under Class, select Generalization, and draw on the diagram

Korak 4: UML-to-Java transformacija To create a new UML-to-Java transformation configuration, select Modeling >Transform > New Configuration in the Main menu.

Configure the transformation In the Name field of the opened New Transformation Configuration wizard, enter the name of the transformation configuration: Name: MyUMLtoJavaTransform Click the ellipses (...) button to browse to the UML project Bank In the list of deployed transformations, open the Java Transformations folder and select the UML-to-Java transformation. Select the Conceptual protocol type, and click Next. Note: Choose Conceptual protocol if the intention is to use the source model as a primary engineering artifact in future iterative development. Any changes made to the source model will be propagated to the target project when someone runs the transformation.

Specify the source and target elements for the transformation Select the model BankAccount from the created UML project as a source Select Create a Target Container

Create a new Java project Create a new Java project named myBankCode, and click Finish  Select it as a target in the Transformation Configuration wizard, and click Finish

Run the transformation configuration The Java project and transformation configuration files created are visible in the Project Explorer view The Transformation configuration is opened in the Editor view Click Run to run the configuration

Generated transformation output The Java code will be generated in the target project