NodeSurrogate

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

A GraphQL surrogate for a Node object.

Type Parameters

T

The type of the concentration.

Constructors

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

Properties

Link copied to clipboard
val id: Int

The id of the node.

Link copied to clipboard

The number of Molecules in this node.

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

the original Node wrapped by this surrogate

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.