Class JDFDeviceInfo

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

public class JDFDeviceInfo extends JDFAutoDeviceInfo
See Also:
  • Constructor Details

    • JDFDeviceInfo

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

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

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

    • getTheAttributeInfo

      protected AttributeInfo getTheAttributeInfo()
      Overrides:
      getTheAttributeInfo in class JDFAutoDeviceInfo
      Returns:
      See Also:
    • setXJDFDeviceCondition

      public void setXJDFDeviceCondition(JDFAutoDeviceInfo.EnumDeviceCondition enumVar)
    • setXJDFDeviceCondition

      public void setXJDFDeviceCondition(JDFDeviceInfo.eXjdfDeviceCondition enumVar)
    • getXJDFDeviceCondition

      public JDFDeviceInfo.eXjdfDeviceCondition getXJDFDeviceCondition()
    • setCounterUnit

      public void setCounterUnit(JDFElement.eUnit unit)
    • getCountUnitEnum

      public JDFElement.eUnit getCountUnitEnum()
      Returns:
    • getTheElementInfo

      protected ElementInfo getTheElementInfo()
      Overrides:
      getTheElementInfo in class JDFAutoDeviceInfo
      Returns:
      the elementinfo
    • 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 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 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 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()
      (30) append element Event
      Overrides:
      appendEvent in class JDFAutoDeviceInfo
      Returns:
      JDFEvent the element
    • appendEvent

      public JDFEvent appendEvent(String eventID)
      (30) append element Event
      Returns:
      JDFEvent the element
    • getXJMFStatus

      public XJDFEnums.eDeviceStatus getXJMFStatus()
    • setXJMFStatus

      public void setXJMFStatus(XJDFEnums.eDeviceStatus s)
    • 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 Collection<JDFModuleInfo> getAllModuleInfo()
      XJDF only!
      Returns:
    • appendModuleInfo

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

      public JDFModuleInfo getModuleInfo(String id)
    • getDeviceCondition

      public JDFAutoDeviceInfo.EnumDeviceCondition getDeviceCondition()
      Description copied from class: JDFAutoDeviceInfo
      (9) get attribute DeviceCondition
      Overrides:
      getDeviceCondition in class JDFAutoDeviceInfo
      Returns:
      the value of the attribute