@Deprecated public class StatusUtil extends Object
Modifier and Type | Class and Description |
---|---|
class |
StatusUtil.AmountBag
Deprecated.
container class to set amounts and waste in phaseTime
|
Modifier and Type | Field and Description |
---|---|
protected VJDFAttributeMap |
m_vPartMap
Deprecated.
|
Constructor and Description |
---|
StatusUtil(JDFNode node,
VJDFAttributeMap vPartMap,
VElement vResLinks)
Deprecated.
construct a StatusUtil for a node n
|
Modifier and Type | Method and Description |
---|---|
static StatusUtil.AmountBag |
getBag(String refID,
StatusUtil.AmountBag[] bags)
Deprecated.
get the matching AmountBag out of an array
|
String |
getDeviceID()
Deprecated.
|
JDFDoc |
getDocJMFPhaseTime()
Deprecated.
|
JDFDoc |
getDocJMFResource()
Deprecated.
|
String |
getFirstRefID()
Deprecated.
get the refID of the first resource, i.e. the Resource that is being tracked in status messages
|
org.cip4.jdflib.util.StatusUtil.LinkAmount |
getLinkAmount(String refID)
Deprecated.
get the matching LinkAmount out of this
|
void |
setCopyResInResInfo(JDFResourceLink rl,
boolean b)
Deprecated.
set copying the resource into resourceInfo on or off for the resourcelink rl
|
void |
setDeviceID(String deviceid)
Deprecated.
|
void |
setPhase(JDFElement.EnumNodeStatus nodeStatus,
String nodeStatusDetails,
JDFAutoDeviceInfo.EnumDeviceStatus deviceStatus,
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
|
JDFProcessRun |
setProcessResult(JDFElement.EnumNodeStatus endStatus)
Deprecated.
|
JDFResourceAudit |
setResourceAudit(StatusUtil.AmountBag bag,
JDFAutoResourceAudit.EnumReason reason)
Deprecated.
|
void |
setTrackWaste(JDFResourceLink rl,
boolean b)
Deprecated.
set waste tracking on or off for the resourcelink rl
|
protected VJDFAttributeMap m_vPartMap
public StatusUtil(JDFNode node, VJDFAttributeMap vPartMap, VElement vResLinks)
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 handlingpublic static StatusUtil.AmountBag getBag(String refID, StatusUtil.AmountBag[] bags)
refID
- the refID of the bag - this MUST match the refID of a ResourceLinkbags
- the array of bags to search inpublic org.cip4.jdflib.util.StatusUtil.LinkAmount getLinkAmount(String refID)
refID
- the refID of the bag - this MUST match the refID of a ResourceLinkpublic String getFirstRefID()
public void setPhase(JDFElement.EnumNodeStatus nodeStatus, String nodeStatusDetails, JDFAutoDeviceInfo.EnumDeviceStatus deviceStatus, String deviceStatusDetails, StatusUtil.AmountBag[] amounts)
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
- public JDFDoc getDocJMFPhaseTime()
public JDFDoc getDocJMFResource()
public String getDeviceID()
public void setDeviceID(String deviceid)
deviceid
- the deviceID to setpublic void setTrackWaste(JDFResourceLink rl, boolean b)
rl
- the resourcelink to the resource to trackb
- tracking on or offpublic void setCopyResInResInfo(JDFResourceLink rl, boolean b)
rl
- the resourcelink to the resource to copyb
- tracking on or offpublic JDFResourceAudit setResourceAudit(StatusUtil.AmountBag bag, JDFAutoResourceAudit.EnumReason reason)
bag
- reason
- public JDFProcessRun setProcessResult(JDFElement.EnumNodeStatus endStatus)
endStatus
- Copyright © 2018. All rights reserved.