|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.astroshare.astroonline.core.Lib
public class Lib
Class lib contains several static functions used throughout Astro-Online as library functions.
Library class which contains only static methods. The methods in this class implement commonly used functions throughout the project.
| Constructor Summary | |
|---|---|
Lib()
|
|
| Method Summary | |
|---|---|
static boolean |
aspectIsHarmonic(int a)
Function checks if an aspect is harmonic. |
static boolean |
checkDate(int year,
int month,
int day,
int hour,
int min,
int sec)
Check if a datetime is valid. |
static boolean |
checkUScity(int pYear,
int pMonth,
int pDay,
int pHour,
int pMin)
Check US city. |
static java.lang.String |
EscapeURLParam(java.lang.String pText)
Rewrite URL string. |
static int |
findAspect(double p_grad1,
double p_grad2)
Check whether there is an aspect between two objects with default orb. |
static int |
findAspect(double p_grad1,
double p_grad2,
int pOrb)
Check whether there is an aspect between two objects. |
static int |
firstSunday(int pYear,
int pMonth)
Calculates first Sunday of the month. |
static boolean |
isSummer(int day,
int month)
Check if date is during the summer. |
static java.lang.String |
toDir(java.lang.String location)
Grab dir part from geographical position. |
static int |
toGrad(java.lang.String location)
Grab grad part from geographical position. |
static int |
toMin(java.lang.String location)
Grab min part from geographical position. |
static int |
toSec(java.lang.String location)
Grab sec part from geographical position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lib()
| Method Detail |
|---|
public static int findAspect(double p_grad1,
double p_grad2)
Check whether there is an aspect between two objects with default orb.
p_grad1 - Position of the first objectp_grad2 - Position of the second object
findAspect(double, double, int)
public static int findAspect(double p_grad1,
double p_grad2,
int pOrb)
Check whether there is an aspect between two objects.
p_grad1 - Position of the first objectp_grad2 - Position of the second objectpOrb - Orb used when searching for aspects, -1 = use default
public static int toGrad(java.lang.String location)
throws java.lang.Exception
Grab grad part from geographical position.
location - Geographical position as a string
java.lang.Exception - An Exception is thrown if the location specified is invalid
public static int toMin(java.lang.String location)
throws java.lang.Exception
Grab min part from geographical position.
location - Geographical position as a string
java.lang.Exception - An Exception is thrown if the location specified is invalid
public static int toSec(java.lang.String location)
throws java.lang.Exception
Grab sec part from geographical position.
location - Geographical position as a string
java.lang.Exception - An Exception is thrown if the location specified is invalid
public static java.lang.String toDir(java.lang.String location)
throws java.lang.Exception
Grab dir part from geographical position.
location - Geographical position as a string
java.lang.Exception - An Exception is thrown if the location specified is invalid
public static boolean checkDate(int year,
int month,
int day,
int hour,
int min,
int sec)
Check if a datetime is valid.
year - Yearmonth - Month of the yearday - Day of the monthhour - Hour of the daymin - Minute of the daysec - Second of the day
public static java.lang.String EscapeURLParam(java.lang.String pText)
Rewrite URL string.
pText - URL input
public static boolean checkUScity(int pYear,
int pMonth,
int pDay,
int pHour,
int pMin)
Check US city.
pYear - YearpMonth - MonthpDay - DaypHour - HourpMin - Min
public static int firstSunday(int pYear,
int pMonth)
Calculates first Sunday of the month.
pYear - YearpMonth - Month
public static boolean isSummer(int day,
int month)
Check if date is during the summer.
day - Daymonth - Month
public static boolean aspectIsHarmonic(int a)
Function checks if an aspect is harmonic.
a - Aspect
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Astro-Online © 2001 − 2008 Astro Share
Documentation generated on: Thursday August 12th 2008 (PS)