forked from skooter500/OOP-2018-2019
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStar.java
114 lines (95 loc) · 1.96 KB
/
Star.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
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
package ie.dit;
import processing.data.TableRow;
public class Star
{
private String displayName;
private int hab;
private float xG;
private float yG;
private float zG;
private float absMag;
public void setDisplayName(String displayName)
{
this.displayName = displayName;
}
public String getDisplayName()
{
return displayName;
}
/**
* @return the hab
*/
public int getHab() {
return hab;
}
/**
* @param hab the hab to set
*/
public void setHab(int hab) {
this.hab = hab;
}
/**
* @return the xG
*/
public float getxG() {
return xG;
}
/**
* @param xG the xG to set
*/
public void setxG(float xG) {
this.xG = xG;
}
/**
* @return the yG
*/
public float getyG() {
return yG;
}
/**
* @param yG the yG to set
*/
public void setyG(float yG) {
this.yG = yG;
}
/**
* @return the zG
*/
public float getzG() {
return zG;
}
/**
* @param zG the zG to set
*/
public void setzG(float zG) {
this.zG = zG;
}
/**
* @return the absMag
*/
public float getAbsMag() {
return absMag;
}
/**
* @param absMag the absMag to set
*/
public void setAbsMag(float absMag) {
this.absMag = absMag;
}
public String toString()
{
return displayName + "\t" + hab + "\t" + xG + "\t" + yG + "\t" + zG + "\t" + absMag;
}
public Star(TableRow row)
{
displayName = row.getString("Display Name");
hab = row.getInt("Hab?");
xG = row.getFloat("Xg");
yG = row.getFloat("Yg");
zG = row.getFloat("Zg");
absMag = row.getFloat("AbsMag");
}
public Star()
{
}
}