Class EnvironmentNodeImpl
-
- All Implemented Interfaces:
-
it.unibo.alchemist.model.Node
,it.unibo.alchemist.model.biochemistry.EnvironmentNode
,java.io.Serializable
,java.lang.Comparable
,java.lang.Iterable
,kotlin.jvm.internal.markers.KMappedMarker
public final class EnvironmentNodeImpl extends GenericNode<T> implements EnvironmentNode
A node with non-negative concentration.
-
-
Field Summary
Fields Modifier and Type Field Description public final Incarnation<T, out Object>
incarnation
public final Environment<T, out Object>
environment
public final int
id
public final List<Reaction<T>>
reactions
public final Map<Molecule, T>
molecules
public final List<NodeProperty<T>>
properties
public final Map<Molecule, T>
contents
-
Constructor Summary
Constructors Constructor Description EnvironmentNodeImpl(Incarnation<Double, out Object> incarnation, Environment<Double, out Object> environment)
Create a new environment node. EnvironmentNodeImpl(Environment<Double, out Object> environment)
Create a new environment node.
-
Method Summary
Modifier and Type Method Description void
setConcentration(@Nonnull() Molecule molecule, @Nonnull() Double concentration)
-
Methods inherited from class it.unibo.alchemist.model.nodes.GenericNode
addProperty, addReaction, cloneNode, compareTo, contains, equals, forEach, getConcentration, getContents, getEnvironment, getId, getIncarnation, getMoleculeCount, getMolecules, getProperties, getReactions, hashCode, iterator, removeConcentration, removeReaction, spliterator, toString
-
Methods inherited from class it.unibo.alchemist.model.Node
asProperty, asPropertyOrNull
-
Methods inherited from class java.lang.Iterable
iterator, spliterator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
EnvironmentNodeImpl
EnvironmentNodeImpl(Incarnation<Double, out Object> incarnation, Environment<Double, out Object> environment)
Create a new environment node.- Parameters:
incarnation
- the simulation incarnationenvironment
- the environment
-
EnvironmentNodeImpl
EnvironmentNodeImpl(Environment<Double, out Object> environment)
Create a new environment node.- Parameters:
environment
- the environment
-
-
Method Detail
-
setConcentration
void setConcentration(@Nonnull() Molecule molecule, @Nonnull() Double concentration)
-
-
-
-