Package pyraf :: Module gki :: Class GkiController
[hide private]
[frames] | no frames]

Class GkiController

source code


Proxy that switches between interactive and other kernels

This can gracefully handle changes in kernels which can appear in any open workstation instruction. It also uses lazy instantiation of the real kernel (which can be expensive). In one sense it is a factory class that will instantiate the necessary kernels as they are requested.

Most external modules should access the gki functions through an instance of this class, gki.kernel.

Instance Methods [hide private]
 
__init__(self) source code
 
taskStart(self, name)
Hook for stuff that needs to be done at start of task
source code
 
taskDone(self, name)
Hook for stuff that needs to be done at completion of task
source code
 
control(self, gkiMetacode) source code
 
control_openws(self, arg) source code
 
openKernel(self, device=None)
Open kernel specified by device or by current value of stdgraph
source code
 
getDevice(self, device=None)
Starting with stdgraph, drill until a device is found in the graphcap or isn't
source code

Inherited from GkiProxy: __del__, append, clear, clearReturnData, errorMessage, flush, gcur, getBuffer, getStderr, getStdin, getStdout, popStdio, prepareToRedraw, pushStdio, redrawOriginal, translate, undoN

Inherited from GkiKernel: createFunctionTables, pre_imcur, preferTtyIpc, redoN

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: GkiKernel.__init__

taskStart(self, name)

source code 

Hook for stuff that needs to be done at start of task

Overrides: GkiKernel.taskStart
(inherited documentation)

taskDone(self, name)

source code 

Hook for stuff that needs to be done at completion of task

Overrides: GkiKernel.taskDone
(inherited documentation)

control(self, gkiMetacode)

source code 
Overrides: GkiKernel.control

openKernel(self, device=None)

source code 

Open kernel specified by device or by current value of stdgraph

Overrides: GkiProxy.openKernel