Anda di halaman 1dari 3

ARCHITECTURAL DESIGN (INTERPRTER)

In this software architectural design, Virtual machine is a simulator commonly known to run
a software system in simulation platform, in which it also handles portability issues before it
integrated as a whole system. In most of software development, a software developer would
plan to simulate the complete customized software before it is implemented on the actual
machine. Virtual Machine architecture consists of 4 basic components.

✦ Data
✦ Program
✦ Internal state
✦ Interpretation engine

INPUT PROGRAM Validate Login

Filtering membership

Login result
Insert details

Login Details
DATA

Customer Details Customer / Non Customer Membership Details

Shopping Cart Details

Media Result
Search by Name

Payment Details
Complete Media Details
Add Media Item

Media Ordered Result


State Data

Shopping Cart Details


Update Data

Retrieve Data
Setup Invoice Validate Payment
OUTPUT
Payment Receipt
Insert Payment Details

INTERPRETER ENGINE Payment Details

Selected Instruction

INTERNAL STATE

Instruction to be executed Queue Instruction Attach Next Instruction Attach Next Data
PROGRAM MODULE 1: Customer/Non Customer Membership Details

Components Description
Insert Details For a customer to be able to shop on the website, it is required that
every customer must be registered in order to be able to do any
purchase, unless the customer is registering as a non-member which
will only give access to products not purchase or order. so the
customer will fill an online form which they will insert their details
and create a username and password to enable them purchase media
items from the site, and these details will be saved in the database.
Login Details A short form request for login details where the customer will input
their login details to gain access for purchase.
Validate Details The details of the customer will be compared to the records in the
database, if it matches any record, access will be granted else error
message will pop up.
Filtering Membership The system will identify if the customer is a member or a non-
member
Login Result It will show the result of the login, if the details are valid access will
be granted, and also check if it’s a member or non-member, else
error message will be shown and the client will be asked to login
with the correct details

PROGRAM MODULE 2: Media Searching

Search By Name The customer searches a product by its name or category


Media Result If the correct name is typed, the result will be shown with the details
of the product, else it will show not found.

PROGRAM MODULE 3: Shopping cart

Add Media Item The customer can choose to shop for more items by adding them to
the shopping cart.
Media Ordered Result It will display the products chosen by the customer with details of
purchase after the customer checks out.
Setup Invoice The setup invoice will be updated with the current purchase details
form the shopping cart.

PROGRAM MODULE 4: Payment Procedure

Insert Payment The customer will insert their credit card details to make payment,
Details after the invoice have been gathered from the database for customer
details and the shopping cart for product details.
Validate Payment The details of the credit card will now be validated through the bank
of the customer to ensure that the card is valid.
Payment Receipt Receipt will be produced to the customer if the payments is
successful
INTERNAL STATE

Attach Next Data Next Data will be attached to the internal state based on the
execution of the instruction.
Attach Next Based on the current state of the system, next instruction will be
Instruction called to process information
Queue Instruction Instruction and data will be queued to run on the next interpreter
engine

INTERPRETER ENGINE

Engine The Instruction and data passed in to this engine will be executed.
After which it will show at the output and update the program’s data
according to the instruction given. Therefore, the internal state will
update for next queue of the program’s instruction and data.

DATA

Customer Details This is the customer details from the database. Which includes:
 First Name
 Last Name
 Gender
 Date of Birth
 Address
 Country
 Email
 Contacts
Shopping Cart Details The shopping card displays them product details such as:
 Media name
 Quantity ordered
 Order ID
 Customers detail
Media Details This includes every detail about each media such as:
 Media name
 Media type
 Quantity in stock
 Media price
Payment Details The payment details of the customer as follow:
 Order id
 Order date
 Customer name
 Credit card details
 Shopping cart details

Anda mungkin juga menyukai