-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWiFi.java
More file actions
51 lines (43 loc) · 1018 Bytes
/
WiFi.java
File metadata and controls
51 lines (43 loc) · 1018 Bytes
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
/** WiFi sub-class of WirelessNetwork.
* @author Adam Bostwick
* @version 11/08/2019
*/
public class WiFi extends WirelessNetwork
//implements Comparable<WiFi>
{
private double modemCost;
/** constructor.
* @param nameIn input for name
* @param bandwidthIn input for bandwidth
* @param fixedCostIn input for fixedCost
* @param modemCostIn input for modemCost
*/
public WiFi(String nameIn, double bandwidthIn, double fixedCostIn,
double modemCostIn)
{
super(nameIn, bandwidthIn, fixedCostIn);
modemCost = modemCostIn;
}
/** getModemCost.
* @return true
*/
public double getModemCost()
{
return modemCost;
}
/** setModemCost.
* @param modemCostIn input for modemCost
*/
public void setModemCost(double modemCostIn)
{
modemCost = modemCostIn;
}
/** monthlyCost.
* @return true
*/
public double monthlyCost()
{
double total = fixedCost + modemCost;
return total;
}
}