Class JDFModulePool

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 JDFModulePool extends JDFAutoModulePool
See Also:
  • Constructor Details

    • JDFModulePool

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

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

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

    • toString

      public String toString()
      toString
      Overrides:
      toString in class KElement
      Returns:
      String
      See Also:
    • getMinAvailability

      public JDFDeviceCap.EnumAvailability getMinAvailability(VString vModuleRefs)
      get the minimum availability
      Parameters:
      vModuleRefs - the list of module ids that are evaluated
      Returns:
      the minimum availability, null in case of an error, for instance if no modulerefs are specified
    • getModuleMap

      public Map getModuleMap()
      get a hashmap that uses ModuleCap/@ID as a key and has the ModuleCap as a value
      Returns:
      the hashmap, null if no modulecaps exist
    • getModuleAvailability

      public static JDFDeviceCap.EnumAvailability getModuleAvailability(ICapabilityElement caps)
      get the module availability based on modulerefs and availability
      Parameters:
      caps - either A State, devcap or devcaps
      Returns:
    • appendModuleRef

      public static JDFModuleCap appendModuleRef(ICapabilityElement caps, String id)
      Parameters:
      caps - the element to append the ref to
      Returns:
      JDFModuleCap the Modulecap that id refers tp
    • getModuleCap

      public JDFModuleCap getModuleCap(String id)
      get a modulecap with a given id
      Parameters:
      id - the modulecap id
      Returns:
      the modulecap
    • getCreateModuleCap

      public JDFModuleCap getCreateModuleCap(String id)
      get a modulecap with a given id, create it if it does not exist
      Parameters:
      id - the modulecap id
      Returns:
      the modulecap