Package mrv :: Package automation :: Module workflow :: Class Workflow :: Class ProcessData
[hide private]
[frames] | no frames]

Class ProcessData

source code

object --+
         |
        Workflow.ProcessData

Allows to store additional information with each process called during the workflow
Instance Methods [hide private]
 
__init__(self, process, plug, mode)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__repr__(self)
repr(x)
source code
 
elapsed()
Returns: time to process the call
source code
 
setResult(self, result)
Set the given result
source code
 
result(self)
Returns: result stored in this instance, or None if it is not present or not alive
source code

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

Properties [hide private]
  _result
  endtime
  exception
  index
  mode
  plug
  process
  starttime

Inherited from object: __class__

Method Details [hide private]

__init__(self, process, plug, mode)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

elapsed()

source code 
Returns:
time to process the call

setResult(self, result)

source code 
Set the given result

Note: uses weak references as the tracking structure should not cause a possible mutation of the program flow ( as instances stay alive although code expects it to be deleted

result(self)

source code 
Returns:
result stored in this instance, or None if it is not present or not alive