Package ummisco.gama.chemmisol
Class ChemicalSpecies
java.lang.Object
ummisco.gama.chemmisol.ChemicalEntity
ummisco.gama.chemmisol.ChemicalSpecies
Represents a chemical species living in a chemical system.
A chemical species is an entity that represents an actual entity within a chemical system, associated to a concentration. The interpretation of the concentration depends on the phase of the species (mol/l for aqueous species, molar fraction for mineral species).
-
Constructor Summary
ConstructorDescriptionChemicalSpecies
(String name, Phase phase) Initializes a ChemicalSpecies with an initial null concentration. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the current concentration of this chemical species.void
setConcentration
(double concentration) Sets the current concentration of the chemical species.Methods inherited from class ummisco.gama.chemmisol.ChemicalEntity
getName, getPhase, setName
-
Constructor Details
-
ChemicalSpecies
Initializes a ChemicalSpecies with an initial null concentration.- Parameters:
name
- Name of the chemical species.phase
- Phase of the chemical species.
-
-
Method Details
-
getConcentration
public double getConcentration()Gets the current concentration of this chemical species.- Returns:
- concentration of the chemical species
-
setConcentration
public void setConcentration(double concentration) Sets the current concentration of the chemical species.- Parameters:
concentration
- concentration of the chemical species
-