def __init__(self, sim, timeout=<NUM_LIT:10>, wait=<NUM_LIT>, **kwargs):
if int(timeout) <= <NUM_LIT:0>:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'.format(timeout))<EOL><DEDENT>elif wait < <NUM_LIT:0>:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(wait))<EOL><DEDENT>self.__sim = sim<EOL>self.__timeout = timeout<EOL>self.__wait = wait<EOL>self.__kwargs = kwargs<EOL>self.__last = (<NUM_LIT:0.0>, <NUM_LIT:0.0>)<EOL>
Constructor.

        Parameters
        ----------
        sim : Simulator
            A wrapped Simulator object
        timeout : float, optional
            An interval to update the progress bar. Given as seconds.
            Default is 10.
        wait : float, optional
            A waiting time for refleshing the progress bar.
            Given as seconds. Default is 0.3.