|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.pal.palTime
public class palTime
Angle defined by Hour, minute, second and fraction of a second
Constructor Summary | |
---|---|
palTime(int h,
int m,
int s)
Angles defined by Hour, minute, second |
|
palTime(int h,
int m,
int s,
double frac)
Angle defined by Hour, minute, second, fraction |
|
palTime(int h,
int m,
int s,
double frac,
char c)
Angle defined by Hour, minute, second, fraction and sign |
Method Summary | |
---|---|
double |
getFraction()
Get the fraction of a second |
int |
getFraction(int n)
Get the fraction of a second to a set precision |
int |
getHour()
Get the hour |
int |
getMin()
Get the minute |
int |
getSec()
Get the second |
char |
getSign()
Get the sign |
String |
printSign()
Get the sign as a String |
String |
toString()
Get the Angle as a String |
String |
toString(int n)
Get the Angle as a String to a set precision |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public palTime(int h, int m, int s, double frac, char c)
h
- Hourm
- Minutes
- Secondfrac
- Fraction of secondc
- Sign ('+' or '-')public palTime(int h, int m, int s, double frac)
h
- Hourm
- Minutes
- Secondfrac
- Fraction of secondpublic palTime(int h, int m, int s)
h
- Hourm
- Minutes
- SecondMethod Detail |
---|
public int getHour()
public int getMin()
public int getSec()
public double getFraction()
public int getFraction(int n)
n
- Number of decimal places
public char getSign()
public String printSign()
public String toString(int n)
n
- Number of decimal places in fraction
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |