public class SKDActivityAdjust
extends java.lang.Object
Constructor and Description |
---|
SKDActivityAdjust(java.util.Locale l,
java.util.TimeZone tz) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
addWorkingHours(Schedule schedule,
java.util.Date date,
double workingHours,
boolean isInterruptible) |
void |
adjustActivityForMergedShiftList(Activity activity,
Schedule schedule)
Adjust activity to merged shift lists
|
void |
adjustActivityForMergedShiftList(MXActivity activity,
MXGanttModel model)
Adjust activity to merged shift lists
|
ilog.views.gantt.IlvTimeInterval |
getActivityStartAndEndDates(java.util.Date startDate,
java.util.Date endDate,
double duration,
java.util.ArrayList<java.util.Date> mergedNonWorkPeriods)
Get the start and end dates for an activity given a duration.This is used when duration is constant
like move activity.
|
java.util.Date |
getFirstAvailableWorkingDate(java.util.Date scheduleDate,
Schedule schedule) |
double |
getNonWorkingHours(java.util.ArrayList<java.util.Date> mergedNonWorkPeriods,
java.util.Date startDate,
java.util.Date endDate)
Get the total non working time between two dates.
|
double |
getNonWorkingHoursBetweenStartAndEndDates(Schedule schedule,
java.util.Date startDate,
java.util.Date endDate)
Get the total non working time between two dates.
|
java.util.Date |
getPreviousAvailableWorkingDate(java.util.Date scheduleDate,
Schedule schedule) |
java.util.Date |
getShiftEnd(java.util.Date scheduleDate,
Schedule schedule) |
java.util.ArrayList<java.util.Date> |
getShiftWorkPeriod(java.lang.String shift,
MXGanttModel model,
boolean shiftDate)
Add the WorkPeriod information to the TreeGrid UI
|
java.util.ArrayList<java.util.Date> |
getShiftWorkPeriod(java.lang.String shift,
Schedule schedule,
boolean shiftDate)
Add the WorkPeriod information to the TreeGrid UI
|
double |
getWorkingHoursBetweenStartAndEndDates(Schedule schedule,
java.util.Date startDate,
java.util.Date endDate)
Find the working hours between two dates
|
boolean |
isWorkingDate(java.util.Date scheduleDate,
Schedule schedule) |
java.util.Date |
subtractWorkingHours(Schedule schedule,
java.util.Date date,
double workingHours,
boolean isInterruptible) |
public SKDActivityAdjust(java.util.Locale l, java.util.TimeZone tz)
public void adjustActivityForMergedShiftList(MXActivity activity, MXGanttModel model) throws java.lang.Exception
activity
- mergedlist
- MXException
java.lang.Exception
public void adjustActivityForMergedShiftList(Activity activity, Schedule schedule) throws java.lang.Exception
activity
- mergedlist
- MXException
java.lang.Exception
public ilog.views.gantt.IlvTimeInterval getActivityStartAndEndDates(java.util.Date startDate, java.util.Date endDate, double duration, java.util.ArrayList<java.util.Date> mergedNonWorkPeriods) throws java.lang.Exception
startDate
- endDate
- duration
- isInterruptable
- java.lang.Exception
public java.util.ArrayList<java.util.Date> getShiftWorkPeriod(java.lang.String shift, MXGanttModel model, boolean shiftDate) throws java.io.IOException
gantt
- model
- shiftDate
- if true, the first date is skipped to create an offset patternjava.io.IOException
public java.util.ArrayList<java.util.Date> getShiftWorkPeriod(java.lang.String shift, Schedule schedule, boolean shiftDate) throws java.io.IOException
gantt
- model
- shiftDate
- if true, the first date is skipped to create an offset patternjava.io.IOException
public double getNonWorkingHours(java.util.ArrayList<java.util.Date> mergedNonWorkPeriods, java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
startDate
- endDate
- java.lang.Exception
public java.util.Date getShiftEnd(java.util.Date scheduleDate, Schedule schedule) throws java.lang.Exception
java.lang.Exception
public java.util.Date addWorkingHours(Schedule schedule, java.util.Date date, double workingHours, boolean isInterruptible) throws java.lang.Exception
java.lang.Exception
public java.util.Date subtractWorkingHours(Schedule schedule, java.util.Date date, double workingHours, boolean isInterruptible) throws java.lang.Exception
java.lang.Exception
public java.util.Date getFirstAvailableWorkingDate(java.util.Date scheduleDate, Schedule schedule) throws java.lang.Exception
java.lang.Exception
public java.util.Date getPreviousAvailableWorkingDate(java.util.Date scheduleDate, Schedule schedule) throws java.lang.Exception
java.lang.Exception
public boolean isWorkingDate(java.util.Date scheduleDate, Schedule schedule) throws java.lang.Exception
java.lang.Exception
public double getWorkingHoursBetweenStartAndEndDates(Schedule schedule, java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
startDate
- endDate
- java.lang.Exception
public double getNonWorkingHoursBetweenStartAndEndDates(Schedule schedule, java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
startDate
- endDate
- java.lang.Exception