ecoli.processes.allocator

Allocator

Reads requests from PartionedProcesses, and allocates molecules according to process priorities.

class ecoli.processes.allocator.Allocator(parameters=None)[source]

Bases: Step

Allocator Step

defaults: dict[str, Any] = {}
name = 'allocator'
next_update(timestep, states)[source]
ports_schema()[source]
processes: dict[str, Any] = {}
topology = {'allocate': ('allocate',), 'allocator_rng': ('allocator_rng',), 'bulk': ('bulk',), 'listeners': ('listeners',), 'request': ('request',)}
exception ecoli.processes.allocator.NegativeCountsError[source]

Bases: Exception

ecoli.processes.allocator.calculatePartition(process_priorities, counts_requested, total_counts, random_state)[source]