Node

interface Node<T> : Serializable, Iterable<Reaction<T>> , Comparable<Node<T>>

Parameters

<T>

The type of the concentration This interface must be implemented in every realization of node

Functions

Link copied to clipboard
abstract fun addReaction(r: Reaction<T>)
Adds a reaction to this node.
Link copied to clipboard
abstract fun cloneNode(currentTime: Time): Node<T>
Creates a new Node which is a clone of the current Node.
Link copied to clipboard
abstract fun compareTo(p: T): Int
Link copied to clipboard
abstract fun contains(mol: Molecule): Boolean
Tests whether a node contains a Molecule.
Link copied to clipboard
open fun forEach(action: Consumer<out Any>)
Link copied to clipboard
abstract fun getConcentration(mol: Molecule): T
Calculates the concentration of a molecule.
Link copied to clipboard
abstract fun getContents(): Map<Molecule, T>
Link copied to clipboard
abstract fun getId(): Int
Link copied to clipboard
abstract fun getMoleculeCount(): Int
Link copied to clipboard
abstract fun getReactions(): List<Reaction<T>>
This method allows to access all the reaction of the node.
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun removeConcentration(mol: Molecule)
Link copied to clipboard
abstract fun removeReaction(r: Reaction<T>)
Removes a reaction from this node.
Link copied to clipboard
abstract fun setConcentration(mol: Molecule, c: T)
Sets the concentration of mol to c.
Link copied to clipboard
open fun spliterator(): Spliterator<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