public class PriorityData
extends java.lang.Object
| Constructor and Description |
|---|
PriorityData(UserInfo userInfo)
The old constructor, which did not use site data to fetch the Priority Data, and was
hence often in error.
|
PriorityData(UserInfo userInfo,
java.lang.String siteID)
Construct the Priority Data using the passed siteID; this should always be done this
way for any version of Maximo later than 5.2 .
|
| Modifier and Type | Method and Description |
|---|---|
int |
calculatePriority(int woPriority,
int assetLocPriority)
Calculates the calculated priority depending on the selected priority formula.
|
int |
calculateResponseTime(int calcP)
Calculate a response time given a work/calc priority.
|
boolean |
doPriorityCalc()
Returns true if priority calculations are enabled.
|
boolean |
doRespondByCalc()
Returns true if response time calculations are enabled.
|
public PriorityData(UserInfo userInfo, java.lang.String siteID) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic PriorityData(UserInfo userInfo) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean doPriorityCalc()
public boolean doRespondByCalc()
public int calculatePriority(int woPriority,
int assetLocPriority)
woPriority - The WO priority.assetLocPriority - the AssetLoc priority.public int calculateResponseTime(int calcP)
calcP - the calculated priority.