Class JDFPhaseTime

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

public class JDFPhaseTime extends JDFAutoPhaseTime implements ISignalAudit
See Also:
  • Constructor Details

    • JDFPhaseTime

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

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

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

    • toString

      public String toString()
      toString()
      Overrides:
      toString in class JDFAudit
      Returns:
      String
      See Also:
    • 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 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(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:
      IllegalArgumentException - if the vectors have different lengths
    • toSignalJMF

      public JDFJMF toSignalJMF()
      Specified by:
      toSignalJMF in interface ISignalAudit
      Returns:
      JDFJMF a JMF with a Signal that matches this
      See Also:
    • compare

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

      public void setPhase(JDFJobPhase phase)
      Parameters:
      phase -