public class WOActivity extends java.lang.Object implements java.lang.Comparable<WOActivity>
Modifier and Type | Field and Description |
---|---|
DateRange |
intShiftPeriod |
DateRange |
period |
Constructor and Description |
---|
WOActivity(java.util.Date activityStartDate,
java.util.Date activityEndDate,
double hours,
double resource_qty,
boolean interruptibleFlag,
boolean useOverlappingShifts,
java.util.Date intShiftStartTime,
java.util.Date intShiftEndTime,
java.lang.String intShift) |
WOActivity(java.util.Date activityStartDate,
java.util.Date activityEndDate,
double hours,
double resource_qty,
boolean interruptibleFlag,
boolean useOverlappingShifts,
java.lang.String intShift) |
Modifier and Type | Method and Description |
---|---|
void |
addOverlappingShifts(Shift shift) |
int |
compareTo(WOActivity obj) |
java.util.Date |
getActivityEndDate() |
java.util.Date |
getActivityStartDate() |
double |
getFractionOverlap(java.util.Date shiftStartDate,
UserInfo userInfo,
IMXGanttModel model)
Get the overlap fraction.
|
double |
getHoursInShift(java.util.Date shiftStartDate,
UserInfo userInfo,
IMXGanttModel model) |
boolean |
getInterruptible() |
int |
getOverlappingShiftsCount() |
java.util.ArrayList<Shift> |
getShifts(java.util.Date shiftStartDate) |
void |
setActivityEndDate(java.util.Date activityEndDate) |
void |
setActivityStartDate(java.util.Date activityStartDate) |
public WOActivity(java.util.Date activityStartDate, java.util.Date activityEndDate, double hours, double resource_qty, boolean interruptibleFlag, boolean useOverlappingShifts, java.lang.String intShift)
public WOActivity(java.util.Date activityStartDate, java.util.Date activityEndDate, double hours, double resource_qty, boolean interruptibleFlag, boolean useOverlappingShifts, java.util.Date intShiftStartTime, java.util.Date intShiftEndTime, java.lang.String intShift)
public boolean getInterruptible()
public java.util.Date getActivityStartDate()
public void setActivityStartDate(java.util.Date activityStartDate)
public java.util.Date getActivityEndDate()
public void setActivityEndDate(java.util.Date activityEndDate)
public double getHoursInShift(java.util.Date shiftStartDate, UserInfo userInfo, IMXGanttModel model)
public void addOverlappingShifts(Shift shift)
public int getOverlappingShiftsCount()
public int compareTo(WOActivity obj)
compareTo
in interface java.lang.Comparable<WOActivity>
public java.util.ArrayList<Shift> getShifts(java.util.Date shiftStartDate)
public double getFractionOverlap(java.util.Date shiftStartDate, UserInfo userInfo, IMXGanttModel model)
shiftStartDate
-