Model component representing a bounded reaction volume.
Methods
A bound set of MonomerPatterns, i.e. a pattern to match a complex.
In BNG terms, a list of patterns combined with the ‘.’ operator.
Methods
Implement our own brand of shallow copy.
The new object will have references to the original compartment, and copies of the monomer_patterns.
The base class for all the things contained within a model.
Methods
Issued by ComponentSet.add when a component is added with the same name as an existing one.
An add-and-read-only container for storing model Components. It behaves mostly like an ordered set, but components can also be retrieved by name or index by using the [] operator (like a dict or list). Components may not be removed or replaced.
Methods
Issued by Component.__init__ when the given name is not valid.
Container for monomers, compartments, parameters, and rules.
Methods
Returns a ComponentSet of the parameters used as compartment sizes
Returns a ComponentSet of the parameters used as initial conditions
Issued by Model constructor when a second model is defined.
Model component representing a protein or other molecule.
Methods
A wildcard monomer which matches any species.
This is only needed where you would use a ‘+’ in BNG.
Methods
A pattern which matches instances of a given monomer, possibly with restrictions on the state of certain sites.
Methods
A wildcard monomer which matches any species, or nothing (no bond).
This is only needed where you would use a ‘?’ in BNG.
Methods
Model component representing a linear combination of species.
May be used in rate law expressions.
Methods
Model component representing a named constant floating point number.
Parameters are used as reaction rate constants, compartment volumes and initial (boundary) conditions for species.
Methods
A pattern for the entire product or reactant side of a rule.
Essentially a thin wrapper around a list of ComplexPatterns. In BNG terms, a list of complex patterns combined with the ‘+’ operator.
A container for the reactant and product patterns of a rule expression.
Contains one ReactionPattern for each of reactants and products, and a boolean indicating reversibility. This is a temporary object used to implement syntactic sugar through operator overloading. The Rule constructor takes an instance of this class as its first argument, but simply extracts its fields and discards the object itself.
Issued by model component constructors when a name is reused.
Internal helper to ‘upgrade’ a MonomerPattern to a ComplexPattern.