Class ChemicalEntity

java.lang.Object
ummisco.gama.chemmisol.ChemicalEntity
Direct Known Subclasses:
ChemicalSpecies, Reagent

public class ChemicalEntity extends Object
Represents a chemical entity with a name and a phase.
  • Constructor Details

    • ChemicalEntity

      protected ChemicalEntity(String name, Phase phase)
      Initializes a Chemical entity.
      Parameters:
      name - Name of the chemical entity.
      phase - Phase of the chemical entity.
  • Method Details

    • getName

      public String getName()
      Gets the name of the chemical entity.
      Returns:
      name of the chemical entity
    • setName

      public void setName(String name)
      Sets the name of the chemical entity.
      Parameters:
      name - name of the chemical entity
    • getPhase

      public Phase getPhase()
      Gets the phase of the chemical entity.
      Returns:
      phase of this chemical entity