Class JDFProcessRun

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Comparator<JDFAudit>, IStreamWriter, org.w3c.dom.Element, org.w3c.dom.ElementTraversal, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo

    public class JDFProcessRun
    extends JDFAutoProcessRun
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFProcessRun

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

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

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

      • toString

        public java.lang.String toString()
        toString()
        Overrides:
        toString in class JDFAudit
        Returns:
        String
        See Also:
        Object.toString()
      • 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:
        JDFAudit.init()
      • matches

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