public class Aggregation extends Object implements Serializable, Cloneable, Comparable<Aggregation>
| Modifier and Type | Field and Description |
|---|---|
private Point2D |
center
Location (on the CCD) where star was detected.
|
private double |
mag
Instrumental magnitude, decimal logarithm time 2.5 of flux.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
Aggregation(Point2D c,
double m) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Aggregation that)
Compares two raw stars.
|
boolean |
equals(Object other)
Returns true if coordinates and magnitude are the same.
|
Point2D |
getCenter()
Returns the pixel coordinates of the star center.
|
double |
getInstrumentalMagnitude()
Returns the instrumental magnitude, a logarithmic measure of the
brightness.
|
private void |
readObject(ObjectInputStream stream)
On deserialization, first read the hidden object definitions, then the
Position of the center.
|
String |
toString()
Prints the coordinates and the magnitude, separated by spaces.
|
private void |
writeObject(ObjectOutputStream stream)
We customize object serialization.
|
private static final long serialVersionUID
private transient Point2D center
private final double mag
public Aggregation(Point2D c, double m)
public Point2D getCenter()
Point2D object to support non-integer positions.public double getInstrumentalMagnitude()
public String toString()
public boolean equals(Object other)
public int compareTo(Aggregation that)
compareTo in interface Comparable<Aggregation>private void writeObject(ObjectOutputStream stream) throws IOException
Point2D is strangely not serializable.IOExceptionprivate void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundException