SEG2105-Olympus-Android-App.../ProjectUML.ump

90 lines
1.2 KiB
Text
Raw Normal View History

2018-11-13 21:07:24 +00:00
class UserType
{
firstname;
lastname;
username;
password;
}
class HomeOwner
{
isA UserType;
}
class ServiceProvider
{
int[] availabilities;
address;
int phonenumber;
companyname;
boolean licensed;
description;
2018-11-13 21:07:24 +00:00
isA UserType;
}
class Admin
{
isA UserType;
2018-11-20 16:38:30 +00:00
1 -- * Service creates;
2018-11-13 21:07:24 +00:00
}
class Service
{
name;
double rate;
* -- * ServiceProvider;
}
2018-11-13 21:07:24 +00:00
2018-11-20 02:14:30 +00:00
class Booking
{
int starth;
int startmin;
int endh;
int endmin;
int day;
int month;
int year;
2018-11-20 02:36:12 +00:00
status;
2018-11-20 02:24:13 +00:00
int rating;
* -- 1 HomeOwner;
* -- 1 ServiceProvider;
* -- 1 Service;
2018-11-20 02:14:30 +00:00
}
2018-11-13 21:07:24 +00:00
class UserType
{
position 475 69 141 109;
}
class HomeOwner
{
position 109 233 109 41;
}
class ServiceProvider
{
position 849 239 173 126;
}
class Admin
{
position 490 236 109 41;
2018-11-20 16:32:08 +00:00
position.association Admin__Service 66,41 0,52;
2018-11-20 16:38:30 +00:00
position.association Admin__Service:create 109,28 0,60;
2018-11-13 21:07:24 +00:00
}
class Service
{
2018-11-20 16:38:30 +00:00
position 849 474 112 75;
position.association Service__ServiceProvider 65,0 65,143;
2018-11-20 02:24:13 +00:00
}
2018-11-20 02:14:30 +00:00
class Booking
{
2018-11-20 02:24:13 +00:00
position 99 433 178 211;
2018-11-20 02:14:30 +00:00
position.association Booking__HomeOwner 62,0 54,41;
2018-11-20 02:24:13 +00:00
position.association Booking__ServiceProvider 178,50 0,94;
2018-11-20 16:38:30 +00:00
position.association Booking__Service 178,120 0,68;
2018-11-20 02:14:30 +00:00
}