VisionEgg.PyroApps.DropinServer

Package VisionEgg :: Package PyroApps :: Module DropinServer |
[frames] | no frames]

# Source Code for Module VisionEgg.PyroApps.DropinServer

     1  # The Vision Egg: DropinServer
     2  #
     3  # Copyright (C) 2004 Imran S. Ali, Lachlan Dowd, Andrew Straw
     4  # Copyright (C) 2004 California Institute of Technology
     5  #
     6  # Authors: Imran S. Ali, Lachlan Dowd, Andrew Straw
     7  # URL: <http://www.visionegg.org/>
     8  #
     9  # Distributed under the terms of the GNU Lesser General Public License
    10  # (LGPL). See LICENSE.TXT that came with this file.
    11  #
    12  # $Id$
    13
    14  import VisionEgg, string
    15
    16  import sys, os, math
    17  import VisionEgg.Core
    18  import VisionEgg.FlowControl
    19  import VisionEgg.Textures
    20  import VisionEgg.SphereMap
    21  import VisionEgg.PyroHelpers
    22  import Pyro.core
    23
    24  from VisionEgg.PyroApps.ScreenPositionServer import ScreenPositionMetaController
    25  from VisionEgg.PyroApps.ScreenPositionGUI import ScreenPositionParameters
    26  from VisionEgg.PyroApps.DropinGUI import DropinMetaParameters
    27
    28 -class DropinMetaController( Pyro.core.ObjBase ):
    29 -    def __init__(self,screen,presentation,stimuli):
    30          Pyro.core.ObjBase.__init__(self)
    31          self.meta_params = DropinMetaParameters()
    32          self.p = presentation
    33          print 'DropinMetaController presentation',self.p
    34
    35 -    def get_parameters(self):
    36          return self.meta_params
    37
    38 -    def set_parameters(self, new_parameters):
    39          self.meta_params = new_parameters
    40          self.update()
    41
    42 -    def update(self):
    43          pass
    44
    45 -    def go(self):
    46          self.p.parameters.enter_go_loop = 1
    47
    48 -    def quit_server(self):
    49          self.p.parameters.quit = 1
    50
    51 -def get_meta_controller_class():
    52      return DropinMetaController
    53
    54 -def make_stimuli():
    55      pass
    56
    57 -def get_meta_controller_stimkey():
    58      return "dropin_server"
    59