예제 #1
0
    def api(self,
            showComponentName=True,
            showInterfaces=True,
            showProperties=True,
            externalPropInfo=None,
            destfile=None):
        '''
        Inspect interfaces and properties for the component
        '''
        localdef_dest = False
        if destfile == None:
            localdef_dest = True
            destfile = cStringIO.StringIO()

        className = self.__class__.__name__
        if showComponentName == True:
            print >> destfile, className + " [" + str(self.name) + "]:"
        if showInterfaces == True:
            PortSupplier.api(self, destfile=destfile)
        if showProperties == True and self._properties != None:
            PropertySet.api(self, externalPropInfo, destfile=destfile)

        if localdef_dest:
            pydoc.pager(destfile.getvalue())
            destfile.close()
예제 #2
0
 def api(self):
     '''
     Inspect interfaces and properties for the component
     '''
     print "Component [" + str(self._componentName) + "]:"
     PortSupplier.api(self)
     PropertySet.api(self)
예제 #3
0
 def api(self):
     '''
     Inspect interfaces and properties for the component
     '''
     print "Component [" + str(self._componentName) + "]:"
     PortSupplier.api(self)
     PropertySet.api(self)
예제 #4
0
 def api(self, showComponentName=True, showInterfaces=True, showProperties=True, externalPropInfo=None):
     '''
     Inspect interfaces and properties for the component
     '''
     className = self.__class__.__name__
     if showComponentName == True:
         print className+" [" + str(self.name) + "]:"
     if showInterfaces == True:
         PortSupplier.api(self)
     if showProperties == True and self._properties != None:
         PropertySet.api(self, externalPropInfo)
예제 #5
0
 def api(self, showComponentName=True, showInterfaces=True, showProperties=True, externalPropInfo=None):
     '''
     Inspect interfaces and properties for the component
     '''
     className = self.__class__.__name__
     if showComponentName == True:
         print className+" [" + str(self.name) + "]:"
     if showInterfaces == True:
         PortSupplier.api(self)
     if showProperties == True and self._propertySet != None:
         PropertySet.api(self, externalPropInfo)
예제 #6
0
    def api(self, destfile=None):
        '''
        Inspect interfaces and properties for the component
        '''
        localdef_dest = False
        if destfile == None:
            localdef_dest = True
            destfile = cStringIO.StringIO()

        print >>destfile, "Component [" + str(self._componentName) + "]:\n"
        PortSupplier.api(self, destfile=destfile)
        PropertySet.api(self, destfile=destfile)

        if localdef_dest:
            pydoc.pager(destfile.getvalue())
            destfile.close()