Class JDFJobPhase

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, INodeIdentifiable, 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 JDFJobPhase
    extends JDFAutoJobPhase
    implements INodeIdentifiable
    describes the actual status of jobs in a device Note that the old EnumStatus local class has been move to @see JDFNode.EnumNodeStatus
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFJobPhase

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

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

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

      • getStatusDetails

        public java.lang.String getStatusDetails()
        Returns detailed status information.
        Overrides:
        getStatusDetails in class JDFAutoJobPhase
        Returns:
        String
      • getQueueEntryID

        public java.lang.String getQueueEntryID()
        Method getQueueEntryID.
        Overrides:
        getQueueEntryID in class JDFAutoJobPhase
        Returns:
        String
      • getJobID

        public java.lang.String getJobID()
        Method getJobID.
        Overrides:
        getJobID in class JDFAutoJobPhase
        Returns:
        String
      • getJobPartID

        public java.lang.String getJobPartID()
        Method getJobID.
        Overrides:
        getJobPartID in class JDFAutoJobPhase
        Returns:
        String
      • setPartMap

        public void setPartMap​(JDFAttributeMap m)
        set part to the one defined in mPart
        Overrides:
        setPartMap in class JDFElement
        Parameters:
        m - attribute map for the part to set
      • removePartMap

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

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

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

        public JDFNode getCreateNode()
        get a node, create if it doesn't exist
        Returns:
        the node
      • appendNode

        public JDFNode appendNode()
        append a node
        Returns:
        the appended node
      • applyNode

        public void applyNode​(JDFNode node)
        apply all values of a JDF Node to this
        Parameters:
        node - the node to apply
      • getNode

        public JDFNode getNode()
        get node
        Returns:
        the node
      • createModuleStatusFromModulePhase

        public JDFModuleStatus createModuleStatusFromModulePhase​(JDFModulePhase mp)
        creates a new ModuleStatus in this based on the values in mp generally used to create messages from audits
        Parameters:
        mp - the modulephase to copy
        Returns:
        the new ModuleStatus element
      • getAmountDifference

        public double getAmountDifference​(JDFJobPhase lastphase)
        return the differential amount produced between this phase and lastphase
        Parameters:
        lastphase - the phase
        Returns:
      • getWasteDifference

        public double getWasteDifference​(JDFJobPhase lastphase)
        return the differential waste amount produced between this phase and lastphase
        Parameters:
        lastphase -
        Returns:
      • isSamePhase

        public boolean isSamePhase​(JDFJobPhase lastphase,
                                   boolean bExact)
        returns true if this is the same phase, i.e. the
        Parameters:
        lastphase - the phase to compare with
        bExact - if true, use startTime as hook, else compare stati
        Returns:
      • mergeLastPhase

        public boolean mergeLastPhase​(JDFJobPhase lastphase)
        creates a new phasetime that spans lastphase and this phase
        assume that amounts are correctly handled id starttimes are identical
        Parameters:
        lastphase - the phase to merge
        Returns:
        true if successful
      • getPhaseAmount

        public double getPhaseAmount()
        returns the phase amount, defaults to amount if not specified
        Overrides:
        getPhaseAmount in class JDFAutoJobPhase
        Returns:
        double the value of the attribute
      • getPhaseStartTime

        public JDFDate getPhaseStartTime()
        returns the phase starttime, defaults to starttime if not specified
        Overrides:
        getPhaseStartTime in class JDFAutoJobPhase
        Returns:
        JDFDate the value of the attribute
      • getPhaseWaste

        public double getPhaseWaste()
        returns the phase waste amount, defaults to waste if not specified
        Overrides:
        getPhaseWaste in class JDFAutoJobPhase
        Returns:
        double the value of the attribute