-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSlot.cpp
51 lines (50 loc) · 815 Bytes
/
Slot.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// Created by sereno on 30-10-2022.
//
#include "Slot.h"
/**
* Construtor pré-definido dos slots.
*/
Slot::Slot(){
weekday="";
startHour=0.0;
duration=0.0;
type="";
}
/**
* Construtor parametrizado dos slots.
* @param wd
* @param sh
* @param d
* @param tp
*/
Slot::Slot(string wd,double sh,double d,string tp){
weekday=wd;
startHour=sh;
duration=d;
type=tp;
}
string Slot::get_WeekDay(){
return weekday;
}
double Slot::get_StartHour() {
return startHour;
}
double Slot::get_Duration(){
return duration;
}
string Slot::get_Type(){
return type;
}
void Slot::set_WeekDay(string wd){
weekday=wd;
}
void Slot::set_StartHour(double sh){
startHour=sh;
}
void Slot::set_Duration(double d){
duration=d;
}
void Slot::set_Type(string tp){
type=tp;
}