ecoli.processes.stubs.exchanger_stub

Exchanger Stub Process

Exchanges molecules at pre-set rates through a single port

class ecoli.processes.stubs.exchanger_stub.Exchanger(parameters=None)[source]

Bases: Process

Exchanger Stub Process

Ports: * molecules: reads the current state of all molecules to be exchanged

Parameters:

parameters (dict) – Accepts the following configuration keys: * exchanges (dict): a dictionary with molecule ids mapped to the exchange rate, in counts/second.

defaults: dict[str, Any] = {'exchanges': {}}
next_update(timestep, states)[source]
ports_schema()[source]