Airport Ticketing System Simulation - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Airport Ticketing System Simulation

Description:

Reflection. A simulation of ticket selling system of an airport. What simulated? Selling windows ... Client assigned a random request and serving time ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 11
Provided by: Hai14
Category:

less

Transcript and Presenter's Notes

Title: Airport Ticketing System Simulation


1
Airport Ticketing System Simulation
  • Danning Wang
  • 6/3/03

2
Outline
  • Project Overview
  • Project Statistics
  • Top Level Architectures
  • Reflection

3
A simulation of ticket selling system of an
airport
  • What simulated?
  • Selling windows
  • 3 states
  • Opening
  • Busy
  • Closed
  • SalePerson
  • Clients
  • 2 types
  • Onsite
  • By phone
  • 3 service requests
  • Purchase ticket
  • Return ticket
  • Query flight ticket

4
What simulated? (contd)
  • Multiple waiting queues
  • Service statistics
  • Total served clients
  • Average waiting time of clients
  • Flights and tickets
  • Dynamic behaviors
  • Selling window opening or closed any time
  • Client arrives randomly and joins the shortest
    queue
  • Client assigned a random request and serving time
  • Queue length, tickets availability, service
    statistics update, etc

5
What it looks like?
Selling windows
Waiting queues
Service statistics
Flights
Tickets
6
Project Statistics
  • Lines of codes
  • 1300 lines (without comments)
  • 1900 lines (with comments)
  • 8 packages
  • Top level 4
  • 2nd level 4
  • 20 classes
  • 6 interfaces

7
Project Statistics (contd)
  • 6 Patterns
  • Model-View-Controller
  • View built on simple javax.swing components
  • Command
  • 3 clients service requests
  • Template method
  • 2 kinds of clients
  • Observer
  • Controller is subtype of java.util.Observer
    interface
  • Composite
  • Linked queue class composes node objects into a
    tree
  • Singleton
  • Service statistics and ticket database need only
    one instance

8
Top Level Architecture Package Structure
9
Top Level Architecture Class Diagram
10
Discussion
  • Lesson1 use patterns correctly simplifies the
    complicated problem
  • Lesson2 architecture design is more important
    than implementation
Write a Comment
User Comments (0)
About PowerShow.com