Android Simple Graphics Example
Android Simple Graphics Example
net/publication/262014927
PDF Slides
CITATIONS READS
0 2,885
2 authors, including:
Dirk Draheim
Tallinn University of Technology
148 PUBLICATIONS 664 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Dirk Draheim on 05 May 2014.
Form-Oriented Analysis
A New Methodology to Model
Form-Based Applications
Figures
Springer, 2004.
Fig.2.1. Example pages of the online bookshop – Part I
Welcome Page
My Shopping Cart Logout
Update
Buy items
Search for a book: in cart
Search
E-mail Address:
Full Name: Password:
Repeat Pwd:
Street Address:
City:
Register
State:
ZIP:
Country:
Card Type Credit Card No.
WhateverCard
Expiration Date Cardholder
01 2006
Application Server
PC-Memory
Database
PC
Mainframe
screen program
ABAP/4 GUI
PBO input template PAI
Application Server
process before output
transactional remote
process after input
procedure call Database
LoginLink
WelcomeLink
Our recommendations:
• Richard Adams. Watership Down. view details
• Niccolo Machiavelli. Discourses. view details
• Willard Quine. Word and Object. view details
An error occurred.
The password that you provided did not match your e-mail address.
Please try to log in again or register as a new customer.
E-mail Address:
Full Name: Password:
Repeat Password:
Street Address:
City:
Register
State:
ZIP:
Country:
Browse subcategories:
• Computer
• Cooking
• Philosophy
• Literature
• Science Fiction
• Sports
Our recommendations:
• Richard Adams. Watership Down. view details
Add selected items
• Niccolo Machiavelli. Discourses. view details
to cart
• Willard Quine. Word and Object. view details
Update
Buy items
Search for a book:
in cart
Search
subcategories 0..*
Category Book
0..* title:String 1..* Author
name:String
featuredBooks abstract:String authors
name:String
price: Amount
1 item
OrderItem
quantity:Number
the login data was erroneous the registration data was erroneous
OrderRegistration
Confirmation
Update
E-mail:
Password:
error occurred
49 Nowhere Lane Expiration: 01/2008
New Haven Repeat Password:
CT 06511, U.S.A. Place your order
Card Type Card No.
WhateverCard
Book Quantity Price
Quine: Word and Object 1 12.46 Expiration Date Cardholder
Wittgenstein: Tractatus 1 23.06 01 2006
Adams: Dirk Gently 2 24.00
Total 59.52 Register
Springer Verlag 2004
Fig.4.3. List of options for a single conceptual option
}
Quine: Word and Object 1 12.46 Delete
Update
ShoppingCart
Search WelcomeLink
• searchItem
OrderRegistration
WelcomeLink
OrderLoginForm
• e-mail
• password
Springer Verlag 2004
Fig.4.4. Form storyboard – Part II
Order
user OrderRegistration
error occurred
alre
ady
OrderLoginForm OrderRegistrationForm
lo
• e-mail • eMail
gged
• password • fullName
in
• streetAddress
• city
• state
• zip
OrderInformation • country
• password
• repeatedPassword
WelcomeLink • cardType
• cardNumber
PlaceOrder • expiration
• cardholder
Springer Verlag 2004
Fig.4.5. Page images – Part I
WelcomeLink
ShoppingCart
Logout
UpdateCart
DeleteCartItem
• cartItem • cartItem
• quantity
Search
• searchItem
Order
OrderLoginForm
• e-mail
• password
OrderRegistrationLink
Springer Verlag 2004
Fig.4.5. Page images – Part II
WelcomeLink
OrderLoginForm
• e-mail
• password RegistrationForm
• eMail
OrderRegistrationLink • fullName
• streetAddress
• city
• state
OrderInformation • zip
• country
WelcomeLink ViewCart • password
• repeatedPassword
Logout OrderChangeLink • cardType
• cardNumber
• expiration
• cardholder
PlaceOrder
ShoppingCart
Search WelcomeLink
searchItem
Order OrderLogin
OrderRegistrationLink
error occurred
OrderRegistration
WelcomeLink
OrderLoginForm
e-mail
Springer Verlag 2004
password
Fig.4.6. Form storyboard annotated with
interaction information – Part II
Order
OrderRegistration
user
error occurred
alre
ady
OrderRegistrationForm
lo
OrderLoginForm
gged
e-mail eMail
password fullName
in
streetAddress
city
state
zip
OrderInformation country
password
repeatedPassword
WelcomeLink cardType
cardNumber
PlaceOrder expiration
cardholder
Springer Verlag 2004
Fig.4.7. Message storyboard– Part I
DeleteCartItem
UpdateCart cartItem
cartItem
quantity ShoppingCart
cartItem 2 error occurred
! authorName
Search
searchItem ! title
defaultQuantity OrderRegistration
! price ! errorMessage
defaultEmail
Order defaultFullName
OrderRegistrationLink defaultStreetAddress
defaultCity
defaultState
OrderLogin defaultZip
! errorMessage defaultCountry
2 defaultEmail defaultCardType
defaultCardNumber
OrderLoginForm defaultExpiration
email defaultCardholder
password WelcomeLink
Springer Verlag 2004
Fig.4.7. Message storyboard– Part II
OrderRegistration
1 user already logged in
! errorMessage
OrderLoginForm 3 error occurred
defaultEmail
Order email 4 shipping details
5 payment method
defaultFullName
password and so on...
1 3
OrderInformation
! fullName
OrderRegistrationForm
! streetAddress 4
eMail
! city
fullName
! state
! zip streetAddress
! country city
5
! cardType state
! truncatedCardNumber zip
! expiration country
password
WelcomeLink ! authorName repeatedPassword
! title cardType
! quantity cardNumber
PlaceOrder ! price expiration
cardholder
! totalPrice
Springer Verlag 2004
Fig.5.1. The information system model of form-oriented analysis
Dialogue Model
Dialogue
Specification
Signature Definition
Referring
Shared
Opaque Identity Model Model
Referring
ViewBook ViewCategory
ShoppingCart
OrderLogin OrderLoginForm
Order
OrderRegistrationLink
OrderInformation
OrderRegistration OrderRegistrationForm PlaceOrder
Confirmation
Springer Verlag 2004
Fig.5.3. Two alternative formcharts for the same model
(i) (ii) D Q B
Q
E F
E F
P A R
P A R
D B
D B
V C S
V C S
R D P B
P P TO A A
P A
P>T T T>A
P>T>A
custom name global default name
non-deletable
product
1..1 oref
opaque reference facade
information types
0..1 instance
Product
enabling condition
P A
Q B
E
P TO A
P A
S F
R C
ViewCart
LoginLink
Login
LoginLink
LoginForm
Logout
Logout
Welcome
WelcomeLink RegistrationLink LoginForm
ChangeLink
RegistrationLink
LoginForm
ViewBook
RegistrationForm
Search
RegistrationLink WelcomeLink
RegistrationForm Registration
RegistrationForm
ChangeLink
Springer Verlag 2004
Fig.5.9. Complete formchart for the
bookstore example – Part II WelcomeLink
ViewCart
WelcomeLink
ViewCategory LoginLink
ViewCart
ViewBook Logout
Book
LoginLink RegistrationLink
Category
Search
Logout ChangeLink
RegistrationLink AddToCart
ChangeLink Search
ViewCategory
WelcomeLink
ViewBook
ViewCart Logout
AddToCart
ShoppingCart UpdateCart
Search AddToCart
DeleteCartItem
UpdateCart
Order
DeleteCartItem
Springer Verlag 2004 Search
Fig.5.9. Complete formchart for the WelcomeLink
WelcomeLink LoginLink
Order
ViewCart SearchResult Logout
OrderLoginForm WelcomeLink
OrderLogin Confirmation
OrderRegistrationLink Logout
OrderLoginForm
OrderRegistrationLink OrderRegistration
WelcomeLink
OrderRegistrationForm
OrderRegistrationForm
Springer Verlag 2004 OrderChangeLink
Fig.5.10. Login, registration and logout feature
of the online bookshop
Logout
Welcome
LoginLink
RegistrationLink
Registration RegistrationForm
forgottenEmailPassword
2.
forgottenEmail
3.
forgottenPassword
Login 4. LoginForm 1. Welcome
noSuchUser 5.
6.
passwordMismatch
Refinement
• dropping server input constraint
• adding transitions
• adding flow conditions
Welcome
forgottenEmailPassword
forgottenEmail 2. 1.
3.
noSuchUser Registration
forgottenPassword
4.
5.
Login LoginForm
RegistrationLink
6.
passwordMismatch PasswordError
LoginLink
Springer Verlag 2004
Fig.5.13. Browsing feature of the online bookshop
Welcome ViewCategory
1 view a bestseller
2 view a featured book
1
Category UpdateCart
SearchResult DeleteCartItem
UpdateCart UpdateCart
update delete
ShoppingCart ShoppingCart
DeleteCartItem
OrderLogin OrderLoginForm
OrderRegistrationLink
WelcomeLink
OrderRegistration
OrderRegistrationForm Welcome
1.
NewRegistrationLink
NewRegistration NewRegistrationForm
RegistrationLink
Welcome Registration
ChangeLink
Welcome Book
Category
SearchResult
ShoppingCart SearchResult
AddToCart
Category ViewBook
message model
no direct input
Category ViewBook
{selection}
selected
featuredBooks 1..* 0..1
book single selection
iii
ii vi
v viii
iv vii
A B C D E F G H
ii iii
A B C B C D E F G H
iv vi
A B E F G H
v vii viii
B C D E F F G H
Source 0 Sink
Context DFD
flow
Source 1 2 Sink
DFD0
flow flow
Source 1.1 1.2 2.1 2.2 Sink
S S
DFD1 DFD2
Springer Verlag 2004
Fig.6.4. A flat formchart
A B C D E F G H
Category
Book
LoginLink
Login
Welcome
Book Category
SearchResult
View Cart
Welcome OrderInformation
Category OrderLogin
ViewCart ShoppingCart
Book OrderRegistration
SearchResult
Confirmation
OrderInformation
Category
Logout Category
Welcome
Book ChangeLink
Registration
Book
SearchResult
ShoppingCart SearchResult
OrderRegistration
OrderInformation
OrderInformation
Confirmation OrderChangeLink
Welcome Search
Welcome Registration
Category
Category
SearchResult
RegistrationLink
Search
Book ShoppingCart
Book
SearchResult
A B C A,B,C
P Q R P,Q,R
D E F D,E,F
Logout Welcome
ShoppingCart,
OrderInformation, LoginLink
Confirmation Login
ChangeLink
Registration
OrderChangeLink
OrderInformation OrderRegistration
Login,
Registration, Book, Category, Welcome
ShoppingCart, SearchResult, Welcome
OrderInformation, OrderLogin,
OrderRegistration, WelcomeLink
Confirmation
View Cart
Welcome, Category, Book,
SearchResult, OrderInformation ShoppingCart
ViewCart
Search
Welcome, Category, Book,
SearchResult, ShoppingCart Book
Search
(ii) A1 A2 A3 A4 A5
S3‘
S1‘ S2‘ S5‘
S4‘
Start End
S3‘‘
S1‘‘ S2‘‘ S5‘‘
S4‘‘
B1 B2 B3
Springer Verlag 2004
Fig.7.1. The data model of the bookshop as a PD model
Category
name featuredBooks
title String
subcategories Book
String abstract
item String
price Amount
OrderItem
orderItems quantity name String
Number Author
Order authors
password String
address streetAddress String
cardInformation
Address city CardType
String CardInformation cardType
state cardNumber
String String
zip expiration
country Number Date
String
Springer Verlag 2004 cardholder String
Fig.7.2. A submodel of the bookshop
title String
Book
abstract
item String
price Amount
OrderItem
orderItems quantity name String
Number Author
Order authors
password String
Offer Offer
Customer Customer
contact Contact
Salesperson Salesperson
Partial
order Fro
to2fro fro2to
To
Data model
Data state
composite detouring
entity relation type
weak
entity type
master
relation types external
reference
contents
subsystem
advertise getinsurance
order ship
deliver
inquiry
CRMprocess
b
b a
v v
i i
a a
h h
u u
Welcome
Receiver
Solution A
flow: incorrect password
Solution B
LoginForm
Authentication
Springer Verlag 2004
Login
Service
FailReceiver
Welcome
OKReceiver
Fig.8.5. A DTIM and an equivalent DFD
DTIM
DFD
b w b
v i c
i
w
v
a
h h
a
c u
j h j
u a
Click-Dummy
Angie
Prototype
Generator
Load Test
Angie Load Angie
Report
Java
Server Pages Web Presentation Layer
login login
Welcome LoginLink Login LoginForm
WelcomeLink welcome
view
goodies
ACME Specials ACME Welcome
ACME events 1 3
home
forms are
editable method calls
client
page
CPTS
CPDS
C front
request
Java Servlet
M
create/update
request
client
dispatching
server-side
access objects
Java Server Page
response
V presentation
registration
C error and registrationC→along
not error
somewhere
RelationType 1
EntityType
Role
1
Number
Number 1
1
RelationType Upper multiplicity
Upper multiplicity 1
1 Lower multiplicity
Lower multiplicity
1 Role
1
Number
1 Number 1
EntityType 1
1
l LoginLink
Welcome
v
! loggedIn:Boolean s ShoppingCart
! customerName:String ViewCart
ServerPage
Category
WelcomeLink Welcome
ViewCategory
WelcomeLink
Welcome
Category ViewCategory
singleInstance:
CurrentEnd
Springer Verlag 2004
Fig.13.4. A login subdialogue as UML state machine
submit
[valid password]
Welcome Login
submit
[invalid password]
x
v y
A B C D
w z
B’
x duplicate
v y
aA:A aB1:B aC1:C aC1:C aC1:C
v y
w aB2:B y aC2:C aC2:C aC2:C aC2:C
result bag
w aB’:B’ z aC3:C
parent
<<singleton>>
1 Root
1..* {xor}
1..*
Node
1 parent
Leaf InnerNode
Application
Presentation Dialogue Control Interface
Model
CurrentUser
login
User
email-and-password
customer-and-repeated-password
register
error-message Customer
Springer Verlag 2004
Fig.16.2. Jacobson-style use case diagram
View publication stats
search
buy
register
login
logout
system
Springer Verlag 2004