-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDishwasher.h
More file actions
116 lines (94 loc) · 2.66 KB
/
Dishwasher.h
File metadata and controls
116 lines (94 loc) · 2.66 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/********************************************************************************************
* @file Dishwasher.h
*
* @brief Prototypes for the derived class Dishwasher of a base class called Home_Appliance
* and a Dishwasher as a Home Appliance
*
* @author Aysenur Bolat
*
* @version V1.0
*
* @date 28. December 2018
*********************************************************************************************/
#ifndef DISHWASHER_H
#define DISHWASHER_H
#include <stdexcept>
#include "Home_Appliance.h"
#include "Engine.h"
using namespace std;
/** class Dishwasher
* brief A derived class of a base class called home appliance
* details This derived class includes special properties for Dishwasher
* in addition to common properties of a home appliance
*/
class Dishwasher : public Home_Appliance
{
public:
/// create a Dishwasher class
Dishwasher(string, int , int, int, string,int,int,int,int, Engine &, int);
/// destructs the Dishwasher class
~Dishwasher();
/**
\brief Set water consumption value liters
\return void
*/
void setWaterConsumption( int );
/**
\brief Set number of cleaning programs
\return void
*/
void setNumberOfCleaningPrograms( int );
/**
\brief Set capasity of dishes
\return void
*/
void setCapacityOfDishes( int );
/**
\brief Set number of racks
\return void
*/
void setNumberOfRacks( int );
/**
\brief Set number of dishwashers in the inventory
\return void
*/
void setNumberOfProduct(int);
/**
\brief Get water consumption value liters
\return Water consumption in liters in type of integer
*/
int getWaterConsumption() const;
/**
\brief Get number of cleaning programs
\return Number of cleaning programs in type of integer
*/
int getNumberOfCleaningPrograms() const;
/**
\brief Get capasity of dishes
\return Capasity of dishes in type of integer
*/
int getCapacityOfDishes() const;
/**
\brief Get number of racks of dishwasher
\return Number of racks in type of integer
*/
int getNumberOfRacks() const;
/**
\brief Get number of dishwashers in the inventory
\return Number of dishwashers in type of integer
*/
int getNumberOfProduct()const;
/**
\brief Print properties of dishwasher
\return void
*/
void printProperties() const;
protected:
int waterConsumption;
int numberOfCleaningPrograms;
int capacityOfDishes;
int numberOfRacks;
int numberOfProduct;
Engine dishwasherEngine;
};
#endif