LocalCatObject.java 955 Bytes
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;
	}
	
		
}