public class ResourceData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
IDataSet |
availabilityDataSet |
IDataSet |
loadDataSet |
java.util.TreeSet<Shift> |
shiftDatesList |
Constructor and Description |
---|
ResourceData() |
Modifier and Type | Method and Description |
---|---|
double |
getAdditionalCapacity(double load,
double avail)
Returns additional capacity: 0 if load less than availability or load minus avail
|
double |
getAdditionalCapacityQuantity(double addCapacity,
AbstractTreeGridMiniAppBean.ShiftInfo shiftInfo)
Calculate additional capacity quantity
|
ListAvailDataSets |
getAvailableHoursData(IMXGanttModel model,
IMXResource resource,
UserInfo info,
AlternateAvailHashMap alternateAvailHashMap)
Calculates the Availability DataSets for the given resource, based on
Shift.
|
double |
getAvailableHoursData(IMXGanttModel model,
IMXResource res,
UserInfo userInfo,
java.util.Date clickdate,
AlternateAvailHashMap alternateAvailHashMap)
Returns a SUM of all the Available Hours for the given date instance.
|
double |
getLaborCrewTotalhours(double avail,
AbstractTreeGridMiniAppBean.ShiftInfo shiftInfo)
Returns the duration based on available hours and shifts
|
ListLoadDataSets |
getLoadHoursData(IMXGanttModel model,
IMXResource resource,
UserInfo userInfo)
This method calculates the total planned labor for the activity start
date based on crafts.
|
double |
getLoadHoursData(IMXGanttModel mxGanttModel,
IMXResource res,
UserInfo userInfo,
java.util.Date clickdate)
Returns the sum of all the load hours for a given date.
|
double |
getLoadQuantityData(IMXGanttModel model,
IMXResource resource,
java.util.Date clickdate) |
java.util.Date |
getNow(UserInfo userInfo) |
static boolean |
useOverlappingAvails() |
boolean |
useOverlappingLoads() |
public java.util.TreeSet<Shift> shiftDatesList
public IDataSet availabilityDataSet
public IDataSet loadDataSet
public static boolean useOverlappingAvails() throws MXApplicationException
MXApplicationException
public java.util.Date getNow(UserInfo userInfo)
public ListAvailDataSets getAvailableHoursData(IMXGanttModel model, IMXResource resource, UserInfo info, AlternateAvailHashMap alternateAvailHashMap)
model
- resource
- info
- public boolean useOverlappingLoads()
public ListLoadDataSets getLoadHoursData(IMXGanttModel model, IMXResource resource, UserInfo userInfo)
resource
- MXException
java.rmi.RemoteException
public double getAvailableHoursData(IMXGanttModel model, IMXResource res, UserInfo userInfo, java.util.Date clickdate, AlternateAvailHashMap alternateAvailHashMap)
model
- res
- userInfo
- clickdate
- public double getLoadHoursData(IMXGanttModel mxGanttModel, IMXResource res, UserInfo userInfo, java.util.Date clickdate) throws java.rmi.RemoteException, MXException
mxGanttModel
- res
- userInfo
- d
- MXException
java.rmi.RemoteException
public double getLaborCrewTotalhours(double avail, AbstractTreeGridMiniAppBean.ShiftInfo shiftInfo)
avail
- shiftInfo
- eom.ibm.tivoli.maximo.miniapps.scheduler.tooltips.ShiftTextResolver
public double getAdditionalCapacity(double load, double avail)
mxGanttModel
- res
- userInfo
- d
- public double getAdditionalCapacityQuantity(double addCapacity, AbstractTreeGridMiniAppBean.ShiftInfo shiftInfo)
addCapacity
- shiftInfo
- public double getLoadQuantityData(IMXGanttModel model, IMXResource resource, java.util.Date clickdate)