SlideShare a Scribd company logo
1 of 5
Identification of Classes
model : AirlineReservationSystem

CLASSES
Class: User
attributes
userid: string
password: string
emailid: string
name: string
loginstatus : Boolean
operations
VerifyLogin(email : string , password : string) : Boolean = user.allInstances -> exists (
u: user | u.emailid = emailid and u.password = password)
end
Class : Customer < User
attributes
userid : string
password : string
customername : string
emailid : string
address : string
phonenumber : integer
creditcardnumber : integer
age : integer
source : string
destination : string
operations
register()
login() : Boolean
searchflights()
bookflights()
searchpackages()
bookpackages()
searchhotels()
bookhotels()
browse()
end

Class: flight()
attributes
flightnumber : integer
noofseats : integer
source : string
destination :string
end
Class: hotel()
attributes
hotelname : string
hotelid : integer
noofrooms: integer
end

ASSOCIATIONS
-- This association is being written to indicate that there should be some number of
seats on the plane greater than zero.
association plane seats between
Flight[1] role belongto
Seat[10..300] role has
end
-- A customer can book any no.of seats on the flight, depending upon the capacity of
the flight.
Association customer and seats between
Customer[1] role bookedby
Seat[1..*] role books
End
-- A customer should be seated in the flight in only one seat.
Association customerseated between
Customer[1] role holds
Seat[1] role isheld
End
---- CONSTRAINTS
-- This constraint is written to indicate that each customer who registers to the Airline
Reservation system website should have a unique id.
Context user
inv uniqueid:
user.allInstances -> forAll( u1,u2 | u1 <> u2 implies u1.userid <> u2.userid)
end
--This constraint is written to indicate that each user will have a unique e-mail id.
Context user
inv uniqueemail:
user.allInstances -> forAll( us1,us2 | us1 <> us2 implies us1.emailid <> us2.emailid)
end
-- This constraint is written to indicate that each customer’s e-mail id, should be unique
Context customer
inv uniqueemail:
customer.allInstances -> forAll(c1,c2| c1<>c2 implies c1.emailid <> c2.emailid)
end
-- This constraint is written to indicate that the number of seats in the flight should be
greater than zero
Context flight
inv noofseats:
flight.allInstances -> forAll ( f1 | f1.nooseats >= 1)
end
--This constraint is written to ensure that no two flights have the same number.
Context flight
Inv uniquename:
flight.allInstances -> forAll ( f1,f2| f1<>f2 implies f1.flightnumber <> f2.flightnumber)
end
--This constraint is written to ensure that a hotel can have multiple rooms.
Context Hotel
Inv hotelrooms:
Hotel.allInstances -> forAll(h1| (h1.noofrooms ) ->size() >=1)
end

More Related Content

Similar to identifiaction of classes airline system

Csci 1101 computer science ii assignment 3/tutorialoutlet
Csci 1101 computer science ii assignment 3/tutorialoutletCsci 1101 computer science ii assignment 3/tutorialoutlet
Csci 1101 computer science ii assignment 3/tutorialoutletLeacyz
 
JAVA The file being read is called flightdatatxt please in.pdf
JAVA The file being read is called flightdatatxt please in.pdfJAVA The file being read is called flightdatatxt please in.pdf
JAVA The file being read is called flightdatatxt please in.pdfadinathassociates
 
Flight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docxFlight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docxAKHIL969626
 
In this assignment you will practice creating classes and enumeratio.pdf
In this assignment you will practice creating classes and enumeratio.pdfIn this assignment you will practice creating classes and enumeratio.pdf
In this assignment you will practice creating classes and enumeratio.pdfivylinvaydak64229
 
[Challenge:Future] Database for Airport
[Challenge:Future] Database for Airport[Challenge:Future] Database for Airport
[Challenge:Future] Database for AirportChallenge:Future
 
Airline reservation system
Airline reservation systemAirline reservation system
Airline reservation systemUnsa Jawaid
 
sql code for this question below Portland Airports Ltd would like a.pdf
sql code  for this question below  Portland Airports Ltd would like a.pdfsql code  for this question below  Portland Airports Ltd would like a.pdf
sql code for this question below Portland Airports Ltd would like a.pdfdawarhosy
 
simple airline database project..By Amarulla khan, :- amarullakhan8@gmail.com
simple airline database project..By Amarulla khan, :- amarullakhan8@gmail.comsimple airline database project..By Amarulla khan, :- amarullakhan8@gmail.com
simple airline database project..By Amarulla khan, :- amarullakhan8@gmail.comhk2208820
 
Models, controllers and views
Models, controllers and viewsModels, controllers and views
Models, controllers and viewspriestc
 
Mocks Enabling Test-Driven Design
Mocks Enabling Test-Driven DesignMocks Enabling Test-Driven Design
Mocks Enabling Test-Driven DesignAlexandre Martins
 
RCCharter-DataWarehouseQueries
RCCharter-DataWarehouseQueriesRCCharter-DataWarehouseQueries
RCCharter-DataWarehouseQueriesPatrick Seery
 
Architecture As Language
Architecture As LanguageArchitecture As Language
Architecture As LanguageMarkus Voelter
 
Airline reservation system 1
Airline reservation system 1Airline reservation system 1
Airline reservation system 1_faisalkhan
 
Chapter 4 - Air Amadeus - Availability.pptx
Chapter 4 - Air Amadeus - Availability.pptxChapter 4 - Air Amadeus - Availability.pptx
Chapter 4 - Air Amadeus - Availability.pptxJessicaJustine3
 
Air ticket reservation system presentation
Air ticket reservation system presentation Air ticket reservation system presentation
Air ticket reservation system presentation Smit Patel
 
Online Movie Ticket Booking
Online Movie Ticket BookingOnline Movie Ticket Booking
Online Movie Ticket BookingAstha Patel
 
Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)ISAH BABAYO
 
Airline Reservation System - Software Engineering
Airline Reservation System - Software EngineeringAirline Reservation System - Software Engineering
Airline Reservation System - Software EngineeringDrishti Bhalla
 

Similar to identifiaction of classes airline system (20)

Csci 1101 computer science ii assignment 3/tutorialoutlet
Csci 1101 computer science ii assignment 3/tutorialoutletCsci 1101 computer science ii assignment 3/tutorialoutlet
Csci 1101 computer science ii assignment 3/tutorialoutlet
 
JAVA The file being read is called flightdatatxt please in.pdf
JAVA The file being read is called flightdatatxt please in.pdfJAVA The file being read is called flightdatatxt please in.pdf
JAVA The file being read is called flightdatatxt please in.pdf
 
Flight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docxFlight Reservation SystemThe flight reservation system” proje.docx
Flight Reservation SystemThe flight reservation system” proje.docx
 
In this assignment you will practice creating classes and enumeratio.pdf
In this assignment you will practice creating classes and enumeratio.pdfIn this assignment you will practice creating classes and enumeratio.pdf
In this assignment you will practice creating classes and enumeratio.pdf
 
Airline Database Design
Airline Database DesignAirline Database Design
Airline Database Design
 
[Challenge:Future] Database for Airport
[Challenge:Future] Database for Airport[Challenge:Future] Database for Airport
[Challenge:Future] Database for Airport
 
Airline reservation system
Airline reservation systemAirline reservation system
Airline reservation system
 
sql code for this question below Portland Airports Ltd would like a.pdf
sql code  for this question below  Portland Airports Ltd would like a.pdfsql code  for this question below  Portland Airports Ltd would like a.pdf
sql code for this question below Portland Airports Ltd would like a.pdf
 
simple airline database project..By Amarulla khan, :- amarullakhan8@gmail.com
simple airline database project..By Amarulla khan, :- amarullakhan8@gmail.comsimple airline database project..By Amarulla khan, :- amarullakhan8@gmail.com
simple airline database project..By Amarulla khan, :- amarullakhan8@gmail.com
 
Amadeus_Guide.pdf
Amadeus_Guide.pdfAmadeus_Guide.pdf
Amadeus_Guide.pdf
 
Models, controllers and views
Models, controllers and viewsModels, controllers and views
Models, controllers and views
 
Mocks Enabling Test-Driven Design
Mocks Enabling Test-Driven DesignMocks Enabling Test-Driven Design
Mocks Enabling Test-Driven Design
 
RCCharter-DataWarehouseQueries
RCCharter-DataWarehouseQueriesRCCharter-DataWarehouseQueries
RCCharter-DataWarehouseQueries
 
Architecture As Language
Architecture As LanguageArchitecture As Language
Architecture As Language
 
Airline reservation system 1
Airline reservation system 1Airline reservation system 1
Airline reservation system 1
 
Chapter 4 - Air Amadeus - Availability.pptx
Chapter 4 - Air Amadeus - Availability.pptxChapter 4 - Air Amadeus - Availability.pptx
Chapter 4 - Air Amadeus - Availability.pptx
 
Air ticket reservation system presentation
Air ticket reservation system presentation Air ticket reservation system presentation
Air ticket reservation system presentation
 
Online Movie Ticket Booking
Online Movie Ticket BookingOnline Movie Ticket Booking
Online Movie Ticket Booking
 
Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)Airlineppt 160621085220 (1)
Airlineppt 160621085220 (1)
 
Airline Reservation System - Software Engineering
Airline Reservation System - Software EngineeringAirline Reservation System - Software Engineering
Airline Reservation System - Software Engineering
 

Recently uploaded

e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi RajagopalEADTU
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfJerry Chew
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 

Recently uploaded (20)

e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 

identifiaction of classes airline system

  • 1. Identification of Classes model : AirlineReservationSystem CLASSES Class: User attributes userid: string password: string emailid: string name: string loginstatus : Boolean operations VerifyLogin(email : string , password : string) : Boolean = user.allInstances -> exists ( u: user | u.emailid = emailid and u.password = password) end Class : Customer < User attributes userid : string password : string customername : string emailid : string address : string phonenumber : integer creditcardnumber : integer age : integer
  • 2. source : string destination : string operations register() login() : Boolean searchflights() bookflights() searchpackages() bookpackages() searchhotels() bookhotels() browse() end Class: flight() attributes flightnumber : integer noofseats : integer source : string destination :string end Class: hotel() attributes hotelname : string hotelid : integer noofrooms: integer
  • 3. end ASSOCIATIONS -- This association is being written to indicate that there should be some number of seats on the plane greater than zero. association plane seats between Flight[1] role belongto Seat[10..300] role has end -- A customer can book any no.of seats on the flight, depending upon the capacity of the flight. Association customer and seats between Customer[1] role bookedby Seat[1..*] role books End -- A customer should be seated in the flight in only one seat. Association customerseated between Customer[1] role holds Seat[1] role isheld End ---- CONSTRAINTS -- This constraint is written to indicate that each customer who registers to the Airline Reservation system website should have a unique id. Context user inv uniqueid:
  • 4. user.allInstances -> forAll( u1,u2 | u1 <> u2 implies u1.userid <> u2.userid) end --This constraint is written to indicate that each user will have a unique e-mail id. Context user inv uniqueemail: user.allInstances -> forAll( us1,us2 | us1 <> us2 implies us1.emailid <> us2.emailid) end -- This constraint is written to indicate that each customer’s e-mail id, should be unique Context customer inv uniqueemail: customer.allInstances -> forAll(c1,c2| c1<>c2 implies c1.emailid <> c2.emailid) end -- This constraint is written to indicate that the number of seats in the flight should be greater than zero Context flight inv noofseats: flight.allInstances -> forAll ( f1 | f1.nooseats >= 1) end --This constraint is written to ensure that no two flights have the same number. Context flight Inv uniquename: flight.allInstances -> forAll ( f1,f2| f1<>f2 implies f1.flightnumber <> f2.flightnumber) end --This constraint is written to ensure that a hotel can have multiple rooms. Context Hotel Inv hotelrooms:
  • 5. Hotel.allInstances -> forAll(h1| (h1.noofrooms ) ->size() >=1) end