EnvironmentSurrogate

data class EnvironmentSurrogate<T, P : Position<out P>>(val origin: Environment<T, P>, val dimensions: Int = origin.dimensions) : GraphQLSurrogate<Environment<T, P>>

A surrogate for Environment.

Parameters

T

the concentration type

P

the position

dimensions

the number of dimensions of this environment.

Constructors

Link copied to clipboard
constructor(origin: Environment<T, P>, dimensions: Int = origin.dimensions)

Properties

Link copied to clipboard
Link copied to clipboard
open override val origin: Environment<T, P>

Functions

Link copied to clipboard
suspend fun cloneNode(nodeId: Int, position: PositionInput, time: Double): NodeSurrogate<T>?

Clone the node associated with the given id to the specified position.

Link copied to clipboard

Returns the LayerSurrogate associated with the molecule represented by the given MoleculeInput.

Link copied to clipboard

Returns the neighborhood of the node with the given id.

Link copied to clipboard

The layers inside this environment.

Link copied to clipboard

Returns the node with the given id.

Link copied to clipboard

The nodes inside this environment.

Link copied to clipboard

Returns a NodeToPosMap representing all nodes associated with their position.