Package SimPy :: Module SimulationStep
[hide private]
[frames] | no frames]

Module SimulationStep

source code

SimulationStep 2.1 Supports stepping through SimPy simulation event - by - event.
Based on generators (Python 2.3 and later; not 3.0)

LICENSE:
Copyright (C) 2002, 2005, 2006, 2007, 2008, 2009, 2010  Klaus G. Muller, Tony Vignaux
mailto: kgmuller at xs4all.nl and Tony.Vignaux at vuw.ac.nz

    This library is free software; you can redistribute it and / or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111 - 1307  USA
END OF LICENSE


Version: 2.1 $Revision: 485 $ $Date: 2010-05-10 09:23:24 +0200 (Mon, 10 May 2010) $

Classes [hide private]
  SimulationStep
Functions [hide private]
 
startStepping() source code
 
stopStepping() source code
 
peek()
Returns the time of the next event or infinity, if no more events are scheduled.
source code
 
step() source code
 
simulate(callback=<function <lambda> at 0x9158fb4>, until=0) source code
Variables [hide private]
  __TESTING = False
  version = '2.1 $Revision: 485 $ $Date: 2010-05-10 09:23:24 +02...
  _step = False
Variables Details [hide private]

version

Value:
'2.1 $Revision: 485 $ $Date: 2010-05-10 09:23:24 +0200 (Mon, 10 May 20\
10) $'