NodeSurrogate

data class NodeSurrogate<T>(val origin: Node<T>, val id: Int = origin.id) : GraphQLSurrogate<Node<T>>

A GraphQL surrogate for a Node object.

Parameters

T

The type of the concentration.

id

The id of the node.

Constructors

Link copied to clipboard
constructor(origin: Node<T>, id: Int = origin.id)

Properties

Link copied to clipboard
val id: Int
Link copied to clipboard

The number of Molecules in this node.

Link copied to clipboard
open override val origin: Node<T>

Functions

Link copied to clipboard

Tests whether a node contains a Molecule.

Link copied to clipboard
Link copied to clipboard

Calculates the concentration of a molecule.

Link copied to clipboard
Link copied to clipboard

Returns all reactions of the node.