public class SKDActivityDuration
extends java.lang.Object
Constructor and Description |
---|
SKDActivityDuration() |
Modifier and Type | Method and Description |
---|---|
double |
durationBetweenTwoDates(java.util.Date startDate,
java.util.Date endDate,
SKDFormat skdf,
java.util.Locale l)
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)
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)
Get the start and end dates for an activity given a duration.This is used when duration is constant
like move activity.
|
double |
getNonWorkingHoursBetweenStartAndEndDates(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.
|
static SKDActivityDuration |
getSKDActivityDuration()
Returns the static instance of this class.
|
double |
getWorkingHoursBetweenStartAndEndDates(java.util.Date startDate,
java.util.Date endDate)
Find the working hours between two dates
|
public static SKDActivityDuration getSKDActivityDuration()
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 startDate, java.util.Date endDate, SKDFormat skdf, java.util.Locale l) 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 getNonWorkingHoursBetweenStartAndEndDates(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 ilog.views.gantt.IlvTimeInterval getActivityStartAndEndDates(java.util.Date startDate, java.util.Date endDate, double duration, boolean isInterruptable) 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) throws java.lang.Exception
startDate
- endDate
- duration
- isInterruptable
- java.lang.Exception