Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ajout de variables membres

  • Loading branch information...
commit 0800611c10375790b91eac85c4962b63a476f23e 1 parent dbe2089
Diego999 authored
Showing with 41 additions and 3 deletions.
  1. +41 −3 projetp1/src/com/github/projetp1/CelestialObject.java
View
44 projetp1/src/com/github/projetp1/CelestialObject.java
@@ -1,5 +1,5 @@
/**=====================================================================*
- | This file dDeclares the following classes:
+ | This file declares the following classes:
| CelestialObject
|
| Description of the CelestialObject DataBase :
@@ -37,6 +37,8 @@
private double dColorIndex;
private double dXYZ[] = new double[3];
private double dVXYZ[] = new double[3];
+ private double dXReal;
+ private double dYReal;
/**
* CelestialObject
@@ -100,7 +102,7 @@ public CelestialObject(int _id,int _StarId,int _HIP,int _HD,int _HR,int _Gliese,
*/
public void getHeader()
{
- System.out.println("ID\tStarID\tHIP\tHD\tHR\tGliese\tBayerFlamsteed\tProperName\tRA\tDec\tDistance\tPMRA\tPMDec\tRV\tMag\tAbsMag\tSpectrum\tColorIndex\tX\tY\tZ\tVX\tVY\tVZ");
+ System.out.println("ID\tStarID\tHIP\tHD\tHR\tGliese\tBayerFlamsteed\tProperName\tRA\tDec\tDistance\tPMRA\tPMDec\tRV\tMag\tAbsMag\tSpectrum\tColorIndex\tX\tY\tVX\tVY\tVZ");
}
/**
* getInfos
@@ -274,7 +276,7 @@ public String getSpectrum() {
public double getColorIndex() {
return this.dColorIndex;
}
-
+
/**
* getXYZ
* getter of the private value
@@ -292,5 +294,41 @@ public double getColorIndex() {
public double[] getVXYZ() {
return this.dVXYZ;
}
+
+ /**
+ * getXReal
+ * getter of the private value
+ * @return the private variable
+ */
+ public double getXReal() {
+ return this.dXReal;
+ }
+
+ /**
+ * getYReal
+ * getter of the private value
+ * @return the private variable
+ */
+ public double getYReal() {
+ return this.dYReal;
+ }
+
+ /**
+ * setXReal
+ * setter of the private value
+ * @return the private variable
+ */
+ public void setXReal(double x) {
+ this.dXReal = x;
+ }
+
+ /**
+ * setYReal
+ * setter of the private value
+ * @return the private variable
+ */
+ public void setYReal(double y) {
+ this.dYReal = y;
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.