public class SKDActivityDuration
extends java.lang.Object
Constructor and Description |
---|
SKDActivityDuration(UserInfo userInfo,
IMXGanttModel model) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
addWorkingHours(java.util.Date date,
double workingHours,
boolean isInterruptible) |
double |
durationBetweenTwoDates(java.util.Date startTime,
java.util.Date endTime)
Calculate the duration between two dates.
|
java.lang.Object[] |
getActivityDuration(java.util.Date startDate,
java.util.Date endDate,
boolean isInterruptable)
Get the total hours and start and end dates for an activity with non working time taken into consideration.
|
ilog.views.gantt.IlvTimeInterval |
getActivityLatestStartAndFinishDates(java.util.Date startDate,
java.util.Date endDate,
double duration,
boolean isInterruptable,
java.util.ArrayList<java.util.Date> mergedNonWorkPeriods)
Get the latest start and end dates for an activity given a duration.This is used in backward pass of CPM.
|
ilog.views.gantt.IlvTimeInterval |
getActivityLatestStartAndFinishDates(java.util.Date startDate,
java.util.Date endDate,
double duration,
boolean isInterruptable,
java.lang.String intshift)
Get the latest start and end dates for an activity given a duration.This is used in backward pass of CPM.
|
ilog.views.gantt.IlvTimeInterval |
getActivityStartAndEndDates(java.util.Date startDate,
java.util.Date endDate,
double duration,
boolean isInterruptable,
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.
|
ilog.views.gantt.IlvTimeInterval |
getActivityStartAndEndDates(java.util.Date startDate,
java.util.Date endDate,
double duration,
boolean isInterruptable,
java.lang.String intshift)
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) |
java.util.Date |
getNextShift(java.util.Date scheduleDate) |
double |
getNonInterruptableActivitiesCalendarBreaksDuration() |
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(java.util.Date startDate,
java.util.Date endDate)
Get the total non working time between two dates.
|
double |
getNonWorkingHoursBetweenStartAndEndDatesForShift(java.lang.String shift,
java.util.Date startDate,
java.util.Date endDate)
Get the total non working time between two dates.
|
java.util.LinkedHashSet<java.util.TreeSet<java.util.Date>> |
getNWDateListBetweenDates(java.util.Date startDate,
java.util.Date endDate)
Get the list of non working dates between two dates.
|
java.util.List<Range<java.util.Date>> |
getNWDateRangeList(java.util.ArrayList<java.util.Date> nonWorkPeriods,
java.util.Date startDate,
java.util.Date endDate)
Get the list of non working dates between two dates.
|
java.util.List<Range<java.util.Date>> |
getNWDateRangeListBetweenDates(java.util.Date startDate,
java.util.Date endDate)
Get the list of non working dates between two dates.
|
java.util.List<Range<java.util.Date>> |
getNWDateRangeListBetweenDatesForShift(java.lang.String shiftnum,
java.util.Date startDate,
java.util.Date endDate)
Get the list of non working dates between two dates.
|
java.util.Date |
getPreviousAvailableWorkingDate(java.util.Date scheduleDate) |
java.util.Date |
getShiftEnd(java.util.Date scheduleDate) |
java.util.ArrayList<java.util.Date> |
getShiftWorkPeriod(java.lang.String shift,
IMXGanttModel model)
Add the WorkPeriod information to the TreeGrid UI
|
double |
getWorkingHoursBetweenStartAndEndDates(java.util.Date startDate,
java.util.Date endDate)
Find the working hours between two dates
|
double |
getWorkingHoursBetweenStartAndEndDatesForShift(java.lang.String shift,
java.util.Date startDate,
java.util.Date endDate)
Find the working hours between two dates
|
boolean |
isWorkingDate(java.util.Date scheduleDate) |
java.util.Date |
subtractWorkingHours(java.util.Date date,
double workingHours,
boolean isInterruptible) |
public SKDActivityDuration(UserInfo userInfo, IMXGanttModel model)
public java.lang.Object[] getActivityDuration(java.util.Date startDate, java.util.Date endDate, boolean isInterruptable) throws java.lang.Exception
startDate
- endDate
- isInterruptable
- java.lang.Exception
public double durationBetweenTwoDates(java.util.Date startTime, java.util.Date endTime) throws java.lang.Exception
startDate
- endDate
- skdf
- l
- java.lang.Exception
public double getWorkingHoursBetweenStartAndEndDates(java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
startDate
- endDate
- java.lang.Exception
public double getWorkingHoursBetweenStartAndEndDatesForShift(java.lang.String shift, java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
startDate
- endDate
- java.lang.Exception
public double getNonWorkingHoursBetweenStartAndEndDates(java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
startDate
- endDate
- java.lang.Exception
public double getNonWorkingHoursBetweenStartAndEndDatesForShift(java.lang.String shift, java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
startDate
- endDate
- java.lang.Exception
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.LinkedHashSet<java.util.TreeSet<java.util.Date>> getNWDateListBetweenDates(java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
startDate
- endDate
- java.lang.Exception
public java.util.List<Range<java.util.Date>> getNWDateRangeListBetweenDates(java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
startDate
- endDate
- java.lang.Exception
public java.util.List<Range<java.util.Date>> getNWDateRangeListBetweenDatesForShift(java.lang.String shiftnum, java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
startDate
- endDate
- java.lang.Exception
public java.util.List<Range<java.util.Date>> getNWDateRangeList(java.util.ArrayList<java.util.Date> nonWorkPeriods, java.util.Date startDate, java.util.Date endDate) throws java.lang.Exception
startDate
- endDate
- java.lang.Exception
public ilog.views.gantt.IlvTimeInterval getActivityStartAndEndDates(java.util.Date startDate, java.util.Date endDate, double duration, boolean isInterruptable, java.lang.String intshift) throws java.lang.Exception
startDate
- endDate
- duration
- isInterruptable
- java.lang.Exception
public java.util.Date getFirstAvailableWorkingDate(java.util.Date scheduleDate) throws java.lang.Exception
java.lang.Exception
public java.util.Date getPreviousAvailableWorkingDate(java.util.Date scheduleDate) throws java.lang.Exception
java.lang.Exception
public java.util.Date getShiftEnd(java.util.Date scheduleDate) throws java.lang.Exception
java.lang.Exception
public java.util.Date getNextShift(java.util.Date scheduleDate)
public ilog.views.gantt.IlvTimeInterval getActivityStartAndEndDates(java.util.Date startDate, java.util.Date endDate, double duration, boolean isInterruptable, java.util.ArrayList<java.util.Date> mergedNonWorkPeriods) throws java.lang.Exception
startDate
- endDate
- duration
- isInterruptable
- java.lang.Exception
public ilog.views.gantt.IlvTimeInterval getActivityLatestStartAndFinishDates(java.util.Date startDate, java.util.Date endDate, double duration, boolean isInterruptable, java.lang.String intshift) throws java.lang.Exception
startDate
- endDate
- duration
- isInterruptable
- java.lang.Exception
public ilog.views.gantt.IlvTimeInterval getActivityLatestStartAndFinishDates(java.util.Date startDate, java.util.Date endDate, double duration, boolean isInterruptable, 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, IMXGanttModel model) throws java.io.IOException
gantt
- model
- java.io.IOException
public double getNonInterruptableActivitiesCalendarBreaksDuration()
public boolean isWorkingDate(java.util.Date scheduleDate) throws java.lang.Exception
java.lang.Exception
public java.util.Date addWorkingHours(java.util.Date date, double workingHours, boolean isInterruptible) throws java.lang.Exception
java.lang.Exception
public java.util.Date subtractWorkingHours(java.util.Date date, double workingHours, boolean isInterruptible) throws java.lang.Exception
java.lang.Exception