-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLaptop.java
63 lines (51 loc) · 1.3 KB
/
Laptop.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
59
60
61
62
63
public class Laptop {
private int hopDistance;
private int laptopWirelessNumber;
private double x;
private double y;
private double Radius;
public Laptop() {
x = 0;
y = 0;
Radius = 0.666;
laptopWirelessNumber = 0;
hopDistance = 0;
}
public Laptop(double newx, double newy, double newRadius, int newlaptopWirelessNumber, int newHopDistance) {
hopDistance = newHopDistance;
laptopWirelessNumber = newlaptopWirelessNumber;
x = newx;
y = newy;
Radius = newRadius;
}
public int getHopDistance() {
return hopDistance;
}
public void setHopDistance(int hopDistance) {
this.hopDistance = hopDistance;
}
public int getlaptopWirelessNumber() {
return laptopWirelessNumber;
}
public void setlaptopWirelessNumber(int laptopWirelessNumber) {
this.laptopWirelessNumber = laptopWirelessNumber;
}
public double getRadius() {
return Radius;
}
public void setRadius(double radius) {
Radius = radius;
}
public double getY() {
return y;
}
public void setY(double y) {
this.y = y;
}
public double getX() {
return x;
}
public void setX(double x) {
this.x = x;
}
}