Inleveropdracht 2
b.s.a.odijk | October 25, 2019
Customer ResEnum = {phone, online] Vehicle
Reservation
firstName: String CarTypeEnum = {Passenger license plate: String
lastName: String reservation ID: Integer car, truck, van} vehicle identification numb
date of birth: Date reservationType: ResEnum
Is Sent > 0..1 ownRisk: Decimal
drivinglicense: Boolean carType: CarTypeEnum
1..1 0..* amouth of kilowatts: Integ
mailadress: String date reservation: Date
buildyear: Date
phonenumber: Integer Makes > start rent date: Date 1..1 Is valid for > 1..1
address: String end rent date: Date
1,1 calculateAgeofCar (): Inte
calculateDurationRent (): Integer
calculateBasevalue (): De
calculateAge (): Integer
1..1 1..1
< Responsible for
0..1
< Produces
Damage
unrepaired superficial damage: Decimal
amount past repairs: Integer
total damage: Decimal 1..1
Invoice
calculateDamage (): Decimal
0..1 invoice ID: Integer
Passenger Car Van
invoice date: Date
customer type: CustomerEnum
PostalMail seats: Integer seats: Integer
mileage before rent: Integer
mileage afte rent: Integer doors: Integer doors: Integer
CustomerEnum = {private, manual: Boolean
adress sender: String damage: Decimal manual: Boolean
corporate} airconditioning: Boolean
receiver: String airconditioning: Boolean
text: String age of vehicle: Integer age of vehicle: Integer
calculateTraveledKilometres (): Integer mileage: Integer mileage: Integer
calculatePriceTotal (): Decimal thickness of tyre surface:
Constraint: Invoices are either presented in createPostalMail(): PostalMail
person (in case of private customers) or are
sent by postal mail (in case of corporate calculateBasevalue (): Decimal calculateBasevalue (): De
customers)
b.s.a.odijk | October 25, 2019
Customer ResEnum = {phone, online] Vehicle
Reservation
firstName: String CarTypeEnum = {Passenger license plate: String
lastName: String reservation ID: Integer car, truck, van} vehicle identification numb
date of birth: Date reservationType: ResEnum
Is Sent > 0..1 ownRisk: Decimal
drivinglicense: Boolean carType: CarTypeEnum
1..1 0..* amouth of kilowatts: Integ
mailadress: String date reservation: Date
buildyear: Date
phonenumber: Integer Makes > start rent date: Date 1..1 Is valid for > 1..1
address: String end rent date: Date
1,1 calculateAgeofCar (): Inte
calculateDurationRent (): Integer
calculateBasevalue (): De
calculateAge (): Integer
1..1 1..1
< Responsible for
0..1
< Produces
Damage
unrepaired superficial damage: Decimal
amount past repairs: Integer
total damage: Decimal 1..1
Invoice
calculateDamage (): Decimal
0..1 invoice ID: Integer
Passenger Car Van
invoice date: Date
customer type: CustomerEnum
PostalMail seats: Integer seats: Integer
mileage before rent: Integer
mileage afte rent: Integer doors: Integer doors: Integer
CustomerEnum = {private, manual: Boolean
adress sender: String damage: Decimal manual: Boolean
corporate} airconditioning: Boolean
receiver: String airconditioning: Boolean
text: String age of vehicle: Integer age of vehicle: Integer
calculateTraveledKilometres (): Integer mileage: Integer mileage: Integer
calculatePriceTotal (): Decimal thickness of tyre surface:
Constraint: Invoices are either presented in createPostalMail(): PostalMail
person (in case of private customers) or are
sent by postal mail (in case of corporate calculateBasevalue (): Decimal calculateBasevalue (): De
customers)