Package VisionEgg :: Module FlowControl :: Class EncapsulatedController
[frames] | no frames]

Class EncapsulatedController

source code

object --+    
         |    
Controller --+
             |
            EncapsulatedController

Set parameters by encapsulating another Controller.

Allows a new instance of Controller to control the same parameter
as an old instance.

You probably won't ever have to use this class directly.  Both the
VisionEgg.TCPController.TCPController and
VisionEgg.PyroHelpers.PyroEncapsulatedController classes subclass
this class.



Instance Methods
 
__init__(self, initial_controller)
Create instance of Controller.
source code
 
set_new_controller(self, new_controller)
Call this to encapsulate a (new) controller.
source code
 
during_go_eval(self)
Called by Presentation.
source code
 
between_go_eval(self)
Called by Presentation.
source code

Inherited from Controller: evaluate_now, returns_type, set_eval_frequency

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

Class Variables

Inherited from Controller: EVERY_FRAME, FRAMES_ABSOLUTE, FRAMES_SINCE_GO, NEVER, NOT_BETWEEN_GO, NOT_DURING_GO, ONCE, TIME_INDEPENDENT, TIME_SEC_ABSOLUTE, TIME_SEC_SINCE_GO, TRANSITIONS, flag_dictionary

Properties

Inherited from object: __class__

Method Details

__init__(self, initial_controller)
(Constructor)

source code 
Create instance of Controller.

Arguments:

eval_frequency -- Int, bitwise "or" of flags
temporal_variables -- Int, bitwise "or" of flags
return_type -- Set to type() of the parameter under control

Overrides: Controller.__init__
(inherited documentation)

during_go_eval(self)

source code 
Called by Presentation. Overrides method in Controller base class.

Overrides: Controller.during_go_eval

between_go_eval(self)

source code 
Called by Presentation. Overrides method in Controller base class.

Overrides: Controller.between_go_eval