|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opengts.db.WorkHours
public class WorkHours
| Nested Class Summary | |
|---|---|
static class |
WorkHours.Day
Day |
| Constructor Summary | |
|---|---|
WorkHours(RTConfig.PropertyGetter dayRTP)
Constructor |
|
WorkHours(RTConfig.PropertyGetter dayRTP,
java.lang.String keyPrefix)
Constructor |
|
WorkHours(java.lang.String keyPrefix)
Constructor |
|
WorkHours(WorkHours.Day[] day)
Constructor |
|
| Method Summary | |
|---|---|
double |
countWorkHours(DateTime startDT,
DateTime stopDT,
java.util.TimeZone tz)
Accumulate all work-hour time between the specified dates |
WorkHours.Day |
getDay(DateTime dateTime)
Return the requested Day |
WorkHours.Day |
getDay(DateTime dateTime,
java.util.TimeZone tz)
Return the requested Day |
WorkHours.Day |
getDay(int dow)
Return the requested Day |
WorkHours.Day |
getDay(long timestamp,
java.util.TimeZone tz)
Return the requested Day |
boolean |
isMatch(DateTime dateTime)
True if the specified DateTime is within the current 'WorkingHours' |
boolean |
isMatch(DateTime dateTime,
java.util.TimeZone tz)
True if the specified DateTime is within the current 'WorkingHours' |
boolean |
isMatch(long timestamp,
java.util.TimeZone tz)
True if the specified DateTime is within the current 'WorkingHours' |
static void |
main(java.lang.String[] argv)
|
java.lang.String |
toString()
Returns a String repreentation of this instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WorkHours(WorkHours.Day[] day)
public WorkHours(java.lang.String keyPrefix)
public WorkHours(RTConfig.PropertyGetter dayRTP)
public WorkHours(RTConfig.PropertyGetter dayRTP,
java.lang.String keyPrefix)
| Method Detail |
|---|
public WorkHours.Day getDay(int dow)
public WorkHours.Day getDay(DateTime dateTime)
public WorkHours.Day getDay(DateTime dateTime,
java.util.TimeZone tz)
public WorkHours.Day getDay(long timestamp,
java.util.TimeZone tz)
public boolean isMatch(DateTime dateTime)
public boolean isMatch(DateTime dateTime,
java.util.TimeZone tz)
public boolean isMatch(long timestamp,
java.util.TimeZone tz)
public double countWorkHours(DateTime startDT,
DateTime stopDT,
java.util.TimeZone tz)
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] argv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||