Class JDFDeviceInfo

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, 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 JDFDeviceInfo
    extends JDFAutoDeviceInfo
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFDeviceInfo

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

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

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

      • getJobCount

        @Deprecated
        public int getJobCount()
        Deprecated.
        use numChildElements(ElementName.JOBPHASE,null)
        Method getJobCount.
        Returns:
        int
      • createJobPhaseFromPhaseTime

        public JDFJobPhase createJobPhaseFromPhaseTime​(JDFPhaseTime pt)
        create a JobPhase message from a phaseTime Audit
        Parameters:
        pt - the phasetime audit
        Returns:
        JDFJobPhase: the jobphase element that has been filled by the phaseTime
      • getDeviceID

        public java.lang.String getDeviceID()
        gets the deviceID from @DeviceID if it exists, otherwise searches Device/@DeviceID
        Overrides:
        getDeviceID in class JDFAutoDeviceInfo
        Returns:
        the appropriate deviceID for this deviceInfo
      • getDescriptiveName

        public java.lang.String getDescriptiveName()
        gets the DescriptiveName from @DescriptiveName if it exists, otherwise searches Device/@DescriptiveName
        Overrides:
        getDescriptiveName in class JDFElement
        Returns:
        the appropriate deviceID for this deviceInfo
      • isSamePhase

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

        public boolean mergeLastPhase​(JDFDeviceInfo lastInfo)
        creates a new deviceInfo that spans lastphase and this phase note that phase amounts are not merged when the phase start times are identical.
        In this case, we assume that the more recent phase already contains the sum of both
        Parameters:
        lastInfo - the deviceInfo to merge
        Returns:
        true if successful
      • setDevice

        public void setDevice​(JDFDevice device,
                              boolean bCopy)
        set the parameters of this to the values from device
        Parameters:
        device - the device to copy here
        bCopy - if true, also copy the device element
      • getCreateEvent

        public JDFEvent getCreateEvent​(int iSkip)
        (26) getCreateEvent
        Overrides:
        getCreateEvent in class JDFAutoDeviceInfo
        Parameters:
        iSkip - number of elements to skip
        Returns:
        JDFEvent the element
      • getEvent

        public JDFEvent getEvent​(int iSkip)
        (27) const get element Event
        Overrides:
        getEvent in class JDFAutoDeviceInfo
        Parameters:
        iSkip - number of elements to skip
        Returns:
        JDFEvent the element default is getEvent(0)
      • getAllEvent

        public java.util.Collection<JDFEvent> getAllEvent()
        Get all Event from the current element
        Overrides:
        getAllEvent in class JDFAutoDeviceInfo
        Returns:
        Collection, null if none are available
      • appendEvent

        public JDFEvent appendEvent​(java.lang.String eventID)
        (30) append element Event
        Returns:
        JDFEvent the element
      • getModuleInfo

        public JDFModuleInfo getModuleInfo()
        XJDF only!
        Returns:
      • getCreateModuleInfo

        public JDFModuleInfo getCreateModuleInfo()
        XJDF only!
        Returns:
      • getCreateModuleInfo

        public JDFModuleInfo getCreateModuleInfo​(int iSkip)
        XJDF only!
        Parameters:
        iSkip -
        Returns:
      • getModuleInfo

        public JDFModuleInfo getModuleInfo​(int iSkip)
        XJDF only!
        Parameters:
        iSkip -
        Returns:
      • getAllModuleInfo

        public java.util.Collection<JDFModuleInfo> getAllModuleInfo()
        XJDF only!
        Returns:
      • appendModuleInfo

        public JDFModuleInfo appendModuleInfo()
        XJDF only!
        Returns:
      • getModuleInfo

        public JDFModuleInfo getModuleInfo​(java.lang.String id)