|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.project.scheduling.SchedTime
LocalSiderealTime
,
JulianDate
, and the other time classes
in edu.nrao.sss.measure.
Represents an LST day number and hour for the purposes of scheduling.
@Deprecated public class SchedTime
Field Summary | |
---|---|
static float |
HOURS_PER_LST_DAY
Deprecated. |
Constructor Summary | |
---|---|
SchedTime()
Deprecated. Constructs an instance of this SchedTime initialized to the
current time. |
|
SchedTime(double hours,
int day)
Deprecated. Constructs an instance of this SchedTime initialized to the
indicated LST day and hour. |
|
SchedTime(SchedTime copy)
Deprecated. Constructs an instance of this SchedTime initialized to the
same LST day and hour as the argument. |
Method Summary | |
---|---|
SchedTime |
add(SchedTime otherTime)
Deprecated. Returns a SchedTime that is the sum of the argument and this SchedTime . |
SchedTime |
add(TimeDuration td)
Deprecated. Returns a SchedTime that is the sum of the argument and this SchedTime . |
int |
compareTo(SchedTime otherTime)
Deprecated. |
static long |
convertHoursToSeconds(double hours)
Deprecated. |
static double |
convertSecondsToHours(long seconds)
Deprecated. |
static double |
currentLSTTime()
Deprecated. Returns the current LST time. |
boolean |
equals(SchedTime other)
Deprecated. |
static SchedTime |
fromString(String str)
Deprecated. Parses a string in the format used by Barry and returns a corresponding schedule time or null if there is no such time. |
static SchedTime |
fromXml(Reader reader)
Deprecated. Returns the SchedTime constructed from a reader or null if
it is not possible to determine the corresponding time. |
static SchedTime |
fromXml(String xmlString)
Deprecated. Returns a SchedTime from an xml representation or null if
it is not possible to parse the xml. |
int |
getDay()
Deprecated. Returns the LST day number for the schedule. |
double |
getHour()
Deprecated. Returns the hour. |
static double |
getLSTTime(Date theDate)
Deprecated. Returns the LST time corresponding to the passed in date. |
static double |
getLSTTime(double julianDays)
Deprecated. Returns the LST time corresponding to the Julian time. |
static double |
getLSTTime(long milliseconds)
Deprecated. Returns the LST time corresponding to the indicated number of milliseconds. |
int |
hashCode()
Deprecated. |
static double |
modifiedJulianDay(long milliseconds)
Deprecated. Returns the modified julian day corresponding to the given number of milliseconds. |
static double |
modifiedJulianDayNow()
Deprecated. Returns the current modified julian day. |
void |
setDay(int lstDayNumber)
Deprecated. Sets the LST day number in the schedule. |
void |
setHour(double hour)
Deprecated. Sets the hour |
TimeDuration |
subtract(SchedTime otherTime)
Deprecated. Returns a TimeDuration that represents the time difference between
this SchedTime and the argument. |
String |
toString()
Deprecated. Returns a text representation of this schedule entry. |
String |
toSummaryString()
Deprecated. Returns a brief word description of this scheduling time. |
String |
toXml()
Deprecated. Returns a string containing the xml representation of this schedule time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final float HOURS_PER_LST_DAY
Constructor Detail |
---|
public SchedTime()
SchedTime
initialized to the
current time.
public SchedTime(double hours, int day)
SchedTime
initialized to the
indicated LST day and hour.
public SchedTime(SchedTime copy)
SchedTime
initialized to the
same LST day and hour as the argument.
copy
- a SchedTime
representing a scheduling time to copy.Method Detail |
---|
public static double modifiedJulianDay(long milliseconds)
milliseconds
- a time quantity.
public static double modifiedJulianDayNow()
public static double currentLSTTime()
public static double getLSTTime(Date theDate)
theDate
- a Date for which an LST time is wanted.
public static double getLSTTime(long milliseconds)
milliseconds
- a time represented in milliseconds.
public static double getLSTTime(double julianDays)
public static long convertHoursToSeconds(double hours)
public static double convertSecondsToHours(long seconds)
public double getHour()
public void setHour(double hour)
hour
- the hour for this time.public void setDay(int lstDayNumber)
lstDayNumber
- the LST day number for the schedule.public int getDay()
public SchedTime add(TimeDuration td)
SchedTime
.
td
- a TimeDuration indicating the length of time this schedule time needs to
be increased.
SchedTime
and the argument.public SchedTime add(SchedTime otherTime)
SchedTime
.
otherTime
- the SchedTime
that should be added to this one.
SchedTime
and the argument.public TimeDuration subtract(SchedTime otherTime)
TimeDuration
that represents the time difference between
this SchedTime
and the argument.
otherTime
- the SchedTime
that should be subtracted from this one.
SchedTime
and the argument.
IllegalArgumentException
- if the parameter is larger than this SchedTime
.public boolean equals(SchedTime other)
public int compareTo(SchedTime otherTime)
compareTo
in interface Comparable<SchedTime>
public int hashCode()
hashCode
in class Object
public String toXml()
public static SchedTime fromXml(Reader reader)
SchedTime
constructed from a reader or null if
it is not possible to determine the corresponding time.
reader
- a Reader containing schedule time information.
public static SchedTime fromXml(String xmlString)
SchedTime
from an xml representation or null if
it is not possible to parse the xml.
xmlString
- a String containing the xml representation of a SchedTime
SchedTime
corresponding to the xml representation.public String toString()
toString
in class Object
toSummaryString()
public String toSummaryString()
public static SchedTime fromString(String str)
str
- a String with the day and hour separated by the word "at".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |