ó
ř`9Sc           @   s-   d  d l  Td g Z d e f d     YZ d S(   i˙˙˙˙(   t   *t   MatlabDummyProcessc           B   st   e  Z d  Z e   Z e e  Z e e  Z d   Z	 d	 d  Z d   Z d   Z d d  Z d   Z d   Z RS(
   s#  Class that mimics the interface of a 'MatlabProcess' but does not
    perform any optimization procedures.

    It will fire 'retrievalFinished' immediately after 'startRetrieval'. After
    that, 'getRetrievalOutput' will return the 'retrievalOutput' instance
    passed to the constructor.c         C   s&   t  j |   | g |  _ d  |  _ d  S(   N(   t   QObjectt   __init__t   retrievalOutputst   Nonet   errorMessage(   t   selft   retrievalOutput(    (    s   code\MatlabDummyProcess.pyR   %   s    c         C   s    | |  _  t j d |  j  d S(   sí   Fire 'retrievalFinished' as soon as program control returns to the
        application event loop.

        If 'errorMessage' is not 'None', 'getErrorMessage' will return that
        message afterwards; otherwise, it will return 'None'.i    N(   R   t   QTimert
   singleShott   onInitComplete(   R   R   (    (    s   code\MatlabDummyProcess.pyt   startRetrieval+   s    	c         C   s   d  S(   N(    (   R   (    (    s   code\MatlabDummyProcess.pyt   cancelRetrieval6   s    c         C   s   |  j  S(   N(   R   (   R   (    (    s   code\MatlabDummyProcess.pyt   getErrorMessage9   s    i˙˙˙˙c         C   s   |  j  | S(   N(   R   (   R   t	   iteration(    (    s   code\MatlabDummyProcess.pyt   getRetrievalOutput<   s    c         C   s   |  j  S(   N(   R   (   R   (    (    s   code\MatlabDummyProcess.pyt   getAllRetrievalOutputs?   s    c         C   s   |  j  j   d  S(   N(   t   retrievalFinishedt   emit(   R   (    (    s   code\MatlabDummyProcess.pyR   C   s    N(   t   __name__t
   __module__t   __doc__t
   pyqtSignalR   t   QStringt   outputAvailablet   intt   iterationCompletedR   R   R   R   R   R   R   R   (    (    (    s   code\MatlabDummyProcess.pyR      s   					N(   t   PyQt4.QtCoret   __all__R   R   (    (    (    s   code\MatlabDummyProcess.pyt   <module>   s   
	