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

Class EDObject

source code

object --+
         |
        EDObject
Known Subclasses:

Virtual base class for all EDNA Objects (classes). It offers some synchronization and locking capabilities to make the code thread safe.

Instance Methods [hide private]
 
__init__(self)
Constructor of the main pure virtual class.
source code
 
getId(self) source code
string
getClassName(self)
Retrieves the name of the class
source code
 
synchronizeOn(self)
This method must be used in together with the method synchronizeOff().
source code
 
synchronizeOff(self)
This method must be used in together with the method synchronizeOn().
source code
integer
getSemaphoreValue(self)
This method should only be used for debugging purpose...
source code
 
locked(self) source code
 
setTimeInit(self)
Initializes the timer for the object
source code
float
getTimeInit(self)
Retrieves the time of initialization
source code
 
setTimeEnd(self)
Set the end of calculation time for the given object
source code
float
getTimeEnd(self)
Retrieves the time of end of task
source code
float
getRunTime(self)
Returns: the RunTime for the given object
source code

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

Class Variables [hide private]
  __semaphoreId = Semaphore()
  __iId_class = 0
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(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__

getClassName(self)

source code 

Retrieves the name of the class

Returns: string
the name of the class

synchronizeOn(self)

source code 

This method must be used in together with the method synchronizeOff(). This method makes the code threadsafe till the method synchronizeOff is called.

getSemaphoreValue(self)

source code 

This method should only be used for debugging purpose...

Returns: integer
the "internal" value of the semaphore

getTimeInit(self)

source code 

Retrieves the time of initialization

Returns: float
number of seconds since epoch

getTimeEnd(self)

source code 

Retrieves the time of end of task

Returns: float
number of seconds since epoch

getRunTime(self)

source code 
Returns: float
the RunTime for the given object