Skip to content

taylantaskin/JavaRentalApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment 4

Create Title

TtitleFactory takes the responsibility of creating titles. It decides which child of the Title to create according to the "type" parameter and creates the title with the parameters it receives from Varargs.

Pluggable Pricing Rules

  1. IPriceStrategy interface was created, and its implementation; PercantageDiscount, AbsoluteDiscountStrategy, NormalStrategy were created.
  2. PriceStrategyFactory decides which PriceStrategy will be created based on time period.
  3. When Rental is created, Rental receives one strategy from PriceStrategyFactory. Rental uses this strategy to calculate price in its getPrice

Assignment 2 & 3

UML

Sequence Diagrams

Quick Links

  1. UML
  2. Sequence Diagrams
    1. CreateRental
    2. AddItem
    3. GetItemInformation
    4. GetTotalPrice
    5. Complete

CreateRental

back to Quick Links CreateRental

AddItem

back to Quick Links AddItem

GetItemInformation

back to Quick Links GetItemInformation

GetTotalPrice

back to Quick Links GetTotalPrice

Complete

back to Quick Links Complete

Contributors

  1. Taylan Taşkın
  2. Ahmet Tarık Duyar

About

Rental Application design and demo code for SE211 class.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors