Class TimeOfDaySchedule
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.util.TimeOfDaySchedule
 
- 
 public class TimeOfDaySchedule extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTimeOfDaySchedule.HitTypeprotected classTimeOfDaySchedule.Indexstatic classTimeOfDaySchedule.ScheduledTimeThis 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 classTimeOfDaySchedule.SymbolicTimeprotected static classTimeOfDaySchedule.SymbolicTimeFrameprotected static interfaceTimeOfDaySchedule.Timeframe
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TimeOfDaySchedule.IndexindexOf(long symbolicTime)booleanisCovered(long absoluteTime)TimeOfDaySchedule.ScheduledTimenextEvent(long absoluteTime)Returns the next scheduled event for the time, or the time event covering the specified time.static TimeOfDayScheduleparse(java.lang.String value)static TimeOfDayScheduleparse(java.lang.String value, int alignmentMS)protected static TimeOfDaySchedule.SymbolicTimeparsePart(java.lang.String value)static TimeOfDayScheduleparseSafe(java.lang.String value)protected longtoAbsoluteTime(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 longtoAbsoluteTime(org.joda.time.DateTime baseTime, long symbolicTime, boolean nextDay, long dstOffset)java.lang.StringtoString()protected longtoSymbolicTime(long absoluteTime)protected longtoSymbolicTime(org.joda.time.DateTime absoluteTime)
 
- 
- 
- 
Method Detail- 
toSymbolicTimeprotected long toSymbolicTime(long absoluteTime) 
 - 
toSymbolicTimeprotected long toSymbolicTime(org.joda.time.DateTime absoluteTime) 
 - 
toAbsoluteTimeprotected 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.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. 
 - 
toAbsoluteTimeprotected long toAbsoluteTime(org.joda.time.DateTime baseTime, long symbolicTime, boolean nextDay, long dstOffset)
 - 
isCoveredpublic boolean isCovered(long absoluteTime) 
 - 
nextEventpublic TimeOfDaySchedule.ScheduledTime nextEvent(long absoluteTime) Returns the next scheduled event for the time, or the time event covering the specified time. If the time is covered, the returned time will be aligned to the range alignment, if that was specified during the parsing.
 - 
indexOfprotected TimeOfDaySchedule.Index indexOf(long symbolicTime) 
 - 
parseSafepublic static TimeOfDaySchedule parseSafe(java.lang.String value) 
 - 
parsepublic static TimeOfDaySchedule parse(java.lang.String value) throws java.lang.Exception - Throws:
- java.lang.Exception
 
 - 
parsepublic static TimeOfDaySchedule parse(java.lang.String value, int alignmentMS) throws java.lang.Exception - Throws:
- java.lang.Exception
 
 - 
parsePartprotected static TimeOfDaySchedule.SymbolicTime parsePart(java.lang.String value) throws java.lang.Exception - Throws:
- java.lang.Exception
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-