swisseph
クラス TCPlanetPlanet

java.lang.Object
  上位を拡張 swisseph.TransitCalculator
      上位を拡張 swisseph.TCPlanetPlanet
すべての実装されたインタフェース:
java.io.Serializable

public class TCPlanetPlanet
extends TransitCalculator
implements java.io.Serializable

This class implements a TransitCalculator for two planets in relative positions or speeds to each other.

You would create a TransitCalculator from this class and use the SwissEph.getTransit() methods to actually calculate a transit, e.g.:

 SwissEph sw = new SwissEph(...);
 ...
 int flags = SweConst.SEFLG_SWIEPH
             SweConst.SEFLG_TRANSIT_LATITUDE |
             SweConst.SEFLG_TRANSIT_SPEED;
 boolean backwards = false;
 
 TransitCalculator tc = new TCPlanetPlanet(
                                  sw,
                                  SweConst.SE_MERCURY,
                                  SweConst.SE_VENUS,
                                  flags,
                                  0.48);
 ...
 double nextTransitUT = sw.getTransitUT(tc, jdUT, backwards);
 
This would calculate the (UT-) date, when Mercury and Venus will have a very different latitudinal speed (and Mercury the higher speed of both...).

関連項目:
直列化された形式

フィールドの概要
 
クラス swisseph.TransitCalculator から継承されたフィールド
rollover, rolloverVal
 
コンストラクタの概要
TCPlanetPlanet(SwissEph sw, int pl1, int pl2, int flags, double offset)
          Creates a new TransitCalculator for relative transits of two different planets to each other with the option for transits over longitudes, latitudes, distance or the speed in any of these directions in the geocentric or topocentric coordinate system, and in tropical or sidereal zodiac system, both with the sum and difference of both planets positions and speeds.
 
メソッドの概要
protected  double calc(double jdET)
           
protected  double getDegreePrecision(double jd)
           
protected  double getMaxSpeed()
           
protected  double getMinSpeed()
           
 java.lang.Object[] getObjectIdentifiers()
          This returns all the "object identifiers s" used in this TransitCalculator.
 double getOffset()
          This returns the transit degree or other transit value of the relative position or speed of the two planets.
 boolean getRollover()
           
protected  double getTimePrecision(double degPrec)
           
 void setOffset(double value)
          This sets the transit degree or other transit value for the difference or sum of the positions or speeds of both planets.
 java.lang.String toString()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

TCPlanetPlanet

public TCPlanetPlanet(SwissEph sw,
                      int pl1,
                      int pl2,
                      int flags,
                      double offset)
Creates a new TransitCalculator for relative transits of two different planets to each other with the option for transits over longitudes, latitudes, distance or the speed in any of these directions in the geocentric or topocentric coordinate system, and in tropical or sidereal zodiac system, both with the sum and difference of both planets positions and speeds.

パラメータ:
sw - A SwissEph object, if you have one available. Can be null.
pl1 - The first planet. Valid planets are SweConst.SE_SUN up to SweConst.SE_INTP_PERG with the exception of SweConst.SE_EARTH.
pl2 - The second planet that will be transited by the first planet.
flags - The calculation type flags (SweConst.SEFLG_TRANSIT_LONGITUDE, SweConst.SEFLG_TRANSIT_LATITUDE or SweConst.SEFLG_TRANSIT_DISTANCE in conjunction with SweConst.SEFLG_TRANSIT_SPEED for transits over a speed value and SweConst.SEFLG_YOGA_TRANSIT to calculate for the SUM of the two positions or speeds instead of the difference). Also flags modifying the basic planet calculations, these are SweConst.SEFLG_TOPOCTR, SweConst.SEFLG_HELCTR and SweConst.SEFLG_SIDEREAL, plus the (optional) ephemeris flags SweConst.SEFLG_MOSEPH, SweConst.SEFLG_SWIEPH or SweConst.SEFLG_JPLEPH.
offset - This is an offset to the exact conjunction transit point. E.g., when the offset is 180 for longitude calculations, you will get the dates, when the two planets are opposite to each other. Note: The offset is related to the FIRST planet, so an offset value of 30 degree will find the transit points, when the FIRST planet will be 30 degrees behind the the position of the second planet.
関連項目:
TCPlanet.TCPlanet(SwissEph, int, int, double), SweConst.SEFLG_TRANSIT_LONGITUDE, SweConst.SEFLG_TRANSIT_LATITUDE, SweConst.SEFLG_TRANSIT_DISTANCE, SweConst.SEFLG_TRANSIT_SPEED, SweConst.SEFLG_YOGA_TRANSIT, SweConst.SEFLG_TOPOCTR, SweConst.SEFLG_HELCTR, SweConst.SEFLG_SIDEREAL, SweConst.SEFLG_MOSEPH, SweConst.SEFLG_SWIEPH, SweConst.SEFLG_JPLEPH
メソッドの詳細

getRollover

public boolean getRollover()
定義:
クラス TransitCalculator 内の getRollover
戻り値:
Returns true, if one position value is identical to another position value. E.g., 360 degree is identical to 0 degree in circle angles.
関連項目:
TransitCalculator.rolloverVal

setOffset

public void setOffset(double value)
This sets the transit degree or other transit value for the difference or sum of the positions or speeds of both planets. It will be used on the next call to getTransit().

定義:
クラス TransitCalculator 内の setOffset
パラメータ:
value - The offset value.
関連項目:
getOffset()

getOffset

public double getOffset()
This returns the transit degree or other transit value of the relative position or speed of the two planets.

定義:
クラス TransitCalculator 内の getOffset
戻り値:
The current offset value.
関連項目:
setOffset(double)

getObjectIdentifiers

public java.lang.Object[] getObjectIdentifiers()
This returns all the "object identifiers s" used in this TransitCalculator. It may be the planet number or planet numbers, when calculating planets.

オーバーライド:
クラス TransitCalculator 内の getObjectIdentifiers
戻り値:
An array of identifiers identifying the calculated objects.

getMaxSpeed

protected double getMaxSpeed()
定義:
クラス TransitCalculator 内の getMaxSpeed

getMinSpeed

protected double getMinSpeed()
定義:
クラス TransitCalculator 内の getMinSpeed

calc

protected double calc(double jdET)
定義:
クラス TransitCalculator 内の calc

getTimePrecision

protected double getTimePrecision(double degPrec)
定義:
クラス TransitCalculator 内の getTimePrecision

getDegreePrecision

protected double getDegreePrecision(double jd)
定義:
クラス TransitCalculator 内の getDegreePrecision

toString

public java.lang.String toString()
オーバーライド:
クラス java.lang.Object 内の toString