Package org.cip4.jdflib.util
Class StatusUtil
- java.lang.Object
-
- org.cip4.jdflib.util.StatusUtil
-
@Deprecated public class StatusUtil extends java.lang.ObjectDeprecated.- use StatusCounterUtility class for status JDF and JMF
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classStatusUtil.AmountBagDeprecated.container class to set amounts and waste in phaseTime
-
Field Summary
Fields Modifier and Type Field Description protected VJDFAttributeMapm_vPartMapDeprecated.
-
Constructor Summary
Constructors Constructor Description StatusUtil(JDFNode node, VJDFAttributeMap vPartMap, VElement vResLinks)Deprecated.construct a StatusUtil for a node n
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StatusUtil.AmountBaggetBag(java.lang.String refID, StatusUtil.AmountBag[] bags)Deprecated.get the matching AmountBag out of an arrayjava.lang.StringgetDeviceID()Deprecated.JDFDocgetDocJMFPhaseTime()Deprecated.JDFDocgetDocJMFResource()Deprecated.java.lang.StringgetFirstRefID()Deprecated.get the refID of the first resource, i.e.org.cip4.jdflib.util.StatusUtil.LinkAmountgetLinkAmount(java.lang.String refID)Deprecated.get the matching LinkAmount out of thisvoidsetCopyResInResInfo(JDFResourceLink rl, boolean b)Deprecated.set copying the resource into resourceInfo on or off for the resourcelink rlvoidsetDeviceID(java.lang.String deviceid)Deprecated.voidsetPhase(JDFElement.EnumNodeStatus nodeStatus, java.lang.String nodeStatusDetails, JDFAutoDeviceInfo.EnumDeviceStatus deviceStatus, java.lang.String deviceStatusDetails, StatusUtil.AmountBag[] amounts)Deprecated.Set the Status and StatusDetails of this node update the PhaseTime audit or append a new phasetime as appropriate also prepare a status JMFJDFProcessRunsetProcessResult(JDFElement.EnumNodeStatus endStatus)Deprecated.JDFResourceAuditsetResourceAudit(StatusUtil.AmountBag bag, JDFAutoResourceAudit.EnumReason reason)Deprecated.voidsetTrackWaste(JDFResourceLink rl, boolean b)Deprecated.set waste tracking on or off for the resourcelink rl
-
-
-
Field Detail
-
m_vPartMap
protected VJDFAttributeMap m_vPartMap
Deprecated.
-
-
Constructor Detail
-
StatusUtil
public StatusUtil(JDFNode node, VJDFAttributeMap vPartMap, VElement vResLinks)
Deprecated.construct a StatusUtil for a node n- Parameters:
node- the JDFNode that is being processedvPartMap- the map of Parts that is being processed excluding the waste partitionvResLinks- the reslinks that are tracked for amount handling
-
-
Method Detail
-
getBag
public static StatusUtil.AmountBag getBag(java.lang.String refID, StatusUtil.AmountBag[] bags)
Deprecated.get the matching AmountBag out of an array- Parameters:
refID- the refID of the bag - this MUST match the refID of a ResourceLinkbags- the array of bags to search in- Returns:
- the AmountBag with matching refID, null if none found or bags is null
-
getLinkAmount
public org.cip4.jdflib.util.StatusUtil.LinkAmount getLinkAmount(java.lang.String refID)
Deprecated.get the matching LinkAmount out of this- Parameters:
refID- the refID of the bag - this MUST match the refID of a ResourceLink- Returns:
- the LinkAmount with matching refID, null if none found or bags is null
-
getFirstRefID
public java.lang.String getFirstRefID()
Deprecated.get the refID of the first resource, i.e. the Resource that is being tracked in status messages- Returns:
- the rRef of the prime resource link
-
setPhase
public void setPhase(JDFElement.EnumNodeStatus nodeStatus, java.lang.String nodeStatusDetails, JDFAutoDeviceInfo.EnumDeviceStatus deviceStatus, java.lang.String deviceStatusDetails, StatusUtil.AmountBag[] amounts)
Deprecated.Set the Status and StatusDetails of this node update the PhaseTime audit or append a new phasetime as appropriate also prepare a status JMF- Parameters:
nodeStatus- the new status of the nodenodeStatusDetails- the new statusDetails of the nodedeviceStatus- the new status of the devicedeviceStatusDetails- the new statusDetails of the deviceamounts-
-
getDocJMFPhaseTime
public JDFDoc getDocJMFPhaseTime()
Deprecated.- Returns:
- the docJMFPhaseTime
-
getDocJMFResource
public JDFDoc getDocJMFResource()
Deprecated.- Returns:
- the docJMFResource
-
getDeviceID
public java.lang.String getDeviceID()
Deprecated.- Returns:
- the m_deviceID
-
setDeviceID
public void setDeviceID(java.lang.String deviceid)
Deprecated.- Parameters:
deviceid- the deviceID to set
-
setTrackWaste
public void setTrackWaste(JDFResourceLink rl, boolean b)
Deprecated.set waste tracking on or off for the resourcelink rl- Parameters:
rl- the resourcelink to the resource to trackb- tracking on or off
-
setCopyResInResInfo
public void setCopyResInResInfo(JDFResourceLink rl, boolean b)
Deprecated.set copying the resource into resourceInfo on or off for the resourcelink rl- Parameters:
rl- the resourcelink to the resource to copyb- tracking on or off
-
setResourceAudit
public JDFResourceAudit setResourceAudit(StatusUtil.AmountBag bag, JDFAutoResourceAudit.EnumReason reason)
Deprecated.- Parameters:
bag-reason-- Returns:
- JDFResourceAudit the generated audit
-
setProcessResult
public JDFProcessRun setProcessResult(JDFElement.EnumNodeStatus endStatus)
Deprecated.- Parameters:
endStatus-- Returns:
-
-