| java.lang.Object com.projity.pm.calendar.CalendarDefinition
CalendarDefinition | public class CalendarDefinition implements WorkCalendar,Cloneable(Code) | | This class holds specific calendar informatin either for a base calendar or a concrete one, as well as date math functions
|
newId | transient boolean newId(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
CalendarDefinition | public CalendarDefinition()(Code) | | |
add | public long add(long date, long duration, boolean useSooner)(Code) | | Algorithm to add a duration to a date. This code MUST be very fast as it is the most executed code in the program.
The time required by the algorithm is determined by the number of exceptions encountered and not the duration itself.
To handle reverse scheduling, the date can be negative. In this case, the date is converted to a positive value, but the duration
is negated.
|
addOrReplaceException | void addOrReplaceException(WorkDay exceptionDay)(Code) | | |
addSentinelsAndMakeArray | void addSentinelsAndMakeArray()(Code) | | |
adjustInsideCalendar | public long adjustInsideCalendar(long date, boolean useSooner)(Code) | | This method adjusts the given time to a working time in the calendar.
The algorithm just subtracts a tick and adds it back for sooner or vice versa for later
Parameters: date - Parameters: useSooner - |
compare | public long compare(long laterDate, long earlierDate, boolean elapsed)(Code) | | Get difference of two dates: laterDate - earlierDate according to calendar
|
getDayOfWeek | final public static int getDayOfWeek(long date)(Code) | | |
getId | public long getId()(Code) | | |
getUniqueId | public long getUniqueId()(Code) | | |
invalidate | public void invalidate()(Code) | | |
isDirty | public boolean isDirty()(Code) | | |
isInvalid | public boolean isInvalid()(Code) | | |
isNew | public boolean isNew()(Code) | | |
setDirty | public void setDirty(boolean dirty)(Code) | | |
setId | public void setId(long id)(Code) | | |
setNew | public void setNew(boolean newId)(Code) | | |
setUniqueId | public void setUniqueId(long id)(Code) | | |
testValid | public boolean testValid()(Code) | | |
|
|