-
Notifications
You must be signed in to change notification settings - Fork 0
/
Facility.java
58 lines (49 loc) · 998 Bytes
/
Facility.java
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
public class Facility
{
private int facilityID;
private String facilityName;
private double pricePerHour;
private String decommissionedUntilDate;
private boolean active;
public Facility(int ID, String name, double pricePH)
{
facilityID = ID;
facilityName = name;
pricePerHour = pricePH;
decommissionedUntilDate = "0000-00-00";
active = true;
}
public int getFacilityID()
{
return facilityID;
}
public String getName()
{
return facilityName;
}
public double getPricePerHour()
{
return pricePerHour;
}
public String getDecommissionUntilDate()
{
return decommissionedUntilDate;
}
public boolean getActive()
{
return active;
}
public void setDecommissionUntilDate(String untilDate)
{
decommissionedUntilDate = untilDate;
}
public void setActive(boolean a)
{
active = a;
}
public String toString()
{
String s = facilityID + "," + facilityName + "," + pricePerHour + "," + decommissionedUntilDate + "," + active;
return s;
}
}