public class ConcentrationPool extends Object
| Constructor and Description |
|---|
ConcentrationPool()
Creates a new, empty concentration pool.
|
| Modifier and Type | Method and Description |
|---|---|
ConcentrationPool |
fullCopy()
Creates a copy of this concentration pool.
|
double |
get(ChemicalEntity entity)
Returns the concentration of a entity.
|
Map<ChemicalEntity,Double> |
getConcentrations() |
Set<ChemicalEntity> |
getReferencedEntities()
Returns all entities referenced in this map.
|
void |
set(ChemicalEntity entity,
double concentration)
Sets the concentration of a entity.
|
public ConcentrationPool()
public Set<ChemicalEntity> getReferencedEntities()
public Map<ChemicalEntity,Double> getConcentrations()
public double get(ChemicalEntity entity)
entity - The entity.public void set(ChemicalEntity entity, double concentration)
entity - Th entity.concentration - The concentration (this should be scaled to the subsection volume).public ConcentrationPool fullCopy()
Copyright © 2019. All rights reserved.