| java.lang.Object java.util.Calendar java.util.GregorianCalendar org.obe.engine.calendar.BusinessCalendar
All known Subclasses: org.obe.engine.calendar.BasicBusinessCalendar,
BusinessCalendar | public class BusinessCalendar extends GregorianCalendar (Code) | | Defines a business calendar. This means that it will handle the constructs
of a business hour and a business day. This calendar also allows a system to
define a matrix showing the times when work can proceed. This is analogous
to a normal work calendar. For example, most people work from 9AM to 5PM,
take an hour off for lunch and only work Monday to Friday. This calendar
allows a system to define these rules and apply calendar math to them.
A business hour is any hour that has been marked as allowed for work. A
business day is a day which has one or more business hours in it.
For example, based on the work week definition from above, if you add two
business hours to Friday, 4PM, the result will be Monday, 10AM.
A calendar also has a start and an end date. By default, that is the from
the current time to the end of the current year, but any start and end dates
can be given. The start and end dates always encompass an entire day. This
means the start date always starts at 00h00 and the end date always ends at
23h59
|
INTERVALS_PER_DAY | final public static int INTERVALS_PER_DAY(Code) | | Number of intervals in a full business day
|
INTERVALS_PER_HOUR | final public static int INTERVALS_PER_HOUR(Code) | | Number of intervals in a business hour
|
INTERVAL_TIME_MILLIS | final public static int INTERVAL_TIME_MILLIS(Code) | | This is the smallest amount of time that can be marked as business time
in the calendar. The value in expressed in milliseconds
|
MILLIS_IN_DAY | final public static long MILLIS_IN_DAY(Code) | | |
_LOGGER | final protected static Log _LOGGER(Code) | | |
BusinessCalendar | public BusinessCalendar(GregorianCalendar startDate, GregorianCalendar endDate) throws RepositoryException(Code) | | This uses the system TimeZone and Locale, with the calendar ranging from
the current time to the end of the current year.
Parameters: startDate - Parameters: endDate - |
BusinessCalendar | public BusinessCalendar(TimeZone zone, Locale aLocale) throws RepositoryException(Code) | | Sets both the TimeZone and the Locale
Parameters: zone - Calendar time zone Parameters: aLocale - Calendar locale |
BusinessCalendar | public BusinessCalendar(BusinessCalendar parent, TimeZone zone, Locale aLocale) throws RepositoryException(Code) | | Inherits everything from the parent. It allows this calendar to
maintain an independent list of inclusions/exclusions in addition to
using the parent ones.
Parameters: parent - |
dumpCalendar | public String dumpCalendar()(Code) | | Dumps calendar contents.
String representation of the calendar. |
getExcludeRules | public List getExcludeRules()(Code) | | |
getIncludeRules | public List getIncludeRules()(Code) | | |
Methods inherited from java.util.Calendar | abstract public void add(int field, int amount)(Code)(Java Doc) public boolean after(Object when)(Code)(Java Doc) public boolean before(Object when)(Code)(Java Doc) final public void clear()(Code)(Java Doc) final public void clear(int field)(Code)(Java Doc) public Object clone()(Code)(Java Doc) public int compareTo(Calendar anotherCalendar)(Code)(Java Doc) protected void complete()(Code)(Java Doc) abstract protected void computeFields()(Code)(Java Doc) abstract protected void computeTime()(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public int get(int field)(Code)(Java Doc) public int getActualMaximum(int field)(Code)(Java Doc) public int getActualMinimum(int field)(Code)(Java Doc) public static synchronized Locale[] getAvailableLocales()(Code)(Java Doc) public String getDisplayName(int field, int style, Locale locale)(Code)(Java Doc) public Map<String, Integer> getDisplayNames(int field, int style, Locale locale)(Code)(Java Doc) public int getFirstDayOfWeek()(Code)(Java Doc) abstract public int getGreatestMinimum(int field)(Code)(Java Doc) public static Calendar getInstance()(Code)(Java Doc) public static Calendar getInstance(TimeZone zone)(Code)(Java Doc) public static Calendar getInstance(Locale aLocale)(Code)(Java Doc) public static Calendar getInstance(TimeZone zone, Locale aLocale)(Code)(Java Doc) abstract public int getLeastMaximum(int field)(Code)(Java Doc) abstract public int getMaximum(int field)(Code)(Java Doc) public int getMinimalDaysInFirstWeek()(Code)(Java Doc) abstract public int getMinimum(int field)(Code)(Java Doc) final public Date getTime()(Code)(Java Doc) public long getTimeInMillis()(Code)(Java Doc) public TimeZone getTimeZone()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) final protected int internalGet(int field)(Code)(Java Doc) public boolean isLenient()(Code)(Java Doc) final public boolean isSet(int field)(Code)(Java Doc) abstract public void roll(int field, boolean up)(Code)(Java Doc) public void roll(int field, int amount)(Code)(Java Doc) public void set(int field, int value)(Code)(Java Doc) final public void set(int year, int month, int date)(Code)(Java Doc) final public void set(int year, int month, int date, int hourOfDay, int minute)(Code)(Java Doc) final public void set(int year, int month, int date, int hourOfDay, int minute, int second)(Code)(Java Doc) public void setFirstDayOfWeek(int value)(Code)(Java Doc) public void setLenient(boolean lenient)(Code)(Java Doc) public void setMinimalDaysInFirstWeek(int value)(Code)(Java Doc) final public void setTime(Date date)(Code)(Java Doc) public void setTimeInMillis(long millis)(Code)(Java Doc) public void setTimeZone(TimeZone value)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|