public class TCHouses extends TransitCalculator implements java.io.Serializable
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_TRANSIT_LONGITUDE; boolean backwards = false; TransitCalculator tc = new TCHouses( sw, SweConst.SE_ASC, SweConst.SE_HSYS_PLACIDUS, 52.22, 11.0, 0 flags, 30); ... double nextTransitUT = sw.getTransitUT(tc, jdUT, backwards);This would calculate the (UT-) date, when the ascendant is at 30 degree longitude next time.
rollover, rolloverVal
Constructor and Description |
---|
TCHouses(SwissEph sw,
int houseObject,
int hsys,
double geolon,
double geolat,
int flags,
double offset)
Creates a new TransitCalculator for transits of any house cusps or
ascendant, mc, armc, vertex, equasc ("equatorial ascendant"),
coasc1 ("co-ascendant" (W.
|
Modifier and Type | Method and Description |
---|---|
protected double |
calc(double jd) |
protected double |
getDegreePrecision(double jd) |
double |
getLatitude()
This returns the latitudinal position used by the house
calculations.
|
double |
getLongitude()
This returns the longitudinal position used by the house
calculations.
|
protected double |
getMaxSpeed() |
protected double |
getMinSpeed() |
java.lang.Object[] |
getObjectIdentifiers()
This returns the object number as an Integer object.
|
double |
getOffset()
This returns the degree or other value of the position or speed of
the planet to transit.
|
boolean |
getRollover() |
protected double |
getTimePrecision(double degPrec) |
void |
setGeopos(double geolon,
double geolat)
This sets the longitude and latitude for the house calculations.
|
void |
setOffset(double value)
This sets the degree or other value for the position or speed of
the planet to transit.
|
java.lang.String |
toString() |
checkIdenticalResult, checkResult, getMaxOffset, getMinOffset, getNextJD, getRolloverVal
public TCHouses(SwissEph sw, int houseObject, int hsys, double geolon, double geolat, int flags, double offset)
sw
- A SwissEph object, if you have one available. May be null,
if you don't use sidereal mode.houseObject
- The house object to be transited. One of:
SweConst.SE_HOUSE1
...
SweConst.SE_HOUSE12
SweConst.SE_ASC
SweConst.SE_MC
SweConst.SE_ARMC (sidereal time)
SweConst.SE_VERTEX,
SweConst.SE_EQUASC
SweConst.SE_COASC1
SweConst.SE_COASC2
SweConst.SE_POLASC
hsys
- The house system to use. Choose one from:
SweConst.SE_HSYS_PLACIDUS
SweConst.SE_HSYS_KOCH
SweConst.SE_HSYS_PORPHYRIUS
SweConst.SE_HSYS_REGIOMONTANUS
SweConst.SE_HSYS_CAMPANUS
SweConst.SE_HSYS_EQUAL (cusp 1 is ascendant)
SweConst.SE_HSYS_VEHLOW (asc. in middle of house 1)
SweConst.SE_HSYS_MERIDIAN (axial rotation system/ Meridian houses)
SweConst.SE_HSYS_HORIZONTAL (azimuthal or horizontal system)
SweConst.SE_HSYS_POLICH_PAGE ('topocentric' system)
SweConst.SE_HSYS_ALCABITIUS
// * SweConst.SE_HSYS_GAUQUELIN_SECTORS
SweConst.SE_HSYS_MORINUS
SweConst.SE_HSYS_KRUSINSKI
SweConst.SE_HSYS_WHOLE_SIGN
geolon
- Longitude for house calculationgeolat
- Latitude for house calculationflags
- The calculation type flags (SweConst.SEFLG_TRANSIT_LONGITUDE
only). Optionally flags modifying the basic planet calculations, this is
SweConst.SEFLG_SIDEREAL only.offset
- This is the desired transit degree.TCPlanetPlanet.TCPlanetPlanet(SwissEph, int, int, int, double)
,
TCPlanet.TCPlanet(SwissEph, int, int, double)
,
SweConst.SEFLG_TRANSIT_LONGITUDE
,
SweConst.SEFLG_SIDEREAL
,
SweConst.SE_HOUSE1
,
SweConst.SE_HOUSE2
,
SweConst.SE_HOUSE3
,
SweConst.SE_HOUSE4
,
SweConst.SE_HOUSE5
,
SweConst.SE_HOUSE6
,
SweConst.SE_HOUSE7
,
SweConst.SE_HOUSE8
,
SweConst.SE_HOUSE9
,
SweConst.SE_HOUSE10
,
SweConst.SE_HOUSE11
,
SweConst.SE_HOUSE12
,
SweConst.SE_ASC
,
SweConst.SE_MC
,
SweConst.SE_ARMC
,
SweConst.SE_VERTEX
,
SweConst.SE_EQUASC
,
SweConst.SE_COASC1
,
SweConst.SE_COASC2
,
SweConst.SE_POLASC
,
SweConst.SE_HSYS_PLACIDUS
,
SweConst.SE_HSYS_KOCH
,
SweConst.SE_HSYS_PORPHYRIUS
,
SweConst.SE_HSYS_REGIOMONTANUS
,
SweConst.SE_HSYS_CAMPANUS
,
SweConst.SE_HSYS_EQUAL
,
SweConst.SE_HSYS_VEHLOW
,
SweConst.SE_HSYS_MERIDIAN
,
SweConst.SE_HSYS_HORIZONTAL
,
SweConst.SE_HSYS_POLICH_PAGE
,
// * @see swisseph.SweConst#SE_HSYS_GAUQUELIN_SECTORS
,
SweConst.SE_HSYS_MORINUS
,
SweConst.SE_HSYS_KRUSINSKI
,
SweConst.SE_HSYS_WHOLE_SIGN
public boolean getRollover()
getRollover
in class TransitCalculator
TransitCalculator.rolloverVal
public void setOffset(double value)
setOffset
in class TransitCalculator
value
- The desired offset value.getOffset()
public double getOffset()
getOffset
in class TransitCalculator
setOffset(double)
public void setGeopos(double geolon, double geolat)
geolon
- The longitude used by the calculations. Western
positions have values less than zero, eastern positions use
positive values.geolat
- The latitude to be used by the calculations.
Nothern positions are positive, southern negative.getLongitude()
,
getLatitude()
public double getLongitude()
setGeopos(double, double)
public double getLatitude()
getLongitude()
,
setGeopos(double, double)
public java.lang.Object[] getObjectIdentifiers()
getObjectIdentifiers
in class TransitCalculator
protected double calc(double jd)
calc
in class TransitCalculator
protected double getMaxSpeed()
getMaxSpeed
in class TransitCalculator
protected double getMinSpeed()
getMinSpeed
in class TransitCalculator
protected double getTimePrecision(double degPrec)
getTimePrecision
in class TransitCalculator
protected double getDegreePrecision(double jd)
getDegreePrecision
in class TransitCalculator
public java.lang.String toString()
toString
in class java.lang.Object