Class JDFPhaseTime

    • Constructor Detail

      • JDFPhaseTime

        public JDFPhaseTime​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                            java.lang.String qualifiedName)
        Constructor for JDFPhaseTime
        Parameters:
        myOwnerDocument -
        qualifiedName -
      • JDFPhaseTime

        public JDFPhaseTime​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                            java.lang.String myNamespaceURI,
                            java.lang.String qualifiedName)
        Constructor for JDFPhaseTime
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
      • JDFPhaseTime

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

      • toString

        public java.lang.String toString()
        toString()
        Overrides:
        toString in class JDFAudit
        Returns:
        String
        See Also:
        Object.toString()
      • 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 in mPart is included
        Overrides:
        hasPartMap in class JDFElement
        Parameters:
        mPart - attribute map to look for
        Returns:
        boolean - returns true if the part exists
      • getUnknownElements

        public VString getUnknownElements​(boolean bIgnorePrivate,
                                          int nMax)
        return a vector of unknown element nodenames

        default: GetInvalidElements(true, 999999)

        Overrides:
        getUnknownElements in class JDFElement
        Parameters:
        bIgnorePrivate - used by JDFElement during the validation
        nMax - maximum size of the returned vector
        Returns:
        Vector - vector of unknown element nodenames !!! Do not change the signature of this method
      • setLinks

        public void setLinks​(VElement vRL)
        copy a Vector of resourceLinks into this PhaseTime
        Parameters:
        vRL - the Vector of resourceLinks to copy - the order is significant, because the first rl will be used to fill the Amount in Signal/DeviceInfo/JobPhase
      • getLink

        public JDFResourceLink getLink​(int iSkip)
        return the ResourceLink in this, null if none exists
        Parameters:
        iSkip - the nTh resourceLink to retrieve
        Returns:
        JDFResourceLink - this phaseTimes ResourceLink
      • getLinkVector

        public VElement getLinkVector()
        return the ResourceLink in this, null if none exists
        Returns:
        JDFResourceLink - this phaseTimes ResourceLink
      • getDeviceID

        public java.lang.String getDeviceID()
        gets the DeviceID from the first child device, null if none was set
        Returns:
        the deviceID
      • getDeviceIDs

        public VString getDeviceIDs()
        gets the DeviceID from all child devices, null if none was set
        Returns:
        the deviceID
      • setDeviceID

        public void setDeviceID​(java.lang.String deviceID)
        set Device/@DeviceID
        Parameters:
        deviceID -
      • getDuration

        public JDFDuration getDuration()
        get the implied duration from Start and End
        Returns:
        JDFDuration the duration
      • setModules

        public VElement setModules​(VString moduleIDs,
                                   VString moduleTypes)
        Parameters:
        moduleIDs - the list of module ids to add, if null: nop
        moduleTypes -
        Returns:
        the list of ModulePhase element
        Throws:
        java.lang.IllegalArgumentException - if the vectors have different lengths
      • compare

        public int compare​(JDFAudit a1,
                           JDFAudit a2)
        sort by timestamp using the end time
        Specified by:
        compare in interface java.util.Comparator<JDFAudit>
        Overrides:
        compare in class JDFAudit
        Parameters:
        a1 - an audit
        a2 - another audit
        Returns:
        See Also:
        Comparator.compare(java.lang.Object, java.lang.Object), Comparator.compare(java.lang.Object, java.lang.Object)
      • setPhase

        public void setPhase​(JDFJobPhase phase)
        Parameters:
        phase -