ecoli.processes.stubs.exchange_stub

Exchange Stub

Exchanges molecules at pre-set rates through a single port

class ecoli.processes.stubs.exchange_stub.Exchange(parameters=None)[source]

Bases: Process

Exchange 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': {}}
name = 'ecoli-exchange'
next_update(timestep, states)[source]
ports_schema()[source]