Class JDFModulePool

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

      • JDFModulePool

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

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

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

      • toString

        public java.lang.String toString()
        toString
        Overrides:
        toString in class KElement
        Returns:
        String
        See Also:
        Object.toString()
      • 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 java.util.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,
                                                   java.lang.String id)
        Parameters:
        caps - the element to append the ref to
        Returns:
        JDFModuleCap the Modulecap that id refers tp
      • getModuleCap

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

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