I. Demand modeling, simulation of bank ATM user withdrawals instances.
1. New project selection Model View category
2. Change model to ATM (project name).
3. Change requirements to ' demand modeling ', analysis view changed to ' domain model ', use case view changed to ' usage model ', change logical View to ' logical model '.
4. In the requirements modeling, respectively set up package, card processing, user login, withdrawals, user interface, check balance, second,
Add a package--->create diagram--->extended--->requirements (add example graph)
5. Find the use case diagram of ' card processing ' from active diagrams and add related elements to draw the first sub-requirement module.
6. Select--->requirements from toolbox, then drag requirement to diagram interface---> Add the first element to the card processing sub-module.
7. Drag the black arrow in the card handle up---> select requirement-->aggregation to Part---> Generate 2nd element---More name ' identification card '.
8. Similarly, generate the 3rd element ' exit card ', so that the function requirements of the first submodule are completed.
9. Withdrawal sub-requirement module.
10. User Login Sub-module
11. Query the Balance sub-module.
12. User Interface module.
13. Drag all requirements to the functional requirements module to display.
14. Add a label to describe the name of the project--->ATM system functional requirements analysis.
Two. Use case models
1. Add 1 Actor---> Users
2. Add 3 Use Case: query balance, user login, withdrawal
The relationship between 3.Actor and use case is: use
4. Use case user login and query balance, withdrawal relationship between: precedes
The purpose is that the user should log on to the system before making withdrawals and checking the balance operation.
4. Draw a boundary (boundary), plus a use case diagram name.
Three. Behavioral models.
1. Add Add a Modeling using wizard--->dynamic View
2. Change the package name to: Behavior model.
3. Based on the behavioral model add Diagram--->uml behavioral---> Selected separately:
1) Change of activity---(Action map)
2) Rename state machine---(Status map)
3) Sequence---Renaming (sequence diagram)
4. Behavioral Model 3 graphical display effect.
5. Create 3 partitions in the activity diagram, namely the user, the host, and the backend system.
6. Insert the initial element into the user partition---> make the first action card.
7. Establish the connection between the user partition and the ATM host partition.
8. Partition the user partition with the ATM host.
In the actual project, the activity diagram, the state diagram, the sequence diagram according to the system requirements and use case requirements to create a can.
Four. The project is exported to PDF format step:
1.
2.
Five. Generate Java entity class data scripts
1. Select Add Diagram--->uml structual--->class
2. Change the class name CLASS3--->T_FQC
T_FQC table Right--->attrubutes---> Add Class member.
3. Generate code---in the parent class folder select Code Engineering--->generate Source code
4. Add the Calss field.
5.Property provides programming language selection properties.----and allow the EA to automatically generate Get,set methods.
Six. Generate the SQL statement (MYSQL).
1.ADD New Diagram--->entity Relationship diagram--->entity relationship
2. On diagram right canvas blank out, right jian---add entity, attribute.
3. Rename the entity to t_sorting and rename the attribute to sorting. Contact the entity with the attribute.
Select the entities and attributes, right-transform.
4. The system will generate a folder domain modeldatamodeling, the lower layer will produce a data table <table>sorting
The data table information will be visible in the Diagram view.
5. On the t_sorting basis, select Columsn, and add the database column operation.
6. Increase the ID (int) key, mold (varchar), lot (varchar), inspectid (varchar) 4 fields.
7. Field add complete.
8.t_sorting Data Sheet Right---->code Engineering--->generate code---> generates SQL code.
9. Confirm and select the database. Search for the keyword in the Search Toolbar---database datatypes ...
10. Select Database MySQL and set as default database
11. Select the physical path of the SQLL output and click Generate to generate the data table SQL statement.
12.Mysql produces physical paths with.
2018-08-23 20:13:18