Class JDFProcessRun

java.lang.Object
org.apache.xerces.dom.NodeImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
All Implemented Interfaces:
Serializable, Cloneable, Comparator<JDFAudit>, IStreamWriter, Element, ElementTraversal, EventTarget, Node, NodeList, TypeInfo

public class JDFProcessRun extends JDFAutoProcessRun
See Also:
  • Constructor Details

    • JDFProcessRun

      public JDFProcessRun(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String qualifiedName) throws DOMException
      Constructor for JDFProcessRun
      Parameters:
      myOwnerDocument -
      qualifiedName -
      Throws:
      DOMException
    • JDFProcessRun

      public JDFProcessRun(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName) throws DOMException
      Constructor for JDFProcessRun
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
      Throws:
      DOMException
    • JDFProcessRun

      public JDFProcessRun(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument, String myNamespaceURI, String qualifiedName, String myLocalName) throws DOMException
      Constructor for JDFProcessRun
      Parameters:
      myOwnerDocument -
      myNamespaceURI -
      qualifiedName -
      myLocalName -
      Throws:
      DOMException
  • Method Details

    • toString

      public String toString()
      toString()
      Overrides:
      toString in class JDFAudit
      Returns:
      String
      See Also:
    • setDurationSeconds

      public void setDurationSeconds(long seconds) throws JDFException
      set the duration in seconds
      Parameters:
      seconds - the value to set
      Throws:
      JDFException
    • getDurationSeconds

      public long getDurationSeconds()
      get the duration in seconds
      Returns:
      the duration value in seconds, 0 if duration does not exist
    • getDuration

      public JDFDuration getDuration()
      get the explicit or implied duration specified by Start and End
      Overrides:
      getDuration in class JDFAutoProcessRun
      Returns:
      JDFDuration the duration
    • setPartMapVector

      public void setPartMapVector(VJDFAttributeMap vParts)
      set all parts to those defined in vParts
      Overrides:
      setPartMapVector in class JDFElement
      Parameters:
      vParts - vector of attribute maps for the parts
    • setPartMap

      public void setPartMap(JDFAttributeMap mPart)
      set all parts to those defined by mPart
      Overrides:
      setPartMap in class JDFElement
      Parameters:
      mPart - attribute map for the part to set
    • removePartMap

      public void removePartMap(JDFAttributeMap mPart)
      remove the part defined by mPart
      Overrides:
      removePartMap in class JDFElement
      Parameters:
      mPart - attribute map for the part to remove
    • hasPartMap

      public boolean hasPartMap(JDFAttributeMap mPart)
      check whether the part defined by mPart is included
      Overrides:
      hasPartMap in class JDFElement
      Parameters:
      mPart - attribute map to look for
      Returns:
      boolean - returns true if the part exists
    • addPhase

      public void addPhase(JDFPhaseTime pt)
      add the active times in the PhaseTime pt to this processrun
      Parameters:
      pt - the PhaseTimes to add
    • ensureNotLonger

      public void ensureNotLonger()
      ensure that duration matches end-start,
      i.e. that duration is never longer than the full preiod between start and end
    • addDuration

      public void addDuration(long seconds)
      add delta seconds to duration and set the updated attribute value
      Parameters:
      seconds - duration to add in seconds
    • init

      public boolean init()
      also sets an end time for this
      Overrides:
      init in class JDFAudit
      Returns:
      boolean
      See Also:
    • matches

      public boolean matches(JDFAudit audit)
      returns true if audit belongs to this processrun
      Parameters:
      audit -
      Returns: