toggle menu
alchemist
35.0.3
jvm
switch theme
search in API
alchemist-incarnation-biochemistry
/
it.unibo.alchemist.model.biochemistry.nodes
/
EnvironmentNodeImpl
Environment
Node
Impl
class
EnvironmentNodeImpl
:
GenericNode
<
T
>
,
EnvironmentNode
(
source
)
A node with non-negative concentration.
Members
Constructors
Environment
Node
Impl
Link copied to clipboard
constructor
(
incarnation
:
Incarnation
<
Double
,
out
Any
>
,
environment
:
Environment
<
Double
,
out
Any
>
)
Create a new environment node.
constructor
(
environment
:
Environment
<
Double
,
out
Any
>
)
Create a new environment node.
Properties
contents
Link copied to clipboard
val
contents
:
Map
<
Molecule
,
T
>
environment
Link copied to clipboard
val
environment
:
Environment
<
T
,
out
Any
>
id
Link copied to clipboard
val
id
:
Int
incarnation
Link copied to clipboard
val
incarnation
:
Incarnation
<
T
,
out
Any
>
molecules
Link copied to clipboard
val
molecules
:
Map
<
Molecule
,
T
>
properties
Link copied to clipboard
val
properties
:
List
<
NodeProperty
<
T
>
>
reactions
Link copied to clipboard
val
reactions
:
List
<
Reaction
<
T
>
>
Functions
add
Property
Link copied to clipboard
fun
addProperty
(
nodeProperty
:
NodeProperty
<
T
>
)
add
Reaction
Link copied to clipboard
fun
addReaction
(
reactionToAdd
:
Reaction
<
T
>
)
as
Property
Link copied to clipboard
open
fun
<
C
:
NodeProperty
<
T
>
?
>
asProperty
(
superType
:
KClass
<
C
>
)
:
C
as
Property
Or
Null
Link copied to clipboard
open
fun
<
C
:
NodeProperty
<
T
>
?
>
asPropertyOrNull
(
superType
:
Class
<
in
C
>
)
:
C
clone
Node
Link copied to clipboard
open
fun
cloneNode
(
currentTime
:
Time
)
:
Node
<
T
>
compare
To
Link copied to clipboard
fun
compareTo
(
other
:
Node
<
T
>
)
:
Int
contains
Link copied to clipboard
open
fun
contains
(
molecule
:
Molecule
)
:
Boolean
equals
Link copied to clipboard
fun
equals
(
other
:
Any
)
:
Boolean
for
Each
Link copied to clipboard
fun
forEach
(
action
:
Consumer
<
in
Reaction
<
T
>
>
)
get
Concentration
Link copied to clipboard
open
fun
getConcentration
(
molecule
:
Molecule
)
:
T
get
Molecule
Count
Link copied to clipboard
open
fun
getMoleculeCount
(
)
:
Int
hash
Code
Link copied to clipboard
fun
hashCode
(
)
:
Int
iterator
Link copied to clipboard
fun
iterator
(
)
:
Iterator
<
Reaction
<
T
>
>
abstract
fun
iterator
(
)
:
Iterator
<
T
>
remove
Concentration
Link copied to clipboard
fun
removeConcentration
(
moleculeToRemove
:
Molecule
)
remove
Reaction
Link copied to clipboard
fun
removeReaction
(
reactionToRemove
:
Reaction
<
T
>
)
set
Concentration
Link copied to clipboard
open
fun
setConcentration
(
@
Nonnull
molecule
:
Molecule
,
@
Nonnull
concentration
:
Double
)
spliterator
Link copied to clipboard
fun
spliterator
(
)
:
Spliterator
<
Reaction
<
T
>
>
open
fun
spliterator
(
)
:
Spliterator
<
T
>
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String