OffsetGraphStreamNetworkModel

class OffsetGraphStreamNetworkModel<T, P : Position<P>>(environment: Environment<T, P>, val offset: Int, val graph: Graph) : NetworkModel<T>

A NetworkModel that statically connects the nodes of environment as they were configured by GraphStream. An offset is used to determine the id of the environment's nodes when compared to the one of the provided graph.

The neighbors are linked as soon as they are part of the environment: each neighborhood follows only the presence of the graph neighbors of its center, so that a node joining or leaving notifies only the neighborhoods it belongs to.

Constructors

Link copied to clipboard
constructor(environment: Environment<T, P>, offset: Int, graph: Graph)

Properties

Link copied to clipboard
Link copied to clipboard

The neighborhood of this node, as provided by neighborhoodOf.

Link copied to clipboard
val offset: Int

Functions

Link copied to clipboard
open override fun neighborhoodOf(center: Node<T>): Observable<Neighborhood<T>>

The neighborhood of center, a node of the environment of this model, as an observable of immutable snapshots that emits whenever the neighborhood changes.

Link copied to clipboard
infix fun NetworkModel<*>.shouldEqual(other: NetworkModel<*>)
Link copied to clipboard
open override fun toString(): String