Class StatusUtil

java.lang.Object
org.cip4.jdflib.util.StatusUtil

@Deprecated public class StatusUtil extends Object
Deprecated.
- use StatusCounter
Utility class for status JDF and JMF
  • Field Details

  • Constructor Details

    • StatusUtil

      public StatusUtil(JDFNode node, VJDFAttributeMap vPartMap, VElement vResLinks)
      Deprecated.
      construct a StatusUtil for a node n
      Parameters:
      node - the JDFNode that is being processed
      vPartMap - the map of Parts that is being processed excluding the waste partition
      vResLinks - the reslinks that are tracked for amount handling
  • Method Details

    • getBag

      public static StatusUtil.AmountBag getBag(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 ResourceLink
      bags - 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(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 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, 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 node
      nodeStatusDetails - the new statusDetails of the node
      deviceStatus - the new status of the device
      deviceStatusDetails - the new statusDetails of the device
      amounts -
    • getDocJMFPhaseTime

      public JDFDoc getDocJMFPhaseTime()
      Deprecated.
      Returns:
      the docJMFPhaseTime
    • getDocJMFResource

      public JDFDoc getDocJMFResource()
      Deprecated.
      Returns:
      the docJMFResource
    • getDeviceID

      public String getDeviceID()
      Deprecated.
      Returns:
      the m_deviceID
    • setDeviceID

      public void setDeviceID(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 track
      b - 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 copy
      b - tracking on or off
    • setResourceAudit

      Deprecated.
      Parameters:
      bag -
      reason -
      Returns:
      JDFResourceAudit the generated audit
    • setProcessResult

      public JDFProcessRun setProcessResult(JDFElement.EnumNodeStatus endStatus)
      Deprecated.
      Parameters:
      endStatus -
      Returns: