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

# Module SimulationTrace

source code

    SimulationTrace 2.1 Traces execution of SimPy models.
    Implements SimPy Processes, Resources, Buffers, and the backbone simulation
    scheduling by coroutine calls. Provides data collection through classes
    Monitor and Tally.
    Based on generators (Python 2.3 and later; not 3.0)

    LICENSE:
    Copyright (C) 2002, 2005, 2006, 2007, 2008  Klaus G. Muller, Tony Vignaux
    mailto: kgmuller@xs4all.nl and Tony.Vignaux@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: 444 $ $Date: 2010-04-02 05:59:43 +0200 (Fri, 02 Apr 2010) $

Classes | [hide private]
| SimulationTrace
| Trace

Functions | [hide private]
trace_dispatch(trace, command, func) Returns a wrapper for ``func`` which will record the dispatch in the trace log. | source code
step() Executes the next uncancelled event in the eventqueue. | source code
peek() Returns the time of the next event or infinity, if no more events are scheduled. | source code

Variables | [hide private]
| __TESTING = `False`
| version = ``'``2.1 $Revision: 444 $ $Date: 2010-04-02 05:59:43 +02``...``
| trace = `< Instance of Trace, id 1515468`...``

Variables Details | [hide private]

  ### version Value:
      '2.1 $Revision: 444 $ $Date: 2010-04-02 05:59:43 +0200 (Fri, 02 Apr 20
      10) $'

  ### trace Value:
      < Instance of Trace, id 151546828:
      	.tracego=True
      	.end=10000000000
      	.start=0
      	.toTrace=['hold', 'activate', 'cancel', 'reactivate', 'passivate', 'r
      equest', 'release', 'interrupt', 'terminated', 'waitevent', 'queueeven
      t', 'signal', 'waituntil', 'put', 'get']
      	.outfile=<epydoc.docintrospecter._DevNull instance at 0x89b656c>
      ...