Click here to load reader

UML dan Java Application - fileUML dan Java Application ... o Visual Paradigm o Notepad/Netbeans/Eclipse/InteliJ Relational Database (ex MySQL 5) Optional ... Contoh Kasus

  • View
    214

  • Download
    0

Embed Size (px)

Text of UML dan Java Application - fileUML dan Java Application ... o Visual Paradigm o...

Java Bootcamp 2011 1

UML dan Java Application

Software yang dibutuhkan

Java Development Kit 6

Tools

o Visual Paradigm

o Notepad/Netbeans/Eclipse/InteliJ

Relational Database (ex MySQL 5)

Optional

o MySQL Workbench

Java Bootcamp 2011 2

Contents UML ......................................................................................................................................................... 5

Use Case Diagram ........................................................................................................................... 6

Contoh Kasus ................................................................................................................ 7

Menggambar UseCase dengan Visual Paradigm ....................................................... 8

Menggambar Actor .................................................................................................... 11

Generalization ............................................................................................................ 12

Use Case..................................................................................................................... 12

Association ................................................................................................................ 13

Include ........................................................................................................................ 14

Extend ......................................................................................................................... 16

Use Case Diagram Perpustakaan ............................................................................. 18

Activity Diagram ........................................................................................................................... 18

Menggambar Activity Diagram dengan Visual Paradigm ........................................ 20

Partition/Vertical Swinlane ........................................................................................ 20

Initial Node ................................................................................................................. 21

Action ......................................................................................................................... 21

Decision Node ............................................................................................................ 23

Activity Final Node ..................................................................................................... 24

Peminjaman oleh mahasiswa ....................................................................................... 26

Peminjaman oleh Karyawan......................................................................................... 27

Pengembalian oleh karyawan ...................................................................................... 27

Pengembalian Oleh Mahasiswa ................................................................................... 28

Class Diagram .................................................................................................................................... 29

Class ............................................................................................................................ 31

Generalisasi ................................................................................................................. 31

Aggregasi..................................................................................................................... 32

Multiplicity .................................................................................................................... 32

Composisi .................................................................................................................... 33

Asosiasi 1 Arah ............................................................................................................ 34

Class Diagram Perpustakaan....................................................................................... 36

Kode Program untuk Entity .......................................................................................... 37

Kelas Anggota ............................................................................................................. 37

Kelas Karyawan ........................................................................................................... 37

Kelas Mahasiswa ......................................................................................................... 38

Kelas PetugasPerpus .................................................................................................. 38

Java Bootcamp 2011 3

Kelas Denda ................................................................................................................ 39

Kelas Koleksi ............................................................................................................... 40

Kelas ItemTransaksi .................................................................................................... 40

Kelas Transaksi ........................................................................................................... 41

Kelas TransaksiPeminjaman ........................................................................................ 41

Kelas TransaksiPengembalian ..................................................................................... 42

DAO ............................................................................................................................. 42

Sequence Diagram ............................................................................................................................ 43

Actor ............................................................................................................................ 45

Boundary Life Line ....................................................................................................... 46

Message ...................................................................................................................... 47

Relasi Class Diagram dan Squence Diagram .............................................................. 48

LifeLine ........................................................................................................................ 50

Message dan Parameter .............................................................................................. 52

Return Message........................................................................................................... 55

Fragment ..................................................................................................................... 56

Operand didalam Fragment ......................................................................................... 57

Sequence Login ........................................................................................................... 63

Squence Peminjaman oleh Karyawan .......................................................................... 64

Sequence Diagram Pengembalian oleh Karyawan ...................................................... 65

Sequence Diagram Peminjaman oleh Mahasiswa ....................................................... 66

Sequence Diagram Pengembalian oleh mahasiswa .................................................... 67

Sequence Diagram Penambahan Data Mahasiswa ..................................................... 68

Sequence Diagram Load Data Mahasiswa .................................................................. 69

Diagram Database ....................................................................................................... 70

Object Oriented Programming .............................................................................................................. 71

Object ................................................................................................................................................ 71

Class .................................................................................................................................................. 71

Enkapsulasi ........................................................................................................................................ 72

Inheritance ........................................................................................................................................ 73

Interface ............................................................................................................................................ 77

Polymorphism ................................................................................................................................... 77

Visual Programming .............................................................................................................................. 78

Swing ................................................................................................................................................. 78

Form Login ................................................................................................................... 78

Form Main ................................................