AbstractNode

abstract class AbstractNode<T> : Node<T>

This class realizes an abstract node. You may extend it to realize your own nodes.

Parameters

<T>

concentration type

Constructors

Link copied to clipboard
open fun AbstractNode(env: Environment<out Any, out Any>)

Functions

Link copied to clipboard
fun addReaction(reactionToAdd: Reaction<T>)
Link copied to clipboard
open fun cloneNode(currentTime: Time): AbstractNode<T>
Default implementation fails: override correctly calling the constructor.
Link copied to clipboard
fun compareTo(@Nonnull other: Node<T>): Int
Link copied to clipboard
open fun contains(molecule: Molecule): Boolean
Link copied to clipboard
fun equals(other: Any): Boolean
Link copied to clipboard
fun forEach(action: Consumer<out Any>)
Link copied to clipboard
open fun getConcentration(molecule: Molecule): T
Link copied to clipboard
open fun getContents(): Map<Molecule, T>
Link copied to clipboard
abstract fun getId(): Int
Link copied to clipboard
open fun getMoleculeCount(): Int
Link copied to clipboard
abstract fun getReactions(): List<Reaction<T>>
Link copied to clipboard
fun hashCode(): Int
Link copied to clipboard
fun iterator(): Iterator<Reaction<T>>
Link copied to clipboard
open fun removeConcentration(moleculeToRemove: Molecule)
Link copied to clipboard
fun removeReaction(reactionToRemove: Reaction<T>)
Link copied to clipboard
open fun setConcentration(molecule: Molecule, concentration: T)
Link copied to clipboard
fun spliterator(): Spliterator<Reaction<T>>
Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
private val id: Int
Link copied to clipboard
private val reactions: List<Reaction<T>>

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard