OffsetGraphStreamNetworkModel

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

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
Link copied to clipboard
val offset: Int

Functions

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