Wednesday, March 16, 2011

Waldorf And Statler On A Bench

Project Diagrams and Sequence Diagrams of UML Class (Workshop)

The Software which you use to generate code from class diagram was the Umbrello. Here

a snapshot of the class diagram in Umbrello:

Now generate the code from the diagram:
First of all we must create a directory in which Umbrello can save the generated code, I would recommend do it on your desktop, to access it easier.

Once you create the directory back to Umbrello, we will go to the top toolbar click Settings, Configure we will Umbrello UML Modeller ... and we click the Code Generation tab, it will display this:

select Java language or who are using, now in the Folders section on the "Write all generated files to folder" then put the address in which is housed the directory created above, the rest is left untouched and Finally they click Ok.

They go to the Desktop or the direction you initially saved Folder and must appear that generated classes in your diagram:

; And this is the code that I generated Umbrello for each class:


Clase Grocery:


 /** 

import java.util.*;


/**
* Class Grocery
*/
public class Grocery {

//
// Fields
//


//
// Constructors
//
public Grocery () { };

//
// Methods
//


//
// Accessor methods
//

//
// Other methods
//

/**
*/
public void menu( )
{
}


}

Para Product:


 /** 

import java.util.*;


/**
* Class Product
*/
public class Product {

//
// Fields
//

public int ID;
public float price;
public int quantity;
public String description;

//
// Constructors
//
public Product () { };

//
// Methods
//


//
// Accessor methods
//

/**
* Set the value of ID
* @param newVar the new value of ID
*/
public void setID ( int newVar ) {
ID = newVar;
}

/**
* Get the value of ID
* @return the value of ID
*/
public int getID ( ) {
return ID;
}

/**
* Set the value of price
* @param newVar the new value of price
*/
public void setPrice ( float newVar ) {
price = newVar;
}

/**
* Get the value of price
* @return the value of price
*/
public float getPrice ( ) {
return price;
}

/**
* Set the value of quantity
* @param newVar the new value of quantity
*/
public void setQuantity ( int newVar ) {
quantity = newVar;
}

/**
* Get the value of quantity
* @return the value of quantity
*/
public int getQuantity ( ) {
return quantity;
}

/**
* Set the value of description
* @param newVar the new value of description
*/
public void setDescription ( String newVar ) {
description = newVar;
}

/**
* Get the value of description
* @return the value of description
*/
public String getDescription ( ) {
return description;
}

//
// Other methods
//

/**
*/
public void add( )
{
}


/**
*/
public void modify( )
{
}


/**
*/
public void delete( )
{
}


}

Para Inventory:

 /** 
import java.util.*;


/**
* Class Inventory
*/
public class Inventory {

//
// Fields
//


//
// Constructors
//
public Inventory () { };

//
// Methods
//


//
// Accessor methods
//

//
// Other methods
//

/**
*/
public void makelist( )
{
}


/**
*/
public void printlist( )
{
}


}

Para Purchase:

 /** 
import java.util.*;


/**
* Class Purchase
*/
public class Purchase extends Inventory {

//
// Fields
//


//
// Constructors
//
public Purchase () { };

//
// Methods
//


//
// Accessor methods
//

//
// Other methods
//

/**
*/
public void search( )
{
}


/**
* / public void
purchase () {




} / **
* /
public void calculate () {


}}



code that I will analyze and develop programming for my project.

Yamaha Wave Runner Vx Deluxe

Diagrams Class and Sequence UML (CLASS)

Class diagram for my project:

Explanation: My main class is Grocery, it will find the interface or menu main in which the administrator will access the various management options and control of products and business inventories.
After the Product class is where you add, modify and delete products, this is linked with the Inventory class because each product that is added is stored in the Inventory class.
class inventory, where staying is added products and Purchase class inherits, class in which the administrator generates customer orders and such kind in addition to being the daughter of inventory has a relationship with her at the time of searching products and be able to give a quote and / or message whether or not the order.

corresponding sequence diagram for my project.
Explanation: The program begins in the classroom Grocery, then moves on to the stage to add a product to add it binds and keeps the inventory and return to the Menu, to finish adding products can access the Purchase Option, to place an order, it reads the data and look if you have needed to make the sale and we return the answer.

At the moment these are the methods I consider most critical to achieving the goal of my project.

Monday, March 14, 2011

Male Intimate Tattoo Gentitals

Class and Sequence Diagrams of UML (CLASS) (INPUT 1 / 2) Technical Specification

Class Diagram

A class diagram is a type of static diagram describes the structure of a system showing classes, attributes and relationships between them. Class diagrams are used during the process of analysis and systems design, which creates the conceptual design of the information will be handled in the system, and the component that handles the operation and the relationship between the two.

Class Diagram Example:


Explanation:

This diagram corresponds to a game, so I see a game of cowboys that think you do not know lol.

As you can see, the game consists of 5 classes, Character, Cowboy, Cow Close, Game.

Character class has 4 attributes or variables of Instance-bmps I guess is some of the graphics or images representing such characters.
- Current position: tuple, the tuple is because the program may be using some graph that will have to go places has pizado recognizing that the character in order to define that place is by Pizar.
- speed is a float I guess this is going to control the frames / second that will move the character
-state is a whole state can control or identify when the character is moving or when the person is at rest.

methods are there in this class are all public: move the character, drawing the character, change status, detect collision.

The Cowboy and Cow classes have an inheritance relationship with the character class, attributes that are shared are the positions (which are private attributes) where are these initial and final. Vaquero

Class has an attribute called address that I is responsible for the possible routes or destinations that you can use this to move, while Class Vaca handled as an initial position and destination where the cows will be possessions in one place and always move equally well Vaca class has two public attributes sisters which is an instance to generate more cows and fencing that is an instance to generate a fence to surround these or serve as an obstacle. Close

Class has 2 attributes that are also tuples initial position and final position and a method that is to create a default position for the fences. Finally

Class Game class that derives from all the others, the diamonds without filling ratio which means a type of aggregation by reference (the lifetime of the object contained is independent of that supplied). But in general, the Game class is very important in implementing the game because without a difficulty level, the program will always yield the same level and not that this attribute can be developed more broadly the features and implementations of other classes .

References:
http://bittacorp.wordpress.com/2008/11/26/diagrama-de-clases/
http://es.wikipedia.org/wiki/Tupla
http://es.wikipedia.org/wiki/Diagrama_de_clases

A very good tutorial on class diagrams:
psalinas http://www.dcc.uchile.cl/ ~ / uml / model . html