| Lattice Microbes 2.5
    This is for whole cell modeling | 
| Public Member Functions | |
| __init__ (self, simulation) | |
| set_particle_size (self, species, int size) | |
| int | get_particle_size (self, species) | 
| validate_concentration (self, species, region, float concentration) | |
| validate_particle_count (self, species, region, int count) | |
| Dict | get_capacity_info (self, species) | 
| Dict | analyze_lattice_occupancy (self) | 
| validate_all_species (self) | |
| Public Attributes | |
| sim = simulation | |
| dict | particle_sizes = {} | 
Validates particle concentrations and numbers against size constraints.
| jLM.ParticleSizeSupport.ParticleSizeValidator.__init__ | ( | self, | |
| simulation ) | 
Initialize validator for a simulation.
Args:
    simulation: RDME simulation object
 
| Dict jLM.ParticleSizeSupport.ParticleSizeValidator.analyze_lattice_occupancy | ( | self | ) | 
Analyze current lattice occupancy considering particle sizes.
Returns:
    Dictionary with occupancy statistics
 
| Dict jLM.ParticleSizeSupport.ParticleSizeValidator.get_capacity_info | ( | self, | |
| species ) | 
Get capacity information for a species.
Args:
    species: Species object
Returns:
    Dictionary with capacity information
 | int jLM.ParticleSizeSupport.ParticleSizeValidator.get_particle_size | ( | self, | |
| species ) | 
Get the size for a species.
Args:
    species: Species object or species ID
Returns:
    Size of the particle (default: 1)
 | jLM.ParticleSizeSupport.ParticleSizeValidator.set_particle_size | ( | self, | |
| species, | |||
| int | size ) | 
Set the size for a species.
Args:
    species: Species object or species ID
    size: Size of the particle (must be > 0)
Raises:
    ParticleSizeError: If size is invalid
 | jLM.ParticleSizeSupport.ParticleSizeValidator.validate_all_species | ( | self | ) | 
Validate all currently configured species against size constraints.
Raises:
    ParticleSizeError: If any species violates constraints
 | jLM.ParticleSizeSupport.ParticleSizeValidator.validate_concentration | ( | self, | |
| species, | |||
| region, | |||
| float | concentration ) | 
Validate that a concentration doesn't exceed site capacity.
Args:
    species: Species object
    region: Region object
    concentration: Concentration in M
Raises:
    ParticleSizeError: If concentration would exceed capacity
 | jLM.ParticleSizeSupport.ParticleSizeValidator.validate_particle_count | ( | self, | |
| species, | |||
| region, | |||
| int | count ) | 
Validate that a particle count doesn't exceed site capacity.
Args:
    species: Species object
    region: Region object
    count: Number of particles
Raises:
    ParticleSizeError: If count would exceed capacity
 | dict jLM.ParticleSizeSupport.ParticleSizeValidator.particle_sizes = {} | 
| jLM.ParticleSizeSupport.ParticleSizeValidator.sim = simulation |