package anywheresoftware.b4a.sample1;
import anywheresoftware.b4a.BA.ShortName;
@ShortName("TCPlanet")
/**
* This class implements a TransitCalculator for one planet's position or speed.<p>
* You would create a TransitCalculator from this class and use the SwissEph.getTransit() methods to
* actually calculate a transit, e.g.:<p>
* SwissEph sw = new SwissEph(...);
*
* int flags = SweConst.SEFLG_SWIEPH |
* SweConst.SEFLG_TRANSIT_LONGITUDE |
* SweConst.SEFLG_TRANSIT_SPEED;
*
* boolean backwards = false;
*
* TransitCalculator tc = new TCPlanet(sw, 1, flags, 0);
*
* double nextTransitET = sw.getTransitET(tc, jdET, backwards);
*/
public class TCPlanet extends TransitCalculator implements java.io.Serializable
{
public TCPlanet(SwissEph sw, int planet, int flags, double offset)
{
this(sw, planet, flags, offset, 200, 1.4);
}
public TCPlanet(SwissEph sw, int planet, int flags, double offset, int precalcCount, double precalcSafetyfactor)
{
//more code
}
}