LocalCatObject.java
955 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
52
53
54
package osp;
import java.awt.geom.Point2D;
import jsky.coords.WorldCoords;
/**
* Class to import objects from local catalog
*
* @author elodie
*
*/
public class LocalCatObject {
private Point2D.Double position; // In galactic coord
WorldCoords wcObj;
String from, id;
int priority;
public LocalCatObject(String idObj, String ra, String dec,int prior, String fr)
{
id=idObj;
wcObj= new WorldCoords(ra,dec);
position=new Point2D.Double(wcObj.getRaDeg(),wcObj.getDecDeg());
from=fr;
priority=prior;
}
public Point2D.Double getPosition() {
return position;
}
public void setPosition(Point2D.Double objPosition) {
this.position = objPosition;
}
public int getPriority() {
// TODO Auto-generated method stub
return priority;
}
public String getId() {
// TODO Auto-generated method stub
return id;
}
public String getProperty() {
// TODO Auto-generated method stub
return from;
}
}