Package org.cip4.jdflib.util
Class StatusUtil
java.lang.Object
org.cip4.jdflib.util.StatusUtil
Deprecated.
- use StatusCounter
Utility class for status JDF and JMF
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassDeprecated.container class to set amounts and waste in phaseTime -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStatusUtil(JDFNode node, VJDFAttributeMap vPartMap, VElement vResLinks) Deprecated.construct a StatusUtil for a node n -
Method Summary
Modifier and TypeMethodDescriptionstatic StatusUtil.AmountBaggetBag(String refID, StatusUtil.AmountBag[] bags) Deprecated.get the matching AmountBag out of an arrayDeprecated.Deprecated.Deprecated.Deprecated.get the refID of the first resource, i.e.org.cip4.jdflib.util.StatusUtil.LinkAmountgetLinkAmount(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(String deviceid) Deprecated.voidsetPhase(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 JMFsetProcessResult(JDFElement.EnumNodeStatus endStatus) Deprecated.Deprecated.voidsetTrackWaste(JDFResourceLink rl, boolean b) Deprecated.set waste tracking on or off for the resourcelink rl
-
Field Details
-
m_vPartMap
Deprecated.
-
-
Constructor Details
-
StatusUtil
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 Details
-
getBag
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
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
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, 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- 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
Deprecated.- Returns:
- the docJMFPhaseTime
-
getDocJMFResource
Deprecated.- Returns:
- the docJMFResource
-
getDeviceID
Deprecated.- Returns:
- the m_deviceID
-
setDeviceID
Deprecated.- Parameters:
deviceid- the deviceID to set
-
setTrackWaste
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
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
Deprecated.- Parameters:
endStatus-- Returns:
-