networkModel

context(environment: Environment<T, P>)
open fun networkModel(model: NetworkModel<T>)

Configures (or extends) the environment network model by adding the provided model.

The current network model is updated as follows:

  • if the environment currently uses NoLinks, it is replaced with model;

  • otherwise, the existing rule and model are combined into a new CombinedNetworkModel.

Parameters

model

the network model to set or append, bound to the environment.