Disperser
PyCellChemistry documentation index
/Users/lidia/main/research/acbook/web/website/ac-home/pycellchem/pycellchem-2.0/src/Disperser.py

#---------------------------------------------------------------------------
#
# Disperser.py: implementation of Thomas Meyer's disperser protocol on
# a fixed (example) network topology.
#
# This protocol implements a discretized mass-conserving stochastic
# diffusion process over an arbitrary network of interconnected computers.
# Here an example network with 4 nodes is shown.
#
# References:
#
# T. Meyer and C. Tschudin. Chemical networking protocols. Proc. 8th
# ACM Workshop on Hot Topics in Networks (HotNets-VIII), Oct. 2009.
#
# T. Meyer, L. Yamamoto, and C. Tschudin. An artificial chemistry
# for networking. Bio-Inspired Computing and Communication, volume
# 5151 of LNCS, pages 45-57. Springer, 2008.
#
# Python implementation by Lidia Yamamoto, Belgium, June 2013
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Copyright (C) 2015 Lidia A. R. Yamamoto
# Contact: http://www.artificial-chemistries.org/
#
# This file is part of PyCellChemistry.
#
# PyCellChemistry is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 3, as published by the Free Software Foundation.
#
# PyCellChemistry 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PyCellChemistry, see file COPYING. If not, see
# http://www.gnu.org/licenses/
#


Modules
numpy
sys


Classes
Disperser


class Disperser
Methods defined here:
__init__(self)
create networked topology inside single reaction vessel:
multiple vessels are mimicked via different groups of molecular
species
mkreactions(self, topo)
constructs the list of reactions (with their catalysts)
automatically for a given topology 'topo';
'topo' is a list of links between 2 nodes (reactors);
each link is described by a pair [id1, id2] of node ids
identifying the 2 nodes to be interconnected.
CAUTION: only works with node ids made of single digits!!
run(self, finalvt)
run the disperser protocol until simulation time finalvt


Generated automatically by pydoc, July 10, 2015