Module EDModule :: Class EDModule
[hide private]
[frames] | no frames]

Class EDModule

source code

       object --+        
                |        
EDObject.EDObject --+    
                    |    
  EDLogging.EDLogging --+
                        |
                       EDModule

This class is a container for a module, it contains its name, it's path and the dict of modules

Instance Methods [hide private]
 
__init__(self, _strModuleName, _strMethodVersion=None)
Constructor of the main pure virtual class.
source code
 
preImport(self, _strPath=None, _strMethodVersion=None)
Load the module in memory
source code
 
retrieveVersion(self, _strMethodVersion=None)
Try to retrieve the version of a module using an attribute or a method ...
source code
 
unImport(self)
Method that unload a module from the system memory.
source code
 
getName(self) source code
 
getVersion(self) source code
 
setVersion(self, _version) source code
 
getModule(self) source code
 
getPath(self) source code
 
getDictSubModules(self) source code

Inherited from EDLogging.EDLogging: ASSERT, DEBUG, ERROR, WARNING, error, isVerboseDebug, log, screen, setAllLogLevels, setLogFileName, setLogFileOff, setLogLevel, setTestOff, setTestOn, setVerboseDebugOff, setVerboseDebugOn, setVerboseOff, setVerboseOn, unitTest, warning, writeErrorTrace

Inherited from EDObject.EDObject: getClassName, getId, getRunTime, getSemaphoreValue, getTimeEnd, getTimeInit, locked, setTimeEnd, setTimeInit, synchronizeOff, synchronizeOn

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _EDObject__iId_class = 3
Properties [hide private]
  name
  version
  module
  path
  dictSubModules

Inherited from object: __class__

Method Details [hide private]

__init__(self, _strModuleName, _strMethodVersion=None)
(Constructor)

source code 

Constructor of the main pure virtual class.
This constructor implements:
- the creation of the semaphore
- definition of timer object (uninitialized as potentially not used)

Overrides: object.__init__
(inherited documentation)

preImport(self, _strPath=None, _strMethodVersion=None)

source code 

Load the module in memory

Parameters:
  • _strPath - Path to the module to import
  • _strMethodVersion - property or method to get the version number (should return a string)
Returns:
reference to the module loaded

retrieveVersion(self, _strMethodVersion=None)

source code 

Try to retrieve the version of a module using an attribute or a method ...

Parameters:
  • _strMethodVersion - property or method to get the version number (should return a string)
Returns:
Version number

Property Details [hide private]

name

Get Method:
getName(self)

version

Get Method:
getVersion(self)
Set Method:
setVersion(self, _version)

module

Get Method:
getModule(self)

path

Get Method:
getPath(self)

dictSubModules

Get Method:
getDictSubModules(self)