Skip to content

isp-cluj/isp-lab-8-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab 8 - Car Parking Access Control System

Exercise 1

Implement a car access parking system based on the requirements bellow.

Note 1 - Source folder contains some classes which can be used as starting point or refference for implementing the application.

Note 2 - There is no need to implement access control levels (user and admin) as represented in the use case diagram bellow.

Note 3 - For storing cars on disk check utility classes given as example in 'files' package.

Functional requirements

Exercise 1 image

Enter Car Park

  • car is identified by plate number
  • if there are free parking spaces car is allowed to enter if not the car access is denied
  • access is denied if a car with the same plate umber is already parked

Check Space Available

  • parking has a limited number of places available (configurable through the app)
  • if number of spaces available is 0 car is denied access

Exit Car Park

  • when leaving total stay cost is calculated
  • after leaving an access log for that car and period is stored for reporting purpose

Calculare Usage Cost

  • cost of parking is calculated in increments of 1 SECOND to make it more easy to tests the system
  • 1 SECOND costs 1 RON

View Current Parked Cars

  • display all cars currently parked. Display : plate number, entry time, current cost
  • display available free spaces

View All Past Entries for a Car

  • display all past entries for a car. Display: plate number, entry time, total stay (in seconds), total cost;
  • display total cost for all stays

View All Unique Past Entries

  • display all unique cars eneterd in parking lot in the past. Display: plat number and number of entries for each car

Non-functional requirements (technical constraints)

  1. Car access details will be stored in a persistant storage on disk as files and the state is not lost when the application is restarted.
  2. Car access details can be stored using one of the 2 Java mechanisms: JSON objects, Serialization.
  3. Minimal unit-tests should be provided to demonstrate the correct behaviour of the system.

Exercise 2 image

Exercise 2

Exercise 2 image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages