public class ConcentrationContainer extends Object
MolarConcentrations of
ChemicalEntitys can be set and got by the CellSubsection or CellTopology.
If no relevant concentration was registered an empty concentration will be returned.| Constructor and Description |
|---|
ConcentrationContainer()
Creates a new concentration container.
|
| Modifier and Type | Method and Description |
|---|---|
ConcentrationContainer |
emptyCopy()
Returns a empty copy of this container, keeping subsections and cell topologies associated.
|
ConcentrationContainer |
fullCopy()
Returns a full copy of this container, keeping concentrations.
|
javax.measure.Quantity<MolarConcentration> |
get(CellSubsection subsection,
ChemicalEntity entity)
Returns the concentration of the entity in the corresponding subsection.
|
javax.measure.Quantity<MolarConcentration> |
get(CellTopology topology,
ChemicalEntity entity)
Returns the concentration of the entity in the corresponding topology.
|
CellSubsection |
getInnerSubsection()
Returns the inner subsection.
|
CellSubsection |
getMembraneSubsection()
Returns the membrane subsection.
|
CellSubsection |
getOuterSubsection()
Returns the outer subsection.
|
Map.Entry<CellTopology,ConcentrationPool> |
getPool(CellSubsection subsection)
Returns the topology and concentration pool for the subsection.
|
Map.Entry<CellSubsection,ConcentrationPool> |
getPool(CellTopology topology)
Returns the subsection and concentration pool for the topology.
|
Collection<ConcentrationPool> |
getPoolsOfConcentration()
Returns all concentration pools in this container.
|
Set<ChemicalEntity> |
getReferencedEntities()
Returns all entities referenced in any concentration pool.
|
Set<CellSubsection> |
getReferencedSubSections()
Returns all subsections, referenced in this container.
|
CellSubsection |
getSubsection(CellTopology topology)
Returns the subsection corresponding to the topology.
|
void |
initialize(CellSubsection subsection,
ChemicalEntity entity,
javax.measure.Quantity<MolarConcentration> concentration) |
void |
initialize(CellTopology topology,
ChemicalEntity entity,
javax.measure.Quantity<MolarConcentration> concentration) |
void |
initializeSubsection(CellSubsection subsection,
CellTopology topology)
Initializes a new concentration pool for the corresponding subsection and topology.
|
void |
putSubsectionPool(CellSubsection subsection,
CellTopology topology,
ConcentrationPool concentrationPool)
Adds a concentration pool, referenced to the subsection and topology.
|
void |
removeSubsection(CellSubsection subsection)
Removes a subsection, the corresponding topology and concentration pool from the container.
|
void |
removeSubsection(CellTopology topology)
Removes a subsection, the given topology and concentration pool from the container.
|
void |
set(CellSubsection subsection,
ChemicalEntity entity,
double concentration)
Sets the concentration of the given entity in the given subsection.
|
void |
set(CellSubsection subsection,
ChemicalEntity entity,
javax.measure.Quantity<MolarConcentration> concentration)
Sets the concentration of the given entity in the given subsection.
|
void |
set(CellTopology topology,
ChemicalEntity entity,
double concentration)
Sets the concentration of the given entity in the subsection corresponding to the topological descriptor.
|
void |
set(CellTopology topology,
ChemicalEntity entity,
javax.measure.Quantity<MolarConcentration> concentration)
Sets the concentration of the given entity in the given topology.
|
public ConcentrationContainer()
public void initializeSubsection(CellSubsection subsection, CellTopology topology)
subsection - The subsection.topology - The topology.public void putSubsectionPool(CellSubsection subsection, CellTopology topology, ConcentrationPool concentrationPool)
subsection - The subsection.topology - The topology.concentrationPool - The concentration pool.public void removeSubsection(CellSubsection subsection)
subsection - The subsection to remove.public void removeSubsection(CellTopology topology)
topology - The topology to remove.public Set<CellSubsection> getReferencedSubSections()
public Collection<ConcentrationPool> getPoolsOfConcentration()
public Set<ChemicalEntity> getReferencedEntities()
public Map.Entry<CellTopology,ConcentrationPool> getPool(CellSubsection subsection)
subsection - The subsection.public Map.Entry<CellSubsection,ConcentrationPool> getPool(CellTopology topology)
topology - Th topology.public javax.measure.Quantity<MolarConcentration> get(CellSubsection subsection, ChemicalEntity entity)
subsection - The subsection.entity - The entity.public javax.measure.Quantity<MolarConcentration> get(CellTopology topology, ChemicalEntity entity)
topology - The topology.entity - The entity.public void set(CellSubsection subsection, ChemicalEntity entity, javax.measure.Quantity<MolarConcentration> concentration)
subsection - The subsection.entity - The entity.concentration - The concentration.public void initialize(CellSubsection subsection, ChemicalEntity entity, javax.measure.Quantity<MolarConcentration> concentration)
public void set(CellTopology topology, ChemicalEntity entity, javax.measure.Quantity<MolarConcentration> concentration)
topology - The topology.entity - The entity.concentration - The concentration.public void initialize(CellTopology topology, ChemicalEntity entity, javax.measure.Quantity<MolarConcentration> concentration)
public void set(CellSubsection subsection, ChemicalEntity entity, double concentration)
UnitProvider.MOLE_PER_LITRE but is transformed to the preferred concentration.subsection - The subsection.entity - The entity.concentration - The concentration in mol/lpublic void set(CellTopology topology, ChemicalEntity entity, double concentration)
UnitProvider.MOLE_PER_LITRE but is transformed to the preferred
concentration.topology - The topological descriptor.entity - The entity.concentration - The concentration in mol/lpublic CellSubsection getSubsection(CellTopology topology)
topology - The topology.public CellSubsection getInnerSubsection()
public CellSubsection getOuterSubsection()
public CellSubsection getMembraneSubsection()
public ConcentrationContainer emptyCopy()
public ConcentrationContainer fullCopy()
Copyright © 2018. All rights reserved.