NodeSubscriptions

class NodeSubscriptions<T, P : Position<out P>>(environment: Environment<T, P>) : Subscription(source)

Exposes alchemist it.unibo.alchemist.model.Nodes as GraphQL subscriptions.

Parameters

environment

the environment.

Constructors

Link copied to clipboard
constructor(environment: Environment<T, P>)

Functions

Link copied to clipboard

Returns a Flow with the updated value of the it.unibo.alchemist.boundary.graphql.schema.model.surrogates.NeighborhoodSurrogate with the given node as a part of the neighborhood.

Link copied to clipboard
fun node(nodeId: Int): Flow<NodeSurrogate<T>>

Returns a Flow with the updated value of the it.unibo.alchemist.boundary.graphql.schema.model.surrogates.NodeSurrogate with the given Id.