You are on page 1of 6

16/05/2013

REKAYASA PERANGKAT LUNAK

ARSITEKTUR PERANGKAT LUNAK

DEFINISI (1)
An abstract system specification consisting primarily of functional components described in terms of their behaviors and interfaces and component-component interconnections. The interconnections define provide by which components interact. How the system is decomposed and organized into components and must describe the interfaces between these components.

16/05/2013

DEFINISI (2)
The organizational structure of a software system including components, connections, constraints, and rationale.

Components can be small pieces of code, such as modules, or larger chunks, such a stand-alone programs like database management systems. Connections in an architecture are abstractions for how components interact in a system, e.g., procedure calls, pipes, and remote procedure calls. An architecture has various constraints and rationales associated with it, including the constraints on component selection and the rationale for choosing a specific component in a given situation.

DEFINISI (3)
Gambaran bagaimana elemen/komponen fungsional perangkat lunak disusun, diorganisasi dan distrukturkan sehingga:

Hubungan antar elemen/komponen dapat dijelaskan. Interface yang menghubungkan elemen/komponen dapat didefinisikan. Wujud dan penempatan elemen/komponen dalam tempat penyimpanan sekunder secara fisik dapat ditetapkan.

16/05/2013

STRUCTURE CHART
Diagram untuk menggambarkan arsitektur perangkat lunak secara keseluruhan tanpa memperlihatkan proses pemilihan dan pengulangannya secara rinci. Menggambarkan arsitektur perangkat lunak seperti diagram organisasi sebuah perusahaan.

SIMBOL STRUCTURE CHART


Simbol Modul Pemanggilan modul Data atau elemen kontrol yang dikirimkan atau diterima dari satu modul Pengulangan di dalam modul Penyeleksian kondisi di dalam modul Arti

16/05/2013

CONTOH STRUCTURE CHART (1) : PASCAL


A notasi untuk parameter input yang dikirimkan kepada modul yang dipanggil modul pemanggil notasi untuk parameter output yang diberikan pada modul pemanggil modul yang dipanggil

x, y

p, q

Modul A memanggil modul B dengan data x dan y sebagai parameternya. Modul B mengirimkan data p dan q sebagai return value ke modul A.

Procedure A; Var p, q : Real; Procedure B(x, y : Real); Begin p := ... { manipulasi nilai p } q := ... { manipulasi nilai q } End; Begin B(x, y); { call procedure B } End;

Potongan kode program dalam bahasa Pascal

CONTOH STRUCTURE CHART (2) : PASCAL


Modul A akan memanggil modul B jika kondisi dalam modul A dipenuhi. Modul A akan memanggil modul C secara berulang.
B A

Potongan kode program dalam bahasa Pascal

Procedure C; Begin ... End; Procedure B; Begin ... End; Procedure A; Begin If True Then B; {call procedure B} While True Do C; {call procedure C} End;
8

16/05/2013

CONTOH STRUCTURE CHART (3) : PHP


FormInput.html
<html> ... <form method=post action=Rekam.php> ... </html>

FormInput

Rekam.php Rekam
<? // Rekam.php function getId() { } function saveId(id) { } id = getId(); saveId(id) ?>
id id

getId

saveId

CONTOH STRUCTURE CHART (4) : DELPHI


main.pas
unit main; ... var Form1: TForm1; implementation uses Rekam; procedure TForm1.Click(Sender: TObject); begin frmRekam.Show; end; end.

Main

Rekam rekam.pas
unit Rekam; ... var frmRekam: TForm1; implementation ... end.
10

16/05/2013

CONTOH ARSITEKTUR PERANGKAT LUNAK


Model Analisis (DFD level atomik)
1 Tambah Data Barang Bagian Penjualan id_barang

Modul Pemanggil

rec_barang id_supplier Barang rec_supplier 2 Tambah Data Supplier

Arsitektur Perangkat Lunak (Structure Chart)


Kelola Data Induk

rec_supplier Supplier

Proses 1.0
Tambah Data Barang id_barang supplier rec_barang id_supplier Tambah Data Supplier

Proses 2.0

rec_supplier

Modul-modul atomik (procedure, function)

Baca Id_Barang

Rekam Barang

Baca Id_Supplier

Rekam Supplier 11

You might also like