networkModel

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

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

The current linking rule is updated as follows:

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

  • if the environment currently uses CombinedLinkingRule, model is appended to its sub-rules;

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

Parameters

model

the linking rule to set or append.