org.rr0.is.presentation.view.report.applet.sky
Class SkyModel

org.rr0.is.presentation.view.report.applet.draw.DrawModel
  |
  +--org.rr0.is.presentation.view.report.applet.sky.SkyModel
Direct Known Subclasses:
UFOSceneModel

public class SkyModel
extends DrawModel

Model of a sky at a given date, location (latitude+longitude), azimut and altitude.

Author:
Jerôme Beau
Version: 29 nov. 2003 14:33:15

Field Summary
 private doublealtitude
           
 private doubleazimut
           
 final static doubleDEGREES_89
           
 final static doubleDEGREES_TO_RADIANS
           
 private double[]ex
           
 private double[]ey
           
 private doublefactor
           
 private doublelambda
          Longitude
 private GregorianCalendarlastTime
           
 private doublelatitude
           
 private doublelongitude
           
 private double[]m
           
 private final int[]monthDays
           
 private doublephi
          Latitude
 private Planet[]PLANETS
           
 (package private) final static doubleRURAL_VISIBLE_MAGNITUDE
           
 private double[]s
           
 (package private) final CelestialBody[]STARS
           
 (package private) final static doubleTELESCOPE_VISIBLE_MAGNITUDE
           
 private doubletheta
          Sideral time
 private final static doubleTWO_PI
           
 (package private) final static doubleURBAN_VISIBLE_MAGNITUDE
           
 private double[]w
           
 private double[]z
           

Method Summary
 (package private) voidcomputeMatrix()
           
 (package private) longdateFortl(GregorianCalendar currentTime)
           
 doubleexScalarProduct(double[] vector)
           
 doubleeyScalarProduct(double[] vector)
           
 doublegetAltitude()
           
 doublegetFactor()
           
 doublegetLatitude()
           
 doublegetLongitude()
           
 intgetOffset()
           
 Planet[]getPlanets()
           
 CelestialBodygetStar(int mouseX, int mouseY, int xCenter, int yCenter)
           
 (package private) doublemontant(double[] vector)
           
 doublemScalarProduct(double[] vector)
           
 (package private) doublescalarProduct(double[] vector1, double[] vector2)
          Compute the scalar product of 2 vectors.
 voidsetAltitude(int altitudeDegrees)
           
 voidsetAs(int as)
           
 voidsetAzimut(int someAzimut)
           
 voidsetLatitude(double latitudeDegrees)
           
 voidsetLongitude(double longitudeDegrees)
           
 voidsetTime(GregorianCalendar time)
           
 (package private) doublesideralTime(GregorianCalendar someCalendar, int gmtHour, double geoLongitude)
           
 StringtoString()
           
 (package private) double[]vectorialProduct(double[] vector1, double[] vector2)
           

Methods inherited from class org.rr0.is.presentation.view.report.applet.draw.DrawModel
addEvent, createShape, getEvent, getEvents, getEvents, getSelectedEvent, getShape, getTimeZone, removeEventsFrom, setTimeZone

Field Detail

altitude

private double altitude

azimut

private double azimut

DEGREES_89

public final static double DEGREES_89

DEGREES_TO_RADIANS

public final static double DEGREES_TO_RADIANS

ex

private double[] ex

ey

private double[] ey

factor

private double factor

lambda

private double lambda
Longitude

lastTime

private GregorianCalendar lastTime

latitude

private double latitude

longitude

private double longitude

m

private double[] m

monthDays

private final int[] monthDays

phi

private double phi
Latitude

PLANETS

private Planet[] PLANETS

RURAL_VISIBLE_MAGNITUDE

final static double RURAL_VISIBLE_MAGNITUDE

s

private double[] s

STARS

final CelestialBody[] STARS

TELESCOPE_VISIBLE_MAGNITUDE

final static double TELESCOPE_VISIBLE_MAGNITUDE

theta

private double theta
Sideral time

TWO_PI

private final static double TWO_PI

URBAN_VISIBLE_MAGNITUDE

final static double URBAN_VISIBLE_MAGNITUDE

w

private double[] w

z

private double[] z
Method Detail

computeMatrix

void computeMatrix()

dateFortl

long dateFortl(GregorianCalendar currentTime)

exScalarProduct

public double exScalarProduct(double[] vector)

eyScalarProduct

public double eyScalarProduct(double[] vector)

getAltitude

public double getAltitude()

getFactor

public double getFactor()

getLatitude

public double getLatitude()

getLongitude

public double getLongitude()

getOffset

public int getOffset()

getPlanets

public Planet[] getPlanets()

getStar

public CelestialBody getStar(int mouseX, int mouseY, int xCenter, int yCenter)

montant

double montant(double[] vector)

mScalarProduct

public double mScalarProduct(double[] vector)

scalarProduct

double scalarProduct(double[] vector1, double[] vector2)
Compute the scalar product of 2 vectors.
Parameters:
vector1 The first vector
vector2 The second vector
Returns: The cosinus of the angle between the 2 vectors (0 if the vectors are orthogonal).

setAltitude

public void setAltitude(int altitudeDegrees)

setAs

public void setAs(int as)

setAzimut

public void setAzimut(int someAzimut)

setLatitude

public void setLatitude(double latitudeDegrees)

setLongitude

public void setLongitude(double longitudeDegrees)

setTime

public void setTime(GregorianCalendar time)

sideralTime

double sideralTime(GregorianCalendar someCalendar, int gmtHour, double geoLongitude)

toString

public String toString()

vectorialProduct

double[] vectorialProduct(double[] vector1, double[] vector2)

Association Links

to Class java.util.GregorianCalendar

to Class org.rr0.is.presentation.view.report.applet.sky.CelestialBody

to Class org.rr0.is.presentation.view.report.applet.sky.Planet