public class TimeOfDaySchedule
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TimeOfDaySchedule.HitType |
protected class |
TimeOfDaySchedule.Index |
static class |
TimeOfDaySchedule.ScheduledTime
This class provides information about the specific absolute time to run, but also the symbolic time of day, and
the id of the event that was used to generate it.
|
protected static class |
TimeOfDaySchedule.SymbolicTime |
protected static class |
TimeOfDaySchedule.SymbolicTimeFrame |
protected static interface |
TimeOfDaySchedule.Timeframe |
Modifier and Type | Method and Description |
---|---|
protected TimeOfDaySchedule.Index |
indexOf(long symbolicTime) |
boolean |
isCovered(long absoluteTime) |
TimeOfDaySchedule.ScheduledTime |
nextEvent(long absoluteTime)
Returns the next scheduled event for the time, or the time event covering the specified time.
|
static TimeOfDaySchedule |
parse(java.lang.String value) |
static TimeOfDaySchedule |
parse(java.lang.String value,
int alignmentMS) |
protected static TimeOfDaySchedule.SymbolicTime |
parsePart(java.lang.String value) |
static TimeOfDaySchedule |
parseSafe(java.lang.String value) |
protected long |
toAbsoluteTime(org.joda.time.DateTime baseTime,
long symbolicTime,
boolean nextDay)
Takes the symbolic time and converts it back to an absolute time based on the baseTime.
|
protected long |
toAbsoluteTime(org.joda.time.DateTime baseTime,
long symbolicTime,
boolean nextDay,
long dstOffset) |
java.lang.String |
toString() |
protected long |
toSymbolicTime(org.joda.time.DateTime absoluteTime) |
protected long |
toSymbolicTime(long absoluteTime) |
protected long toSymbolicTime(long absoluteTime)
protected long toSymbolicTime(org.joda.time.DateTime absoluteTime)
protected long toAbsoluteTime(org.joda.time.DateTime baseTime, long symbolicTime, boolean nextDay)
It basically works by converting the base to symbolic, which is essentially how the calculation was made, and then adding the diff of the symbolic times to the base.
protected long toAbsoluteTime(org.joda.time.DateTime baseTime, long symbolicTime, boolean nextDay, long dstOffset)
public boolean isCovered(long absoluteTime)
public TimeOfDaySchedule.ScheduledTime nextEvent(long absoluteTime)
protected TimeOfDaySchedule.Index indexOf(long symbolicTime)
public static TimeOfDaySchedule parseSafe(java.lang.String value)
public static TimeOfDaySchedule parse(java.lang.String value) throws java.lang.Exception
java.lang.Exception
public static TimeOfDaySchedule parse(java.lang.String value, int alignmentMS) throws java.lang.Exception
java.lang.Exception
protected static TimeOfDaySchedule.SymbolicTime parsePart(java.lang.String value) throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object