alchemist-full
Toggle table of contents
46.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
alchemist-full
alchemist-incarnation-biochemistry
/
it.unibo.alchemist.model.biochemistry.nodes
/
EnvironmentNodeImpl
Environment
Node
Impl
class
EnvironmentNodeImpl
:
GenericNode
<
Double
>
,
EnvironmentNode
(
source
)
A node with non-negative concentration.
Members
Constructors
Environment
Node
Impl
Link copied to clipboard
constructor
(
environment
:
Environment
<
Double
,
out
Any
>
)
Create a new environment node.
Properties
contents
Link copied to clipboard
val
contents
:
ObservableMutableMap
<
Molecule
,
T
>
environment
Link copied to clipboard
val
environment
:
Environment
<
T
,
out
Any
>
id
Link copied to clipboard
val
id
:
Int
molecule
Count
Link copied to clipboard
val
moleculeCount
:
Observable
<
Integer
>
properties
Link copied to clipboard
val
properties
:
List
<
Capability
<
T
>
>
reactions
Link copied to clipboard
val
reactions
:
ObservableList
<
Reaction
<
T
>
>
Functions
add
Property
Link copied to clipboard
fun
addProperty
(
capability
:
Capability
<
T
>
)
add
Reaction
Link copied to clipboard
fun
addReaction
(
reaction
:
Reaction
<
T
>
)
as
Property
Link copied to clipboard
open
fun
<
C
:
Capability
<
T
>
?
>
asProperty
(
superType
:
KClass
<
C
>
)
:
C
as
Property
Or
Null
Link copied to clipboard
open
fun
<
C
:
Capability
<
T
>
?
>
asPropertyOrNull
(
superType
:
Class
<
in
C
>
)
:
C
clone
Node
Link copied to clipboard
open
fun
cloneNode
(
)
:
Node
<
T
>
compare
To
Link copied to clipboard
fun
compareTo
(
other
:
Node
<
T
>
)
:
Int
concentration
Of
Link copied to clipboard
open
fun
concentrationOf
(
molecule
:
Molecule
)
:
Observable
<
Option
<
T
>
>
contains
Link copied to clipboard
open
fun
contains
(
molecule
:
Molecule
)
:
Boolean
contains
Molecule
Link copied to clipboard
open
fun
containsMolecule
(
molecule
:
Molecule
)
:
Observable
<
Boolean
>
dispose
Link copied to clipboard
open
fun
dispose
(
)
equals
Link copied to clipboard
fun
equals
(
other
:
Any
)
:
Boolean
get
Link copied to clipboard
open
fun
get
(
molecule
:
Molecule
)
:
Option
<
T
>
get
Contents
Link copied to clipboard
abstract
fun
getContents
(
)
:
ObservableMap
<
Molecule
,
T
>
get
Current
Molecule
Count
Link copied to clipboard
open
fun
getCurrentMoleculeCount
(
)
:
Int
hash
Code
Link copied to clipboard
fun
hashCode
(
)
:
Int
remove
Link copied to clipboard
open
fun
remove
(
$this$remove
:
Reaction
<
T
>
)
remove
All
Concentration
Of
Link copied to clipboard
open
fun
removeAllConcentrationOf
(
moleculeToRemove
:
Molecule
)
remove
Reaction
Link copied to clipboard
fun
removeReaction
(
reaction
:
Reaction
<
T
>
)
set
Link copied to clipboard
open
fun
set
(
@
Nonnull
molecule
:
Molecule
,
@
Nonnull
concentration
:
Double
)
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String